assign_types_names {basecamb} | R Documentation |
Assign tidy types and names to a data.frame
Description
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.
Usage
assign_types_names(data, meta_data)
Arguments
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:
|
Value
clean data.frame
Author(s)
J. Peter Marquardt