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

Tuesday, October 22, 2013

In R, how could you make a vector filled with values from 1 to 50?


Answer:

Method 1

c(1:50)

//note, this uses the c (combine) function and start:end notation

Method 2

seq(1,50)

//note, this uses the seq function, and instead of a colon (:), a comma is placed between the start and end numbers

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts