removeing or filtering data
2
0
Entering edit mode
@denrique-escobar-espinoza-1303
Last seen 9.6 years ago
hi, I have a matrix where I would like to remove certain values below a threshold. is there an easy way to do that? like repalcing values <100 another value, lets say 100, in an array? are we supposed to use the apply function? Thanks ______________________________________________________________________ ______________ Comedy with an Edge to see what's on, when.
• 649 views
ADD COMMENT
0
Entering edit mode
Naomi Altman ★ 6.0k
@naomi-altman-380
Last seen 2.9 years ago
United States
x[x<100]=100 At 01:59 PM 6/15/2007, D.Enrique ESCOBAR ESPINOZA wrote: >hi, >I have a matrix where I would like to remove >certain values below a threshold. >is there an easy way to do that? > >like repalcing values <100 >another value, lets say 100, >in an array? > >are we supposed to use the apply function? >Thanks > > > >_____________________________________________________________________ _______________ > >Comedy with an Edge to see what's on, when. > >_______________________________________________ >Bioconductor mailing list >Bioconductor at stat.math.ethz.ch >https://stat.ethz.ch/mailman/listinfo/bioconductor >Search the archives: >http://news.gmane.org/gmane.science.biology.informatics.conductor Naomi S. Altman 814-865-3791 (voice) Associate Professor Dept. of Statistics 814-863-7114 (fax) Penn State University 814-865-1348 (Statistics) University Park, PA 16802-2111
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 9 hours ago
United States
D.Enrique ESCOBAR ESPINOZA wrote: > hi, > I have a matrix where I would like to remove > certain values below a threshold. > is there an easy way to do that? > > like repalcing values <100 > another value, lets say 100, > in an array? Both of your questions today indicate a lack of knowledge about the fundamental aspects of working with R. That's fine, as everybody has to start somewhere. However, all of these subjects are covered in 'An Introduction to R', which ships with all versions of R, and is also available on the R-project website. In addition, this is the Bioconductor list, which is supposed to be dedicated to questions concerning Bioconductor packages rather than basic R questions. So please read 'An Introduction to R'. It really is worthwhile. Also, please read the BioC posting guide: http://www.bioconductor.org/docs/postingGuide.html As well as the R-help posting guide: http://www.r-project.org/posting-guide.html Best, Jim > > are we supposed to use the apply function? > Thanks > > > > ____________________________________________________________________ ________________ > > Comedy with an Edge to see what's on, when. > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor -- James W. MacDonald, M.S. Biostatistician Affymetrix and cDNA Microarray Core University of Michigan Cancer Center 1500 E. Medical Center Drive 7410 CCGC Ann Arbor MI 48109 734-647-5623 ********************************************************** Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues.
ADD COMMENT

Login before adding your answer.

Traffic: 969 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6