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,360 points
32,827 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,840 points
+1 vote
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 23, 2019 by anonymous
• 33,030 points

Related Questions In Data Analytics

+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,840 points
2,304 views
+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 29, 2018 in Data Analytics by Maverick
• 10,840 points
3,099 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
1,982 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
1,589 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, 2020 by Gitika 880 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
983 views
0 votes
2 answers

R Programming error in if condition

Hi. Instead of breaking the line add it ...READ MORE

answered Aug 26, 2019 in Data Analytics by anonymous
• 33,030 points
722 views
0 votes
2 answers

R programming: r bind error

You can use arrange function at last ...READ MORE

answered Sep 3, 2019 in Data Analytics by anonymous
• 33,030 points
649 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP