Non-numeric argument to binary operator

Hi,
I'm getting this error for a simple code
"Error in x[floor(d)] + x[ceiling(d)] :
non-numeric argument to binary operator"

the code:
tww_xls <- read_xls("TWW_R.xls")
boxplot(tww_xls$pc, tww_xls$conc)

tww_xls$pc is a compound name (character)
and tww_xls$conc is a concentration (numeric)

Thanks

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

a boxplot is not going to know what to do with a character vector of names.

Yes,
It seems like I need to order my table as data frame

Thanks

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