Answers for "vector with N equal entries R"

0

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
*/
Posted by: Guest on April-09-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language