add_Date_col | R Documentation |
Create a Date column in the dataset
add_Date_col(
dataset,
Date.colname = Date,
group.by = FALSE,
as.wday = FALSE,
Datetime.colname = Datetime
)
dataset |
A light logger dataset. Expects a |
Date.colname |
Name of the newly created column. Expects a |
group.by |
Logical whether the output should be (additionally) grouped by the new column |
as.wday |
Logical of whether the added column should calculate day of
the week instead of date. If |
Datetime.colname |
column name that contains the datetime. Defaults to
|
a data.frame
object identical to dataset
but with the added
column of Date data
sample.data.environment %>% add_Date_col()
#days of the week
sample.data.environment %>%
add_Date_col(as.wday = TRUE, group.by = TRUE) |>
summarize_numeric(remove = c("Datetime"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.