Skip to main content

Data

Posted in

I think Red-R needs some data.

There are a lot of data from the different R packages. It need to be collected and put into a directory in Red-R.

~~~~
library foreign

R package is not R package without the foreign package / library. Foreign is converter for all statistical packages software. It offers support to read SPSS, SAS, Octave (FOSS mathlab), Systat,ARFF, etc. and write data into dbf, ARFF, etc.

Foreign is the swiss army tools for data in R.

Foreign widget is Red-R is highly recommended.

Please see Rhelp files in .library/foreign

Visit Quick R to see import and export of data in R

Import
http://www.statmethods.net/input/importingdata.html
Export
http://www.statmethods.net/input/exportingdata.html

Noli

This would not be a job for Red-R core to handle so putting it in the Red-R directory is not appropriate as the data does not belong to a single package.

Feel free to set up a "data" package that has all of the data you want in a folder or file within the package. Then make widgets that will read in that data (Foreign seems like a good package).

If others like your package and want to use the data importing functions they can set "data" as a dependency. If enough do this we will distribute "data" along with the core (provided that the licensing is all in place to do so).