[R] can't install DESEq2 on Mac

2015-10-08 Thread Dawn
Hi, I can't install DESEq2 on my iMac, as follows: > source("http://bioconductor.org/biocLite.R";) Bioconductor version 3.1 (BiocInstaller 1.18.4), ?biocLite for help > biocLite("DESeq2") BioC_mirror: http://bioconductor.org Using Bioconductor version 3.1 (BiocInstaller 1.18.4), R version 3.2.2.

Re: [R] sum some columns for each row

2015-07-14 Thread Dawn
I attached the file including the first two rows and please help to make it the numeric data frame. Hopefully the following command works: dcm <- rowSums(dat1[,grep("DCM",names(dat1),fixed=T)],na.rm=T) Thank you very much! Dawn On Tue, Jul 14, 2015 at 4:36 PM, Jeff Newmiller wrot

Re: [R] sum some columns for each row

2015-07-14 Thread Dawn
;,..: 2 1 $ X46SUR : Factor w/ 31 levels "","1","10","11",..: 2 2 $ X52DCM : Factor w/ 49 levels "","1","10","11",..: 13 23 $ X64DCM : Factor w/ 35 levels "","1","10","11&quo

Re: [R] sum some columns for each row

2015-07-14 Thread Dawn
, na.rm = T) : 'x' must be numeric" Then it didn't work either using as.numeric(): > as.numeric(dat) Error: (list) object cannot be coerced to type 'double' Thanks! Dawn On Fri, Jul 10, 2015 at 4:35 PM, Dawn wrote: > Thank you all and sorry for the data m

Re: [R] sum some columns for each row

2015-07-10 Thread Dawn
Thank you all and sorry for the data messing. It has worked! Best, Dawn On Fri, Jul 10, 2015 at 4:15 AM, Jim Lemon wrote: > Hi Dawn, > Your data are a bit messed up, but try the following: > > colSums(dat[,grep("ABC",names(dat),fixed=TRUE)],na.rm=TRUE) > colSums(

[R] sum some columns for each row

2015-07-09 Thread Dawn
there some help? Thank you! Dawn [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

[R] partykit ctree: minbucket and case weights

2014-05-28 Thread Amber Dawn Nolder
Hello, I am an R novice, and I am using the "partykit" package to create regression trees. I used the following to generate the trees: ctree(y~x1+x2+x3+x4,data=my_data,control=ctree_control(testtype = "Bonferroni", mincriterion = 0.90, minsplit = 12, minbucket = 4, majority = TRU

[R] error in install

2013-11-20 Thread Dawn
Hi, I am trying to install R on the Unix system. When I type './configure', it seems many not installed on my computer. The last one is 'configure: error: No F77 compiler found'. Can you tell me where I can get these software before installing R? Thanks! Dawn [[alte

[R] Need help locating the longest series of consecutive numbers in a matrix

2009-10-28 Thread Staples, Angela Dawn
I need to determine the length of the longest series of consecutive numbers (1's to be specific) and the start time of that series. For example, in the following sample, the first column is "time" and the second column indicates the presence of the target behavior. I would like a function that wou

[R] Help finding the mode and maximum for a specified 'window' of time series data

2008-06-15 Thread Staples, Angela Dawn
I am relatively new to R, so apologize up front for my long question, particularly if there is too much or too little information. I have a large time series data set where each subject's behavior was originally coded on .25s intervals for 3min task. I am trying to determine if the findings are di