Function Errors
Function not found
Matches: could not find function "([^"]+)"
WHAT THIS ERROR MEANS
R doesn't recognize the function you're trying to call. The package containing it may not be loaded, or the function name is misspelled.
HOW TO FIX IT
1. Check the function name for typos.
2. Load the required package with library().
3. Use ?function_name or help(function_name) to verify it exists.
CODE EXAMPLES
BAD — THIS CAUSES THE ERROR
# ggplot2 not loaded ggplot(data, aes(x, y)) + geom_point()
GOOD — CORRECT APPROACH
library(ggplot2) ggplot(data, aes(x, y)) + geom_point()
Still stuck?
Paste your code in RChat and the AI will fix this error in context.
RELATED FUNCTION ERRORS
Unused argument You passed an argument to a function that doesn't accept it. This often happens ...
Missing required argument A function requires a specific argument that you didn't provide, and there's no ...
Argument matched multiple times You provided the same argument twice — once by name and once by position, or use...
Duplicate arguments You passed the same named argument more than once to a function....