Re: [R] update.packages() after updating R version

2018-05-26 Thread Duncan Murdoch
On 26/05/2018 7:24 PM, Rich Shepard wrote: R-3.5.0 is installed here. When I tried to update installed packages errors were reported when their dependencies were built under a prior version of R. Reading ?update.packages() I did not see an option that would automatically update dependenc

Re: [R] update.packages() after updating R version

2018-05-26 Thread Rich Shepard
On Sat, 26 May 2018, Bert Gunter wrote: Is this warning in ?update.packages relevant? Bert, Short answer: no. I have only a single R library here: /usr/lib/R/library. I've tried 'install.packages("", dependencies = TRUE) and still need to follow the dependencies chain down, re-install

Re: [R] update.packages() after updating R version

2018-05-26 Thread Bert Gunter
Is this warning in ?update.packages relevant? "Take care when using dependencies (passed to install.packages ) with update.packages, for it is unclear where new dependencies should be installed. The current implementation will only a

[R] update.packages() after updating R version

2018-05-26 Thread Rich Shepard
R-3.5.0 is installed here. When I tried to update installed packages errors were reported when their dependencies were built under a prior version of R. Reading ?update.packages() I did not see an option that would automatically update dependences built under an earlier version of R. Is there

Re: [R] TukeyHSD for multiple response

2018-05-26 Thread Michael Friendly
Hi Sergio Doing those tests 30 times is going to give you a huge Type I error rate, even if there was a function that did that. There is a reason why TukeyHSD doesn't make it easy. In general, if there are useful comparisons among the species, you are better off setting up and testing contra

Re: [R] Grouping by 3 variable and renaming groups

2018-05-26 Thread Jeff Reichman
Rui Your first code worked just fine. Jeff -Original Message- From: Rui Barradas Sent: Saturday, May 26, 2018 8:30 AM To: reichm...@sbcglobal.net; 'R-help' Subject: Re: [R] Grouping by 3 variable and renaming groups Hello, Sorry, but I think my first answer is wrong. You probably wa

Re: [R] Grouping by 3 variable and renaming groups

2018-05-26 Thread Jeff Reichman
Rui That did it Jeff -Original Message- From: Rui Barradas Sent: Saturday, May 26, 2018 8:23 AM To: reichm...@sbcglobal.net; 'R-help' Subject: Re: [R] Grouping by 3 variable and renaming groups Hello, See if this is it: priceStore_Grps$StoreID <- paste("Store", seq_len(nrow(priceS

Re: [R] Grouping by 3 variable and renaming groups

2018-05-26 Thread Rui Barradas
Hello, Sorry, but I think my first answer is wrong. You probably want something along the lines of sp <- split(priceStore_Grps, priceStore_Grps$StorePC) res <- lapply(seq_along(sp), function(i){ sp[[i]]$StoreID <- paste("Store", i, sep = "_") sp[[i]] }) res <- do.call(rbind, res) row.na

Re: [R] Grouping by 3 variable and renaming groups

2018-05-26 Thread Rui Barradas
Hello, See if this is it: priceStore_Grps$StoreID <- paste("Store", seq_len(nrow(priceStore_Grps)), sep = "_") Hope this helps, Rui Barradas On 5/26/2018 2:03 PM, Jeff Reichman wrote: ALCON I'm trying to figure out how to rename groups in a data frame after groups by selected variab

[R] Grouping by 3 variable and renaming groups

2018-05-26 Thread Jeff Reichman
ALCON I'm trying to figure out how to rename groups in a data frame after groups by selected variabels. I am using the dplyr library to group my data by 3 variables as follows # group by lat (StoreX)/long (StoreY) priceStore <- LapTopSales[,c(4,5,15,16)] priceStore <- priceStore[complete