Error in pairs() function

I have to use the pairs() function to produce a scatterplot matrix of the first ten columns or variables of the data. The exercise relates to the College data set.
I try to produce this function, but I receive an error of this type: "non-numeric argument to 'pairs' "
What could I do?

Hereby the syntax
pairs(college[,1:10])
Error in pairs.default(college[, 1:10]) :
argomento non numerico a 'pairs'

Hello Matt,

One of your columns is likely not a number. If you can post the code directly I can have a look at where the problem lies. If you can create a quick reprex I'll be able to see (FAQ: How to do a minimal reproducible example ( reprex ) for beginners)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.