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

Re: [R] quick Help needed

2013-06-15 Thread arun
Hi, It is better to ?dput() the dummy dataset. I made up some data for female==0 dat1<- read.table(text="  pbnr    dat  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   8817 8817    0  1994 2 10023

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) > >

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