Learn R Programming

creditmodel (version 1.1.6)

read_data: Read data

Description

read_data is for loading data.

Usage

read_data(path, pattern = NULL, encoding = "unknown", header = TRUE,
  sep = "auto", stringsAsFactors = FALSE)

check_data_format(path)

Arguments

path

Path to file or file name in working directory & path to file.

pattern

An optional regular expression. Only file names which match the regular expression will be returned.

encoding

Default is "unknown". Other possible options are "UTF-8" and "Latin-1".

header

Does the first data line contain column names?

sep

The separator between columns.

stringsAsFactors

Logical. Convert all character columns to factors?