Displaying 1 result from an estimated 1 matches for "rpart_code".
Did you mean:
part_node
2011 Apr 22
3
Parametrized object name in Save statement
...tegrating the parameter into the internal
object name when tying to save it. Solving this one porblem will help me
start blasting though 100's of models and saving their output for later use.
I would call the script from command line as
Rscript file_name.R argument
for this example
Rscript rpart_code.R Kyphosis
#/bin/R
args <- commandArgs(TRUE) # Read the argument
require(rpart, quietly = TRUE)
#for this example lets use the kyphosis data in the rpart package
args <- "Kyphosis"
X<-paste(args," ~.", sep ="") # create model formula call. X = "Kyphos...