4 0
Sign in to rate

Basic R functions and design patterns

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


Basic R functions, immediately useful but liable to be too basic for people who have already used the language. For more information and decks, please see: http://andrewtmckenzie.com/sr/

Sample (from 40 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 does !u mean? 
Back evaluates the logical negation of u
Front In R, what does the command a:b output?
Back the vector [a, a+1, ..., b] > abbreviation for seq(a,b,1), or just seq(a,b) since n defaults to 1, a la python
Front In R, how do you combine the vectors n and s? > n = c(2, 3, 5) > s = c("aa", "bb", "cc", "dd", "ee") 
Back via c(n, s) > [1] "2"  "3"  "5"  "aa" "bb" "cc" "dd" "ee"> think: c stands for "concatenate" 

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 1577033833
However you should add "R and RStudio" to the title, as if a user searches "R" on the 'Anki Shared Decks' search bar, nothing appears as the bar does not accept single character search queries. The only way this deck can be found is by direct link or by google search, same with your Intermediate R deck.
on 1509840000
on 1445990400
on 1440547200