ProjectTemplate (version 0.7)

file.reader: Read an arbitrary file described in a .file file.

Description

This function will load all of the data sets described in the specified .file file into the global environment. A .file file must contain DCF that specifies the path to the data set and which extension should be used from the dispatch table to load the data set.

Usage

file.reader(data.file, filename, variable.name)

Arguments

data.file

The name of the data file to be read.

filename

The path to the data set to be loaded.

variable.name

The name to be assigned to in the global environment.

Value

No value is returned; this function is called for its side effects.

Details

Examples of the DCF format and settings used in a .file file are shown below:

path: http://www.johnmyleswhite.com/ProjectTemplate/sample_data.csv extension: csv

Examples

Run this code
# NOT RUN {
library('ProjectTemplate')

# }
# NOT RUN {
file.reader('example.file', 'data/example.file', 'example')
# }

Run the code above in your browser using DataLab