[R] taking data out of a dataframe

Mulholland, Tom Tom.Mulholland at dpi.wa.gov.au
Wed Feb 2 01:57:49 CET 2005


In general if you are using a package, it helps to identify the package. I assume it is the tree package.

Is this what you are after (from the example on the ?tree page)

> attr(ir.tr,"ylevels")
[1] "setosa"     "versicolor" "virginica" 

Tom
>
> -----Original Message-----
> From: NICOLAS DEIG [mailto:nicolas.deig at epfl.ch]
> Sent: Wednesday, 2 February 2005 3:10 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] taking data out of a dataframe
> 
> 
> 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 any way or function that permits me to take 
> this column out?
> THanks in advance
> Nicolas
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list