3 0
Sign in to rate

Basic R functions and design patterns

0.01MB. 0 audio & 0 images. Updated 2015-08-25.

Description

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
Tags
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
Tags
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" 
Tags

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.