# assuming your data frame is named "x", you can get the counts of each combo:
table(do.call(paste0, x))
# and to get the proportions:
table(do.call(paste0, x))/nrow(x)
-Original Message-
From: R-help On Behalf Of Jeff Reichman
Sent: Thursday, May 21, 2020 10:22 AM
To: R-help@r-proje
igma^2 or x^2 or r^2.
On Mon, Oct 21, 2019 at 9:46 AM Ivan Krylov wrote:
> On Fri, 18 Oct 2019 15:25:59 -0700
> "Dalthorp, Daniel via R-help" wrote:
>
> > I'd like to see the statistics on it before jumping to a conclusion
> > that the American preference is
oh my...
I'd like to see the statistics on it before jumping to a conclusion that
the American preference is "chi-square" and the British preference is
"chi-squared". I don't see that at all.
--
In keeping with the pronunciation of x^2 and 3^2, maybe "chi-squared" makes
the most sense,.
The
I've been working on a fairly extensive R package for a few years with
ongoing testing with Travis CI. Today, though, I'm seeing an error in
installing the gsl package both at Travis and from the Windows GUI:
install.packages("gsl",repos = getOption("repos"), repo=NULL, type="source")
# gives the
how about one of the following?
vdat$xy <- 2 * (ifelse(is.na(vdat$x1), 0, vdat$x1)) + 5 *
(ifelse(is.na(vdat$x2),
0, vdat$x2)) + 3 * (ifelse(is.na(vdat$x3), 0, vdat$x3))
vdat$xy <- ifelse(is.na(as.matrix(vdat[, paste0("x", 1:3)])), 0,
as.matrix(vdat[, paste0("x", 1:3)])) %*% c(2, 5, 3)
On Sat, A
5 matches
Mail list logo