Skip to content
Back to formatted view

Raw Message

Message-ID: <1296445786356-3248066.post@n4.nabble.com>
Date: 2011-01-31T03:49:46Z
From: Ramya
Subject: Finding a Diff within a Dataframe columns
In-Reply-To: <AANLkTi=WuOc+yOutH5dJVa7CXZR9jjy6xR=+1qaHkgw+@mail.gmail.com>

Hi jholtman,

Thanks a ton it just worked. if you dont mind can you explain the code it a
little 
sapply(seq(from = 1, by = 2, length = ncol(x) %/% 2), function(a){
+     x[[a]] - x[[a + 1]]
+ }) 

wat is the purpose of double percent sign and is the sapply the function we
generally use for the Dataframe?

Thanks
Ramya
-- 
View this message in context: http://r.789695.n4.nabble.com/Finding-a-Diff-within-a-Dataframe-columns-tp3247943p3248066.html
Sent from the R help mailing list archive at Nabble.com.