Error: could not find function - R Programming

+3 votes

I keep getting this error

Error: could not find function

I just don't understand why?

Oct 29, 2018 in Data Analytics by Ali
• 11,270 points
20,992 views
Hii
My query I practice rstudio some errors occur : could not find function... please tell me how to solve this problem!!

Hey, @Anshu,

Did you write the name of your function correctly? Names are case sensitive. And do try the other solutions suggested  below.

I'm having the same thing now with the function effect_plot() in ggplot2, and even with these answers can't work out the problem: I've copy and pasted the name of the function direct from the CRAN page so it's definitely not a misspelling, and I've checked the package is definitely loaded and up to date.

Any suggestions?

Hi,

You may miss one package to install named jtools. Install this package in your environment and then try to use effect_plot() function.

install.packages('jtools')

2 answers to this question.

0 votes

This error usually occurs when a package has not been loaded into R via library, so R does not know where to find the specified function. It’s a good habit to use the library functions on all of the packages you will be using in the top R chunk in your R Markdown file, which is usually given the chunk name setup.

answered Oct 29, 2018 by Maverick
• 10,820 points
0 votes
Yes, Just like @Maverik said, It happens when you have used a function that does not exist or in other words, no such function is available in R library.

One trick you can do is while writing the function, write the starting few characters and press ctrl+Enter buttons to see available functions as you type the function for better use and reduce errors.
answered Aug 22, 2019 by anonymous
• 32,490 points

Related Questions In Data Analytics

+1 vote
1 answer

Error saying "could not find function dashboardPage" in shiny R

Include this line in the code: Library(shinydashboard) READ MORE

answered Nov 28, 2018 in Data Analytics by Maverick
• 10,820 points
768 views
0 votes
1 answer

Error saying "could not find function "read_html"" when trying to use read_html function

Hey @Ali, Execute the following two commands: install.packages(&l ...READ MORE

answered Nov 20, 2018 in Data Analytics by Maverick
• 10,820 points
1,050 views
0 votes
1 answer

By using dpylr package sum of multiple columns

Basically here we are making an equation ...READ MORE

answered Apr 5, 2018 in Data Analytics by DeepCoder786
• 1,720 points
996 views
0 votes
1 answer

How to convert a text mining termDocumentMatrix into excel or csv in R?

By assuming that all the values are ...READ MORE

answered Apr 5, 2018 in Data Analytics by DeepCoder786
• 1,720 points
511 views
0 votes
1 answer

In a dpylr pipline how to use sample and seq?

For avoiding rowwise(), I prefer to use ...READ MORE

answered Apr 6, 2018 in Data Analytics by DeepCoder786
• 1,720 points

edited Jun 9 by Gitika 203 views
0 votes
1 answer

How to create a list of Data frames?

Basically all we have to do is ...READ MORE

answered Apr 9, 2018 in Data Analytics by DeepCoder786
• 1,720 points
321 views
+1 vote
1 answer
+1 vote
1 answer

Error saying "could not find function "shinyUI"" in shiny R

Its a small spelling mistake that you've ...READ MORE

answered Nov 28, 2018 in Data Analytics by Maverick
• 10,820 points
1,035 views