read_data: Read data

Description Usage Arguments

View source: R/data_process_tools.R

Description

read_data is for loading data, formats like csv, txt,data and so on.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
read_data(
  path,
  pattern = NULL,
  encoding = "unknown",
  header = TRUE,
  sep = "auto",
  stringsAsFactors = FALSE,
  select = NULL,
  drop = NULL,
  nrows = Inf
)

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?

select

A vector of column names or numbers to keep, drop the rest.

drop

A vector of column names or numbers to drop, keep the rest.

nrows

The maximum number of rows to read.


creditmodel documentation built on Jan. 25, 2021, 5:08 p.m.