Re: [R] Understand Rcode- subset

2015-08-24 Thread Jeff Newmiller
e code-id.lag <- c(id[3:length(id)], >FALSE,FALSE) >Thanking you again for your prompt response! >> Date: Mon, 24 Aug 2015 17:55:28 +0200 >> Subject: Re: [R] Understand Rcode- subset >> From: thierry.onkel...@inbo.be >> To: butt_its...@hotmail.com >> CC

Re: [R] Understand Rcode- subset

2015-08-24 Thread Jhon Grey
ice using the code-id.lag <- c(id[3:length(id)], FALSE,FALSE) Thanking you again for your prompt response! > Date: Mon, 24 Aug 2015 17:55:28 +0200 > Subject: Re: [R] Understand Rcode- subset > From: thierry.onkel...@inbo.be > To: butt_its...@hotmail.com > CC: r-help@r-project.org

Re: [R] Understand Rcode- subset

2015-08-24 Thread Jhon Grey
24 Aug 2015 15:25:09 +0200 > Subject: Re: [R] Understand Rcode- subset > From: thierry.onkel...@inbo.be > To: butt_its...@hotmail.com > CC: r-help@r-project.org > > Posting in HTML mangles up your code, making it hard to read. Please > resend your question in plain text an

Re: [R] Understand Rcode- subset

2015-08-24 Thread John Kane
Just to second Thierry's point, your HTML post is basically unreadable. Please repost as plain text. John Kane Kingston ON Canada > -Original Message- > From: butt_its...@hotmail.com > Sent: Mon, 24 Aug 2015 16:30:31 +0530 > To: r-help@r-project.org > Subject:

Re: [R] Understand Rcode- subset

2015-08-24 Thread Thierry Onkelinx
type==1 > sub<-transact[c(id[2:length(id)],FALSE),] > id<-c(id[3:length(id)],FALSE,FALSE) > sub2<-transact[id,] > Thanks in advance! > >> Date: Mon, 24 Aug 2015 15:25:09 +0200 >> Subject: Re: [R] Understand Rcode- subset >> From: thierry.onkel...@inbo.

Re: [R] Understand Rcode- subset

2015-08-24 Thread Thierry Onkelinx
Posting in HTML mangles up your code, making it hard to read. Please resend your question in plain text and make the code reproducible. See http://adv-r.had.co.nz/Reproducibility.html for more details on that. ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Natu

[R] Understand Rcode- subset

2015-08-24 Thread Jhon Grey
Hi! I am facing a problem in understanding the R-Code Suppose I have a dataset named- transact with its values like following: customer_ID shopping_pt record_type 1000 1 0 1000 2 0 1000 3 0 1000 4 0 1000 5 0