read_zip()
added …
argument to provide users with more flexibility to specify how files should be imported. The additional arguments are passed on to read.csv
or read.table
.read_zip()
now guesses if an imported data frame did not have any headers by looking for the presence of blank column names. When no headers are present:
The imported column names are appended to the data frame as a new row.
During the append, all column types are converted to character. type.convert()
is used to make an educated guess at the column type.
The column names are replaced with dummy names. The dummy names have the prefix "X" followed by a number assigned sequentially based on the number of columns present.
read_zip()
will now check if .txt files are CSV or TSV, and subsequently read the file in using the correct delimiter.read.csv()
defaults are now:
na.strings = c("", "NA", "N/A", "na", "n/a")
strip.white = TRUE
stringsAsFactors = FALSE
vroom
to import CSVs and TXTs in favor of read.csv()
.col_names
and col_types
to vroom::vroom()
via read_zip_element()
and read_zip()
.Added a NEWS.md
file to track changes to the package.
Moved functions out of the validator package to make them more accessible to other BWAM packages.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.