GREAT!!!

Thanks so much !!!

-B

|-----Original Message-----
|From: John Kane [mailto:[EMAIL PROTECTED]
|Sent: Thursday, October 25, 2007 1:45 PM
|To: Bernd Jagla; 'Henrique Dallazuanna'
|Cc: r-help@r-project.org
|Subject: Re: [R] data frame usage
|
|I think I also misunderstood. It sounds like you want
|to subset the data set.
|
|Try
|aa <- subset(x x$label == "xxx")
|
|--- Bernd Jagla <[EMAIL PROTECTED]> wrote:
|
|> No, I just want to the values for one class nothing
|> applied to them.
|> So for example tapply(x$val, x$label, hist) gives me
|> all kind of stats that
|> can be used for plotting the histogram. But I want
|> to plot the actual
|> histogram for one class.
|> I guess it would be easiest to take your construct
|> and just "echo" the
|> values for a specific class.
|> I hope you understand better what I mean....
|>
|> Thanks again,
|>
|> Bernd
|>
|> |-----Original Message-----
|> |From: Henrique Dallazuanna
|> [mailto:[EMAIL PROTECTED]
|> |Sent: Thursday, October 25, 2007 1:34 PM
|> |To: Bernd Jagla
|> |Cc: r-help@r-project.org
|> |Subject: Re: [R] data frame usage
|> |
|> |Yes, or
|> |
|> | tapply(x$val, x$label, summary)[[1]]
|> |
|> |for the first class.
|> |
|> |On 25/10/2007, Bernd Jagla <[EMAIL PROTECTED]>
|> wrote:
|> |
|> |    Wow, that easy...
|> |    And how can get only the values for a specific
|> class?
|> |
|> |    Like tapply(x$val, x$label, ?echo?)$class1
|> |
|> |    What should echo be?
|> |
|> |    Thanks,
|> |    B
|> |
|> |    |-----Original Message-----
|> |    |From: Henrique Dallazuanna
|> [mailto:[EMAIL PROTECTED]
|> |    |Sent: Thursday, October 25, 2007 1:15 PM
|> |    |To: Bernd Jagla
|> |    |Cc: r-help@r-project.org
|> |    |Subject: Re: [R] data frame usage
|> |    |
|> |    |Hi,
|> |    |
|> |    |tapply(x$val, x$label, summary)
|> |    |
|> |    |
|> |    |
|> |    |On 25/10/2007, Bernd Jagla <
|> [EMAIL PROTECTED]> wrote:
|> |    |
|> |    |       Hi,
|> |    |       I am new to R and couldn't find any
|> information on how to
|> |handle my
|> |    |table
|> |    |       data that I just read in the way I want to
|> use it..
|> |    |
|> |    |       I read in a table from a file:
|> |    |       x <- read.delim("filenam", header=TRUE)
|> |    |
|> |    |       one column (x$label) hold the class
|> labels. Another holds
|> |some
|> |    values
|> |    |       (x$val).
|> |    |       I want to calculate summary statistics for
|> different
|> classes.
|> |    |
|> |    |       How would I do this?
|> |    |
|> |    |       Thanks,
|> |    |
|> |    |       Bernd
|> |    |
|> |    |
|> ______________________________________________
|> |    |       R-help@r-project.org mailing list
|> |    |
|> https://stat.ethz.ch/mailman/listinfo/r-help
|> |    |< https://stat.ethz.ch/mailman/listinfo/r-help
|> |<https://stat.ethz.ch/mailman/listinfo/r-help> >
|> |    |       PLEASE do read the posting guide
|> http://www.R-
|> |project.org/posting-
|> |    |guide.html
|> |    |       and provide commented, minimal,
|> self-contained, reproducible
|> |code.
|> |    |
|> |    |
|> |    |
|> |    |
|> |    |
|> |    |--
|> |    |Henrique Dallazuanna
|> |    |Curitiba-Paraná-Brasil
|> |    |25° 25' 40" S 49° 16' 22" O
|> |
|> |
|> |
|> |
|> |
|> |
|> |--
|> |Henrique Dallazuanna
|> |Curitiba-Paraná-Brasil
|> |25° 25' 40" S 49° 16' 22" O
|>
|> ______________________________________________
|> R-help@r-project.org mailing list
|> https://stat.ethz.ch/mailman/listinfo/r-help
|> PLEASE do read the posting guide
|> http://www.R-project.org/posting-guide.html
|> and provide commented, minimal, self-contained,
|> reproducible code.
|>
|
|
|
|      Be smarter than spam. See how smart SpamGuard is at giving junk email
|the boot with the All-new Yahoo! Mail at
|http://mrd.mail.yahoo.com/try_beta?.intl=ca

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to