CsvfReader: Csv file reader which can read the file row by row

Description Usage Format Value See Also Examples

Description

Csv file reader which can read the file row by row

Usage

1

Format

R6Class object

Value

Object of R6Class with methods read csv file row by row

See Also

CsvfWriter

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
df <- data.frame(a=1:2, b=c("hello", "world"))
write.csv(df, "hello.csv")
reader <- CsvfReader$new("hello.csv")
reader$readLines(1)
reader$readLines(1)

#' @section Methods:
\describe{
  \item{\code{new(...)}}{constructor for creating object, the same arguments as \code{\link{read.csv}}}
  \item{\code{readLines(n=1)}}{read \code{n} lines from file}
  \item{\code{getColNames()}}{return the column names as a character vector}
}

gongliyu/csvfR documentation built on May 21, 2019, 8:01 a.m.