I'm working with a data set with a size of 400. I use
function with these specific 4-digits to generate a sequence of random numbers. Then I record the observations that I have to use as
since I have to choose a sample of size 20. Then I write "observations" to see the number of the observations I have to choose.
 267 270 374 107 77 218 132 35 130
 105 348 88 50 78 173 284 337 357
 24 179
So now I know that I have to choose the observations 267th, 270th, 374th, 107th, etc., of my variable.
My question is, is there a way in Rstudio Cloud to choose those 20 specific observations to create a vector of them without having to look in my entire 400 data to identify the data number to record it manually in a vector? Like an automatic way?