Displaying 2 results from an estimated 2 matches for "inputlist".
Did you mean:
input_list
2002 Apr 23
1
Tree package on R 1.4.1
...that CART procedure can be available to categorical and continuous variables.
How can I correct the R code such that x2 is regard as categorical and not ordinal?
By all means, reply me your suggestion or comments.
Thanks and best regards,
Baba
----------beginning of R code --------------------
inputlist <- list(Y=0, x1=0, x2=0, x3=0,x4=0,x5=0)
# inputlist <- list(Y=0, x1=0, x2="", x3=0,x4=0,x5=0)
Ex6 <- scan("c:\\data\\CART\\EX6.txt",inputlist)
Ex6.ltr <- tree(Y ~ x1 + x2 +x3 + x4 +x5 ,Ex6)
----------end of R code ---------------------------
-.-.-.-.-.-.-.-.-.-.-....
2012 Jan 11
3
turning a list of vectors into a data.frame (as rows of the DF)?
As a newer R practicioner, it seems I stump myself weekly (at least) with issues that have spinning my wheels. Here is yet another... I'm trying to turn a list of numeric vectors (of uneual length) inot a dataframe. Each vector held in the list represents a row, and there are some rows of unequal length. I would like NAs as placeholders for "missing" data in the shorter vectors.