Learn R Programming

relax (version 1.3.15)

scan: modified version of scan for relax

Description

reads data into a vector or a list from console or file

Usage

scan(file = "", what = double(), nmax = -1L, n = -1L, sep = "", quote = if (identical(sep, "\n")) "" else "'\"", dec = ".", skip = 0L, nlines = 0L, na.strings = "NA", flush = FALSE, fill = FALSE, strip.white = FALSE, quiet = FALSE, blank.lines.skip = TRUE, multi.line = TRUE, comment.char = "", allowEscapes = FALSE, fileEncoding = "", encoding = "unknown", text = NA)

Arguments

file
file name
what
type of data
nmax
max number of data
n
max number of data
sep
separator
quote
set of quoting strings
dec
decimal point character
skip
lines of input file to be skipped
nlines
max number of lines
na.strings
coding of NA entries
flush
for ignoring comments
fill
for adding empty fields
strip.white
for ignoring leading or trailing blanks
quiet
if FALSE number of items will be printed
blank.lines.skip
ignore empty lines
multi.line
if FALSE: record must be in lines
comment.char
character used as comment char
allowEscapes
how to handle escape sequences
fileEncoding
file encoding
encoding
encoding assumed for the input
text
concerning text connections

Value

Details

see help of scan (package base)

See Also

scan