[R] Easier way to do this?

2012-01-31 Thread Daniel Negusse
can someone tell me if there is an easier way to do this in R - create a design matrix? thanks. —> design <- model.matrix(~ -1+factor(c(1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5))) # Creates an appropriate design matrix can someone tell me

[R] need some help with model.matrix

2012-01-30 Thread Daniel Negusse
hello folks, i am learning R and microarray analysis from scratch using different sites. today i am doing an exercise from http://manuals.bioinformatics.ucr.edu/home/R_BioCondManual#R_functions the section i am at is 2. Affymetrix data analysis. I understand the syntax given in this section

[R] question on model.matrix

2012-01-29 Thread Daniel Negusse
> > > I am new to this group - joined today. I am in because i have an assignment > to do using R => microarray analysis using affy (bioconductor). > > while reading some tutorials, i came across this and i am stuck. i want to > understand it and would appreciate if anyone can tell me. > >