[R] Data manipulation
brown_emu at yahoo.com
Mon Oct 15 09:33:26 CEST 2007
I am not exactly sure what you are asking for, but something like this? This
would be option (2) from your list - I don't know that it would be too
difficult in R that you would want to use another tool.
filt <- function(x)
with(x,which(Hole > 1))
normalize <- function(x,y)
x$Feature <- x$Feature - with(y,Nominel[match(x$Hole,Hole)])
# from CSV import
mydata <- read.csv(...)
normalizedData <- normalize(filt(mydata))
--- Klaus Friis Østergaard <farremosen at gmail.com> wrote:
> I have a data set which is like this I write as the CSV I import:
> with 98 sample and 10 different holes. These are measured values.
> Now I also have a list of nominel values:
> If I want to "normalize" the measured values. The results are to be used in
> a Sweave file that I plan to reuse for several similar data sets in the
> I have been looking at different approache:
> 1. do it in a script out side R
> 2. do it the long and hard way by filtering out all the single holes and
> Feature, the on this list subtract the nominel values, and then combine it
> 3. ?
> Any help and guidence apriciated
> Klaus F. Østergaard, <farremosen(at)gmail dot com>
> [[alternative HTML version deleted]]
> > ______________________________________________
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help