I've been working with vectors like
x_1 = runif(1000, min = 0, max = 1)
x_2 = runif(1000, min = 0, max = 1)
x_3 = runif(1000, min = 0, max = 1)
.
.
x_200 = runif(1000, min = 0, max = 1)
So I wanted to make a for loop to make the sum of each vector
for (i in 1:200){
sumxi <- sum(paste("x_", i)
}
But it throws me the error "Error in sum(paste0("x_",i)) : invalid 'type' (character) of argument" So im asking for any help with a website or something like that to know how to work with vectors that have the same name that only change the index