Re: [R] how to remove rows in which 2 or more observations are smaller than a given threshold?

2011-02-26 Thread hind lazrak
- f2(z)) >     user  system elapsed >     0.21    0.05    0.24 >  > identical(r0, r1) && identical(r0, r2) >  [1] TRUE > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com > >> -Original Message- >> From: r-help-boun...@r-project.org &

[R] how to remove rows in which 2 or more observations are smaller than a given threshold?

2011-02-26 Thread hind lazrak
Hello The data set I am examining has 7425 observations (rows with unique identifiers) and 46 samples(columns). I have been trying to generate a dataset that filters out observations that are "negligible" The definition of "negligible" is absolute value less or equal to 1.58. The rule that I wo

Re: [R] creating a scale (factor) based on a continuous variable nested within levels of factor

2010-11-07 Thread hind lazrak
king <- cut(hDatPretty$rating, breaks = c(-11, -4, 4, 11), >   labels = c('dislike', 'neutral', > 'like')) > > HTH, > Dennis > > On Sat, Nov 6, 2010 at 11:15 PM, hind lazrak wrote: >> >> Hello R-helpers >&g

[R] creating a scale (factor) based on a continuous variable nested within levels of factor

2010-11-06 Thread hind lazrak
Hello R-helpers I hope that my subject line is not detering anyone from helping me out:) I have been stuck of a few hours now, and I don't seem to pinpoint where the problem is. I have a data.frame which is structured as follow: str(hDatPretty) 'data.frame': 1665 obs. of  8 variables: $ time