View source: R/Tidy_names_types_factors.R
assign_types_names | R Documentation |
Verbosely assign tidy name and data type for each column of a data.frame and get rid of superfluous columns. Uses a .csv file for assignments to encourage a data dictionary based workflow. CAVE! Requires 'Date' type columns to already be read in as Date.
assign_types_names(data, meta_data)
data |
data.frame to be tidied. Dates must already be of type date. |
meta_data |
data.frame specifying old column names, new column names and datatypes of data. Has the following columns:
|
clean data.frame
J. Peter Marquardt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.