Quotes help make search much faster. Example: "Practice Makes Perfect"

Tuesday, October 22, 2013

In R, how do you access the nth element in a vector someVector?


Answer:
someVector[n]

//note: unlike most programming languages where array indices are zero-based, in R, the first element's index is 1

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts