> ldiff <- function(x)c(TRUE, x[-1]!=x[-length(x)]) # "logical" diff function
> d[ldiff(d$DataValue), ]
ElpsdTime DataValue
1 0 1
490 2
6 150 3
7 180 2
8 210 3
ldiff does the first half of what rle does.
B
hello,
I have a question regarding the function WebCorpus..When I am using this
function its showing error: couldnt find the function...I have downloaded
the tm package...Can you help me in this regard? Also I want to know how we
can data/information about a product or topic from google,facebook e
On 2012-06-08 14:33, Steve E. wrote:
Dear R Community - I hope you might be able to provide some guidance
regarding the use of the rle function. I have a set of time-series data
where a measured value is recorded every 30 seconds after the start of an
experiment. Many of the measured values repea
3 matches
Mail list logo