Learn R Programming

choiceDes (version 0.9-1)

get.file: INTERNAL: Get data files

Description

Internal function to get required design candidate, data, design and any other files from either R sources or as tab-delimited files stored in the working directory.

Usage

get.file(dat.in)

Arguments

dat.in

The input data to be read referencing either an R data frame or a string referencing a tab-delimited file stored in the working directory.

Value

The input data (dat.in) coded as a data frame.

Details

This internal function obtains data from different sources and formats them as data frames for use in other functions.

If dat.in is already a data frame in R, the data frame is returned. No other types of R objects are permitted.

If data are stored in a tab-delimited file in the working directory, dat.in references the filename as a character string enclosed in quotes. The tab-delimited file must be readable using read.table(filename, header=TRUE, sep="\t").

See Also

dcm.design.cand

Examples

Run this code
# NOT RUN {
## INTERNAL USE ONLY
# }

Run the code above in your browser using DataLab