tidy_data: Tidy Environment Dataset

Description Usage Arguments Value Author(s) Examples

Description

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.

Usage

1
tidy_data(data, date, na = "F")

Arguments

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.

Value

If na = "F", it will return a data frame without NA. The column names are with only lowercase letters, with "_" as a separator.

Author(s)

Annie Yang

Examples

1
tidy_data(pollution_us, "Date Local")

PHP2560-Statistical-Programming-R/r-package-beautiful-day documentation built on May 30, 2019, 3:50 p.m.