loadcsv: Load a csv file with read.csv and read_csv
Description
Load a csv file with read.csv and read_csv
Usage
loadcsv(fn, .csv = FALSE, header = TRUE, sep = ",", dec = ".", saf = TRUE, safx = 20)
Arguments
.csv
Use read.csv instead of read_csv to load file (default is FALSE)
header
Header in file (TRUE, FALSE)
sep
Use , (default) or ; or \t
dec
Decimal symbol. Use . (default) or ,
saf
Convert character variables to factors if (1) there are less than 100 distinct values (2) there are X (see safx) more values than levels
safx
Values to levels ratio
Value
Data frame with (some) variables converted to factors