all
I'm new to R. I try many ways and still cannot solve it. Can anyone help to check??
I am trying to produce 3 times 100 random values that follow a chisquare distribution. Console says ''number of items to replace is not a multiple of replacement length''. Any hint to fix it??
for(i in 1:3) {
x1[i] <- rchisq(100, df=2)
n1[i] <- length(x1[i])
}
for(i in 1:3){ x1 <- rchisq(100, df=2) n1 <- length(x1) print(x1[n1]) }- jared_mamrotx1[[i]] <- rchisq(100, df=2)- Edward