Learn R Programming

fifer (version 1.1)

read.fife: Read in a dataset and load the meta-data for a file

Description

Oftentimes the original data matrix is too large to practically read in everytime you want to do analysis. This often means creating a separate file for analysis. Unfortunately, if the original file is changed, the separate file doesn't reflect those changes. read.fife and write.fife both read and write meta-data, then display the original file name for the meta data.

Usage

read.fife(file, file.type = ".csv", ...)

Arguments

file
The location of the file to be read.
file.type
The extension of the dataset. Defaults to .csv.
...
other arguments passed to to read.csv

Value

An R object containing the subsetted dataset. Also, an object called original.file will be loaded into the R environment that contains a string of the original file location

Details

Technically, read.fife and write.fife don't actually read and write meta-data. Instead, they create (or read) a separate file that has the same name (though different extension) than the subsetted dataset. The extension of the meta data file is .file.

See Also

write.fife