[datatable-help] colwise division
Serdar Akin
serdar.akin at pensionsmyndigheten.se
Mon Jan 16 15:38:56 CET 2012
Hi,
I have a problem that I want to divide column "b" with all the other columns, in this case "c" and "d" , is there a nice way to do this?
Further I would like to divide columns "b,c,d" with row 1 form column "b" to create a index?
a <- data.table(year = 2001:2010, b = 1:10, c = 11:20, d = 21:30)
Regards Serdar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20120116/b93d2f3d/attachment.htm>
More information about the datatable-help
mailing list