to_wide: Helper function to cast data frame to wide format

View source: R/helper_functions.R

to_wideR Documentation

Helper function to cast data frame to wide format

Description

Helper function to cast data frame to wide format

Usage

to_wide(df, lab_id = FALSE, join_lt = TRUE)

Arguments

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.

Examples

data(gw_data)

gw_data %>%
  filter(param_name %in% c("Arsenic, dissolved", "Boron, dissolved")) %>%
  to_wide()

jentjr/manager documentation built on Jan. 12, 2024, 9:45 p.m.