This definitely does the trick. I knew there was an easier way!
Petr Pikal wrote: > > [EMAIL PROTECTED] napsal dne 27.05.2008 09:31:16: > >> >> Hi Petr >> >> My mistake in omitting "replace=T" in the first part. >> Unfortunately I oversimplified my problem as I'm not actually dealing > with >> whole numbers but numerous significant digits, therefore the table > option >> will not assist me in this case. My bin size will vary to the order of >> 0.05-1. >> >> Perhaps try these instead: >> x <- rnorm(1:100) >> z<-seq(from=-2.5, to=3.5, by=0.5) > > OK, then you can use table with cut and maybe findInterval as mentioned in > help page. > e.g. > table(cut(x,c(-Inf, z, +Inf))) > > Regards > Petr > > >> >> Cheers, >> Tyler >> >> ______________________________________________ >> 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. >> >> >> >> -- >> View this message in context: > http://www.nabble.com/create-frequency-table- >> tp17481748p17484689.html >> Sent from the R help mailing list archive at Nabble.com. >> >> ______________________________________________ >> 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. > > ______________________________________________ > 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. > > -- View this message in context: http://www.nabble.com/create-frequency-table-tp17481748p17498094.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.