Loops in R Repeat

preview_player
Показать описание
Loops in R. This video illustrates Repeat loop in R
Рекомендации по теме
Комментарии
Автор

I have variables that need to be repeated differently increments of 25. How do I use loop to do this. I am quite new to loops. For instance (300, 375, 600, 800) and they should increase at 25. However, between 300-375 5 times, 375-800 16 times and 600-800 once since there is nothing like 0.5. I expect something like 300 300 300 300 300 325 325 325 325 325 350 350 350 350 350 375 375 375 375 375 400 400 16 times . Can you please share your wisdom on the best way to do this. Thanks

annewekesa