i am trying to make a loop for each columns in the database.
i am getting this Error: Must use a vector in [
, not an object of class matrix.
my data looks like this:
and this is my code:
for (q in 1:ncol(flat_file_numeric[])) {
qqnorm(flat_file_numeric[,q])
qqline(flat_file_numeric[,q], col= "steelblue",lwd=2)}
i will appreciate any help. thanks.