Skip to content
Prev 248892 / 398506 Next

Finding a Diff within a Dataframe columns

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