0

I have three parameters with 899 points each, but one of them shows this message when I try to apply any command.

Even the simplest command appears like this, for example:

>basicStats(Values$Values.of.Th)
Error in (1 - h) * qs[i] : non-numeric argument to binary operator

The three parameters are similar, I can't understand why it works for the others and not for him. I started studying R recently, can anyone help me?

Phil
  • 7,287
  • 3
  • 36
  • 66
  • 1
    Are you _sure_ it is a numeric variable? Perhaps it is a character vector or factor variable that looks like a numeric variable. What is `class(Values$Values.of.Th)`? – Allan Cameron Feb 10 '23 at 12:04
  • It's easier to help you if you include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input and desired output that can be used to test and verify possible solutions. – MrFlick Feb 10 '23 at 14:37

0 Answers0