Displaying 1 result from an estimated 1 matches for "modind".
Did you mean:
modid
2012 Nov 07
5
Calling R object from R function
...s <- list()
I have few statments one of them is
vectx <- c(,1,2,3,4,5,6,6)
vectz <- c(12,34,5,6,78,9,90)
and then................
ls(vectx=vtecx,vectz=vectz)
return(ls)
}
Then I great an new function has the following arguments
get.m <- function(dat,asim,ModelFun,M){
Sim <- list()
modInd <- ModelFun(TrainData=dat,TestData=dat,mdat=dat,nsam=0.1) *# HERE IS
MY PROBLEM HOW CAN I JUST CALL vectx without fitting the ModelFun becasue as
you see in the bottom TrainData and Test are arguments used after
resampling. I dont want to use the main dat argument?*
if(M==11){
vecx <- mo...