Thanks... I don't know why I didn't try... guess was in hurry...
I apologize for posting such a simple question
On Mon, Sep 16, 2013 at 3:44 PM, Rui Barradas wrote:
> Hello,
>
> That's an even simpler case for ?split.
>
>
> dat <- read.table(text = "
>
> iduserIP
> 1 12 ip1
>
Hello,
That's an even simpler case for ?split.
dat <- read.table(text = "
iduserIP
1 12 ip1
2 12 ip1
3 12 ip2
4 12 ip2
5 12 ip2
6 12 ip3
7 12 ip3
8 12 ip3
", header = TRUE)
split(dat, dat$IP)
Hope this he
Hi,
I had an example like this:
iduseraction
1 12 login
2 12 view
3 12 view
4 12 view
5 12 login
6 12 view
7 12 view
8 12 login
which I used to split using split(dat1,cumsum(dat1$action=="login")).
If I had a
3 matches
Mail list logo