Modify mudata tables

mutate_data(x, ...)

mutate_params(x, ...)

mutate_locations(x, ...)

mutate_datasets(x, ...)

mutate_columns(x, ...)

mutate_tbl(x, ...)

# S3 method for default
mutate_tbl(x, tbl, ...)

Arguments

x

A mudata object

...

Passed to mutate

tbl

The table name to modify

Value

A modified mudata object

Examples

library(lubridate) second_lake_temp %>% mutate_data(datetime = with_tz(datetime, "America/Halifax"))
#> A mudata object aligned along "datetime", "depth" #> distinct_datasets(): "second_lake_temp" #> distinct_locations(): "Second Lake" #> distinct_params(): "temp" #> src_tbls(): "data", "locations" ... and 3 more #> #> tbl_data() %>% head(): #> # A tibble: 6 x 6 #> dataset location param datetime depth value #> <chr> <chr> <chr> <dttm> <dbl> <dbl> #> 1 second_lake_temp Second Lake temp 2013-07-10 04:14:56 0 23.9 #> 2 second_lake_temp Second Lake temp 2013-07-10 05:14:56 0 23.8 #> 3 second_lake_temp Second Lake temp 2013-07-10 06:29:56 0 23.7 #> 4 second_lake_temp Second Lake temp 2013-07-10 06:44:56 0 23.8 #> 5 second_lake_temp Second Lake temp 2013-07-10 07:14:56 0 23.7 #> 6 second_lake_temp Second Lake temp 2013-07-10 08:29:56 0 23.9