search for: v_len

Displaying 1 result from an estimated 1 matches for "v_len".

Did you mean: bv_len
2010 Oct 27
2
Generate random percentages and placing vectors
Hello everyone, I have two questions: 1.) I would like to generate random percentages that add up to 100. For example, if I need 5 percentages, I would obtain something like: 20, 30, 40, 5, 5. Is there some way to do this in R? 2.) I would like to insert vectors of specified length into a larger vector of specified length randomly, and fill the gaps with zeroes. For example, if I have 3 vectors