Task | How
------------- | -------------
Read CSV | irisDT <- fread(“iris.csv”)
Return everything | irisDT irisDT[ ]
Select columns | irisDT[ , .(Sepal.Length, Sepal.Width) ]
Restrict rows | irisDT[ Sepal.Length >=5 , ]
Aggregate | irisDT[ , mean(Sepal.Length)]
Aggregate by group | irisDT[ , mean(Sepal.Length) , Species ]
Count | irisDT[ , .N ]
Hadley Wickham, insanely prolific developer of R packages has produced a great ecosystem:
Term | Explanation | Example(s)
------------- | ------------- | -------------
plot | A plot using the grammar of graphics | ggplot()
aesthetics | attributes of the chart | colour, x, y
mapping | relating a column in your data to an aesthetic
statistical transformation | a translation of the raw data into a refined summary | stat_density()
geometry | the display of aesthetics | geom_line()
, geom_bar()
scale | the range of values | axes, legends
coordinate system| how geometries get laid out | coord_flip()
facet | a means of subsetting the chart | facet_grid()
theme | display properties | theme_minimal()
A single point of contact for myriad statistical & machine learning algorithms
- Plus handy data prep!
- Find out more at caret homepage
Interact with AzureML in R
Write markdown, interweave code
Make your own CRAN
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.