SyntaxFix
Write A Post
Hire A Developer
Questions
I pre-allocate a vector with
> (a <- rep(NA, 10)) [1] NA NA NA NA NA NA NA NA NA NA
You can then use [] to insert values into it.