scanFN | R Documentation |
Read numeric data into a data frame from a file. Header is assumed to be present in the file.
scanFN(file, quiet=FALSE)
file |
the name of a file to read data values from. If the
specified file is Otherwise, the file name is interpreted relative to the
current working directory (given by Alternatively,
To read a data file not in the current encoding (for example a
Latin-1 file in a UTF-8 locale or conversely) use a
|
quiet |
logical: if |
See scan
.
data.frame
with read data values.
Arnošt Komárek arnost.komarek@mff.cuni.cz
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
scan
cat("x y z", "1 2 3", "1 4 6", "10 20 30", file="ex.data", sep="\n")
pp <- scanFN("ex.data", quiet=FALSE)
pp <- scanFN("ex.data", quiet= TRUE)
print(pp)
unlink("ex.data") # tidy up
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.