bind_rows | R Documentation |
bind rows for dataframes with units
bind_rows(..., .id = NULL)
... |
dataframes to bind together |
library(dplyr)
library(PMDatR)
th1 <- set_units_from_list(Theoph, list(Wt = "kg")) %>%
mutate(WTunit="kg")
th2 <- set_units_from_list(Theoph, list(Wt = "lb")) %>%
mutate(WTunit = "lb")
#the WTFLG groups are both scaled to kg
bind_rows(th1, th2) %>%
distinct(Subject, WTunit, .keep_all = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.