Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

vector with N equal entries R

//USAGE 
vector <- rep(value, N)

//EXAMPLE: Vector of 3 entries with value 0
exampleList <- rep(0, 3)
exampleList[2] <- exampleList[2] + 13
exampleList
/*OUT: 
exampleList
[1] 0 13 0
*/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vector #N #equal #entries #R
ADD COMMENT
Topic
Name
6+8 =