> getwd()
Below, some examples are included. Use "help
For example, to upload the
Use:
> data()
to list the datasets available. Take for example the iris dataset. You can look at this dataset with the command:
> iris
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
1 5.1 3.5 1.4 0.2 setosa
2 4.9 3.0 1.4 0.2 setosa
3 4.7 3.2 1.3 0.2 setosa
4 4.6 3.1 1.5 0.2 setosa
5 5.0 3.6 1.4 0.2 setosa
6 5.4 3.9 1.7 0.4 setosa
...
149 6.2 3.4 5.4 2.3 virginica
150 5.9 3.0 5.1 1.8 virginica
One can also use the command data(...) to upload a dataset that is not already loaded in the environment. For example, if "iris" wasn't already loaded, it could be loaded with:
> data(iris)
getwd()
and then use:
> clenses = read.csv("contact-lenses-with-attrib-names.csv")
you can then see the content of the dataset using:
> clenses
If the dataset is not comma separated, but space-separated, use
> clenses = read.table("contact-lenses-with-attrib-names.txt")
instead.
Using the DATA FRAME structure in R:
Data Preprocessing in R:
Correlation based Feature Selection (CFS), ReliefF, ...
Singular Value Decomposition (SVD), Principal Components Analysis (PCA), Fourier transform, ...
R Weka Interface