I have two varialbes that are exactly 6 digits each but the program keeo saying that their lenghts differ,
I have been learning R for the past 20 min and I have just stumbled upon this.
I entered this:
x = 1:6
y = (2,4,5,7,10,12)
plot(x, y)
And my result is this
Error in xy.coords(x, y, xlabel, ylabel, log) :
‘x’ and ‘y’ lengths differ
Both variables are LITERALLY 6 digits each. How can they differ in any way?
This is the only thing on my program. No other variables have been callex x or y prior to writing this.
Virginia Noel Fernandez Cano is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.