I have a dataframe in r and I want to provide the boxplot of each integer variable. I have 34 variables so it's useless to do them manually, thus I opted for a for loop but it only returns the first boxplot of the first variable. Here's the code I used:
for (i in 1:34) {
if (class(data[,i])== "integer") {
return(boxplot(data[,i]))
}
}