scanFN {bayesSurv} | R Documentation |
Read Data Values
Description
Read numeric data into a data frame from a file. Header is assumed to be present in the file.
Usage
scanFN(file, quiet=FALSE)
Arguments
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 |
Details
See scan
.
Value
data.frame
with read data values.
Author(s)
Arnošt Komárek arnost.komarek@mff.cuni.cz
References
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
See Also
Examples
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