hello,
I have a problem with using the results of a certain function.
This function is the "tree" function. If I use it to produce a tree say
with the data "iris" from the help page, I can see the "attributes" of
my result. Now I need to use a column of the attributes of my tree
ir.tr, is there an
hello all,
I know I can export a graphic from R to Xfig from the manuals, but I
just cannot figure out it works.
does anyone know have to do so?
thanks in advance.
Nicolas
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-
hello,
I wonder whether there is a way to plot in R the following:
I have two arrays of dimension (200*1) say x1 and x2.
I would like to plot on the same graph x1[1:50,]*x2[1:50,] with pch=1
x1[51:100,]*x2[51:100,] with pch=2
hi,
I would like to subsample the array c(1:200) at random into ten subsamples
v1,v2,...,v10.
I tried with to go progressively like this:
> x<-c(1:200)
> v1<-sample(x,20)
> y<-x[-v1]
> v2<-sample(y,20)
and then I want to do:
>x<-y[-v2]
Error: subscript out of bounds.
___
hi,
I am encoutering a very little problem that seemed to be so easy to solve
I need to divide the array
> A<-c(1:200)
into two subsets at random. Therefore I use the function "sample" in R:
> S<-sample(A,100)
for a random sample of size 100. Then I need the values in A that are not
selec
hi,
I am trying to grow a classification tree on some data, but I have a little
problem. In order to do so I have to use a function like "tree" in R and on the
internet help(tree) I get the following:
"The left-hand-side (response) should be either a numerical vector when a
regression tree will
hello,
I am encoutering problems with a function of R.
The function is for classification trees.
I am working on datas of this kind:
X1X2X3X4X5 class
1 2.092 1.902 2.779 2.944 1.946 1
for 200 observations and 4 differents classes.
What i would like to do is g
ame".
So instead of considering the object as an object of class tree the
function "cv.tree" handles it like a data.frame.
Does anyone knows why or how to work on a class "tree" object so that
"cv.tree" can handle it?
Thanks in advance...
Nicolas Deig
___