Skip to content

Commit

Permalink
consistent variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyclements committed Jun 20, 2024
1 parent d783239 commit c74407e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/crops_definitions.R
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ crops_definitions <- function(data = NULL, date_time = NULL, station = NULL, rai
df <- df %>% dplyr::summarise(prop_success = sum(overall_cond,
na.rm = TRUE)/length(stats::na.omit(overall_cond)))
df$prop_success <- round(df$prop_success, 2)
df <- df %>% dplyr::select(c(station, rain_total = water_requirements, plant_day = planting_day, plant_length = planting_length, prop_success = prop_success))
return(df)
}
}

0 comments on commit c74407e

Please sign in to comment.