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

Tuesday, October 22, 2013

In R, how can you re-shape a vector?


Answer:
dim(someVector) <- c(numRows, numCols)

//note, the length of someVector must be equal to the product of numRows and numCols

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts