Re: [R] Quick help needed in coding quantile normalization

2013-10-26 Thread Jeff Newmiller
Couple of problems: 1) The Posting Guide clearly states that this is not a homework help forum. We don't know what rules your study is constrained by, but if you are doing homework then we do know you have resources at your educational institution to rely on. 2) If this is not homework, why th

[R] Quick help needed in coding quantile normalization

2013-10-25 Thread helpwperl
I'm trying to code quantile normalization without using any fancy functions (e.g., normalizeBetweenArrays(), normalize.quantities(), etc.). I'm having a hard time trying to re-order the columns of my means matrix to match the original unsorted matrix. I assume I will have to somehow utilize order()

Re: [R] quick Help needed

2013-06-15 Thread arun
,3:8],dat1$female,mat=TRUE) A.K. - Original Message - From: Sophie Homeyer To: r-help@r-project.org Cc: Sent: Saturday, June 15, 2013 4:58 PM Subject: [R] quick Help needed Hi, i am new to this forum and not sure how it works, I am trying to do deskriptive descripe my data in terms of

Re: [R] quick Help needed

2013-06-15 Thread Bhupendrasinh Thakre
table(scltotal$female,scltotal$dys) Best Regards, Bhupendrasinh Thakre Sent from my iPad On Jun 15, 2013, at 3:58 PM, Sophie Homeyer wrote: > Hi, > i am new to this forum and not sure how it works, > I am trying to do deskriptive descripe my data in terms of gender: > > head(scltotal) > >

[R] quick Help needed

2013-06-15 Thread Sophie Homeyer
Hi, i am new to this forum and not sure how it works, I am trying to do deskriptive descripe my data in terms of gender: head(scltotal) pbnrdat dep dys sop ago mis age female messpunkt2 messpunkt1 tage eintrittsjahr 1 10023 1994-02-21 0.75 1.00 0.50 0.50 0.75 35 1 881

Re: [R] quick help needed: split a number and "find and replace" type of function that works like in MS excel

2011-05-01 Thread Ram H. Sharma
Thank you Steve for the solution: As per your suggestion I spend some time to make it work for 2 variables. nvar = 3 # number of variables ncol<- nvar*2 func1<- function(x) {sapply( strsplit(as.character(x), ""), match, table= c("1","2","3","4",NA))} mydf1 <- data.frame(t

Re: [R] quick help needed: split a number and "find and replace" type of function that works like in MS excel

2011-05-01 Thread Steve Lianoglou
Hi, There are a couple of ways to do what you want. I'll provide the fodder and let you finish the implementation. On Sun, May 1, 2011 at 4:26 PM, Ram H. Sharma wrote: > Hi R experts > > I have a couple of  quick question: > > Q1 > #my data > set.seed(12341) > SN <- 1:100 > pool<- c(12,13,14, 2

[R] quick help needed: split a number and "find and replace" type of function that works like in MS excel

2011-05-01 Thread Ram H. Sharma
Hi R experts I have a couple of quick question: Q1 #my data set.seed(12341) SN <- 1:100 pool<- c(12,13,14, 23, 24, 34) CT1<- sample(pool, 100, replace= TRUE) set.seed(1242) CT2 <- sample(pool, 100, replace= TRUE) set.seed(142) CT3 <- sample(pool, 100, replace= TRUE) # the number of variables r