parse_columns {owmr} | R Documentation |
Apply functions to columns.
Description
Apply functions to columns.
Usage
parse_columns(data, functions_)
Arguments
data |
data frame |
functions_ |
named list where keys correspond to column names |
Value
updated data frame
Examples
## Not run:
parse_dt <- function(x){as.POSIXct(x, origin = "1970-01-01")}
forecast <- get_forecast("Kassel")$list
forecast %<>% parse_columns(list(dt = parse_dt))
## End(Not run)
[Package owmr version 0.8.2 Index]