generate a vector with set number of 1s : <p>I want to generate a large vector of just 0's and 1's of arbitrary length. But I want at max 10 1's in the vector. 
(For those familiar, a 10-sparse vector of some arbitrary length)
How can I do this in R/Rstudio</p>
