Re: [R] Coding question for behavioral data analysis

2011-08-19 Thread Romain DOUMENC
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, as far as I understood your problem, this function might do the trick: CountNextBehavior <- function (data.source, interest.behavior, lev.ignore, interest.timeframe) { ## -- ## Ret

Re: [R] conditional data replace (recode, change or whatsoever)

2011-08-03 Thread Romain DOUMENC
Please do your homework before asking the list: An introduction to R, chapter 7 Am 03.08.2011 10:05, schrieb zcatav: > Hello, > I have a big data.frame, a piece of it as follows. > > a b c d > 1 58009 2010-11-02 0 NA > 2