Re: [R] Removing all duplicate row except by one

2011-08-12 Thread m.marcinmichal
Hi, thanks for response it's work perfect. Yes 't' is not good wariable it will be 'test', my wrong. Best Marcin M. -- View this message in context: http://r.789695.n4.nabble.com/Removing-all-duplicate-row-except-by-one-tp3736949p3738132.html Sent from the R help mailing list archive at Nabble

Re: [R] Removing all duplicate row except by one

2011-08-11 Thread Rolf Turner
On 12/08/11 07:37, m.marcinmichal wrote: Hi, It's my problem, supppose that we have a data.frame: t a b c 1 1 1 1 2 0 1 1 3 1 1 1 4 0 0 0 5 1 0 1 6 0 1 0 7 1 1 1 8 0 1 0 I need extract duplicat row i.e i nedd frame like this a b c 3 1 1 1 8 0 1 0 I try use subset(t, duplicated(t)) and t

Re: [R] Removing all duplicate row except by one

2011-08-11 Thread Justin
m.marcinmichal gmail.com> writes: > > Hi, > It's my problem, supppose that we have a data.frame: > -snip- You should avoid using t as a variable name since its an important R function! > I need extract duplicat row i.e i nedd frame like this > > a b c > 3 1 1 1 > 8 0 1 0 > not sure if t

[R] Removing all duplicate row except by one

2011-08-11 Thread m.marcinmichal
Hi, It's my problem, supppose that we have a data.frame: t a b c 1 1 1 1 2 0 1 1 3 1 1 1 4 0 0 0 5 1 0 1 6 0 1 0 7 1 1 1 8 0 1 0 I need extract duplicat row i.e i nedd frame like this a b c 3 1 1 1 8 0 1 0 I try use subset(t, duplicated(t)) and t[duplicated(t), ] but this command return