[R] testing column data against criteria, point by point

2009-03-05 Thread Kara Przeczek
I am fairly new to R and I would like to do the following, but do not know where to start. Any help or direction would be appreciated. I have a time series of snow depth measurements. I would like to determine the depth of snowfall for each snowfall event. There is noise in the data so I only

Re: [R] testing column data against criteria, point by point

2009-03-05 Thread David Winsemius
Look at these functions. They should give you the building blocks you need: ?diff # returns a vector of length n-1 #it would be a logical vector if wrapped in the appropriate functions #needs to be padded to line up with dataframes ?rle# returns a list with the lengths and