Skip to content

Commit

Permalink
fixed mismatch in column types during join
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaracappa1 committed Aug 19, 2024
1 parent 41f16b6 commit d1dc973
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/compare_spatial_vars.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ compare_spatial_vars = function(param.dir,
if(tolower(ref.data$var.name[1]) %in% c('catch','catch_fleet')){

init.data2 = init.data %>%
dplyr::select(species,polygon,init.value)
dplyr::select(species,polygon,init.value)%>%
dplyr::mutate(polygon = as.factor(polygon))
run.data.yr = run.data.yr %>%
dplyr::left_join(ref.data)%>%
dplyr::left_join(init.data2)%>%
Expand Down

0 comments on commit d1dc973

Please sign in to comment.