data.table := an improved data.frame

I started using a package called data.table just yesterday. I re-wrote the whole of the MayaCalc package to use data.table instead of data.frame. Got it working in a few hours. Syntax is clearer and very concise. As a bonus everything should execute much faster (x10 to x30). I will time MayaCalc today after checking that the results are o.k.
Documentation for data.table is a bit terse, I will write some examples here in a few days’ time.

Be aware though that the semantics is really different when used as an argument to a function. If you use the := operator you achieve the equivalent of passing the data.table argument by REFERENCE rather than the normal R convention of passing all arguments by COPY. This is much faster for large data tables as copying is avoided, but you should be careful even if you understand the difference between these two semantics. If you don’t, do not use data.table before you fully understand the difference and all its implications.

photobiologyLamps updated to 0.1.5

A scaling error in two spectra measured with a Bentham spectroradiomer has been corrected. Data was as mW m-2 nm-1 instead of W m-2 nm-1.

photobiology R packages updated

This is two announce that except for photobiologyVIS and photobiologyUV all packages in the suite have been updated. I tried to make all updates backwards compatible. There are also some new packages on which I have been working for some time that I am publicly releasing today. Vignettes have also been improved.

All packages, even those not updated, have been built now under Windows 7 x64, and are compatible also with x386 (32 bit) versions of Windows.

Continue reading