Description Usage Arguments Value Author(s) See Also Examples
Evaluate R code from a file within a local environment and return a list of objects of interest.
1 | sourceFile(filename, modelNames)
|
filename |
The name of a file containing R code. |
modelNames |
The names of objects of interest that should be generated by the R code in the file and that we want returned. |
A list containing one component for each name in modelNames
.
Paul Murrell
1 2 3 4 5 | modelNames <- c("id", "age",
"edu", "class",
"IndianMothers")
sourceFile(system.file("example", "student1.R", package="compare"),
modelNames)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.