researchdatapod.com
How to Solve R Error in FUN: invalid ‘type’ (character) of argument
This error occurs if you try to perform a mathematic operation on a character vector. You can solve this error by converting the characters to numeric values using the as.numeric() function. For ex…