On Aug 21, 2012, at 5:48 AM, Thomas wrote:
I'm trying to enter a frequency table manually so that I can run a
goodness of fit test (I only have the frequencies, I don't have the
raw data).
So for example, let's say I want to re-create the HorseKicks table:
library(vcd)
data(HorseKicks)
s
ersity
College Station, TX 77843-4352
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Thomas
> Sent: Tuesday, August 21, 2012 8:55 AM
> To: Noia Raindrops
> Cc: r-help@r-project.org
> Subject: Re: [R] Enter
I've no idea why, but both seemed to work perfectly. I'll work through
the help files to see if I can figure it out.
Thank you!
Thomas
On 21 Aug 2012, at 14:03, Noia Raindrops wrote:
Try this:
table(nDeaths = rep(0:4, c(109, 65, 22, 3, 1)))
## or
as.table(array(c(109L, 65L, 22L, 3L, 1L), d
Try this:
table(nDeaths = rep(0:4, c(109, 65, 22, 3, 1)))
## or
as.table(array(c(109L, 65L, 22L, 3L, 1L), dimnames = list(nDeaths = 0:4)))
--
Noia Raindrops
noia.raindr...@gmail.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/lis
I'm trying to enter a frequency table manually so that I can run a
goodness of fit test (I only have the frequencies, I don't have the
raw data).
So for example, let's say I want to re-create the HorseKicks table:
library(vcd)
data(HorseKicks)
str(HorseKicks)
'table' int [1:5(1d)] 109 65
5 matches
Mail list logo