View source: R/helper_functions.R
to_wide | R Documentation |
Helper function to cast data frame to wide format
to_wide(df, lab_id = FALSE, join_lt = TRUE)
df |
data frame in long format |
lab_id |
logical to include lab_id. Default is FALSE. |
join_lt |
logical to join the non-detect colum with analysis result. |
data(gw_data)
gw_data %>%
filter(param_name %in% c("Arsenic, dissolved", "Boron, dissolved")) %>%
to_wide()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.