Learn R Programming

radiant.data (version 0.8.1)

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 = ".",
  n_max = Inf, saf = TRUE, safx = 20)

Arguments

fn

File name string

.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 ,

n_max

Maximum number of rows to read

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