| extract_dt_comp {iNZightTools} | 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