Re: [R] [EXTERNAL] Attribute Combinations

2020-05-21 Thread Dalthorp, Daniel via R-help
# 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

Re: [R] [EXTERNAL] Re: "chi-square" | "chi-squared" | "chi squared" | "chi square" ?

2019-10-21 Thread Dalthorp, Daniel via R-help
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

Re: [R] [EXTERNAL] Re: "chi-square" | "chi-squared" | "chi squared" | "chi square" ?

2019-10-18 Thread Dalthorp, Daniel via R-help
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

[R] cannot install gsl from source?

2019-06-18 Thread Dalthorp, Daniel via R-help
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

Re: [R] [EXTERNAL] Re: create

2019-04-13 Thread Dalthorp, Daniel via R-help
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