Description Usage Arguments Value Author(s) Examples
This function helps you tidy environment dataset, deal with the dates information, converts dates to Date class and create new column "Month" and "Year" to help you analyze the data.The column names are with only lowercase letters, with "_" as a separator.
1 |
data |
Dataset you want to tidy. |
date |
A character. It is the column name of the dataset and this column containing dates information. |
na |
A character, either "F" or "T". The default value is "F". If the na=="F", it will remove rows with missing values. |
If na = "F", it will return a data frame without NA. The column names are with only lowercase letters, with "_" as a separator.
Annie Yang
1 | tidy_data(pollution_us, "Date Local")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.