2 0
Sign in to rate

Intermediate R functions and design patterns

0.06MB. 0 audio & 1 images. Updated 2015-08-25.
The author has shared 4 other item(s).


Useful functions from and some underlying principles behind the R programming language. For more decks, please see: http://andrewtmckenzie.com/sr/

Sample (from 51 notes)

Cards are customizable! When this deck is imported into the desktop program, cards will appear as the deck author has made them. If you'd like to customize what appears on the front and back of a card, you can do so by clicking the Edit button, and then clicking the Cards button.
Front In R, what is the function of cut(a, b, c)? 
Back creates a factor variable, where a) the first argument a is an input vector,b) the second argument b is the number of breakpoints, c) the third argument is a character vector specifying the lables > factor is aka categorical > nb, any number below the first or above the last breakpoint is coded as an NA 
Front In R, what is the difference between these two lm regression models? why?a) y ~ xb) y ~ 1 + x
Back nothing; 1 corresponds to the intercept which is assumed in (a), so they are both of the form y = mx + b> trick q> http://stackoverflow.com/questions/13366755/what-does-the-r-formula-y1-mean
Front In R, how do you reverse a string x? 
Back via rev(x) 

After the file is downloaded, double-click on it to open it in the desktop program.

At this time, it is not possible to add shared decks directly to your AnkiWeb account - they need to be added from the desktop then synchronized to AnkiWeb.


on 1509840000
on 1440547200