Re: [R] please help with "could not find function "ComBat.mc" "

2020-11-12 Thread Yuan Chun Ding
Hi Jim, Thank you for the message! Yes, you are right, I contacted Dr. Xu Zongli, he said he removed the ComBat.mc function from the new version. Ding From: Jim Lemon [mailto:drjimle...@gmail.com] Sent: Wednesday, November 11, 2020 5:36 PM To: Yuan Chun Ding Cc: r-help@r-project.org Subject:

Re: [R] Data transformation problem

2020-11-12 Thread phil
Thank you so much for this elegant solution, Jeff. Philip On 2020-11-12 02:20, Jeff Newmiller wrote: I am not a data.table afficiando, but here is how I would do it with dplyr/tidyr: library(dplyr) library(tidyr) do_per_REL <- function( DF ) { rng <- range( DF$REF1 ) # watch out for missing