View source: R/extract_dt_comp.R
extract_dt_comp | R Documentation |
This function extracts a specific date component from a date-time variable in a dataframe.
extract_dt_comp(data, var, comp, name = NULL)
data |
The dataframe containing the date-time variable. |
var |
The name of the date-time variable to extract the component. |
comp |
The date component wanted from the variable. See
|
name |
The name of the new column to store the extracted date component. |
A dataframe with the new date component column.
Zhaoming Su
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.