I need a numeric vector with 100 4.5s inside it.
Is there a way to create this vector without typing out c(4.5, 4.5, .....)
100 times? Thank you.
rep(4.5, 100)
The function rep does the trick
rep
but typed repeat
in R which caused an infinite loop.