Description Usage Arguments Details Value Author(s)
This function reads in a dataset with a header and a unit row ignoring the unit row to preserve data types.
1 |
file |
Indicates file location of .csv containing dataset. |
header.row |
Indicates the row number that the headers are located in. Defaults to 1. |
data.start |
Indicates the row number that the data begins (i.e. the first non-unit row). Defaults to 3. |
This helper function extends the functionality of read.csv
by
importing headers separately and skipping unit rows located in the specified
column. If using read.csv
for this, the datatype in each column
defaults to character
. This function allows the datatype to be
inferred during import, which saves time for users who wish to perform
calculations on the data once imported without manually typecasting.
file will be imported as a data.frame with the unit rows removed.
Samuel Callisto calli055@umn.edu headr()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.