8

I want to use computeEstimate() function. But since the specific package is not installed in my R, I am getting error:

could not find function "computeEstimate"

Can you please let me know which package I should install to get this function? Also - how do I find a package for a specific function in R?

TZHX
  • 5,291
  • 15
  • 47
  • 56
Aloke Maity
  • 89
  • 1
  • 1
  • 3
  • you might want to check that `computeEstimate` isn't a function someone wrote outside of a package. – rbatt Sep 04 '15 at 11:53
  • [here](http://stackoverflow.com/questions/7027288/error-could-not-find-function-in-r) you can find a lot of ways to find a function – Andriy T. Sep 04 '15 at 12:22

1 Answers1

19

Install the package sos first, then:

require("sos")
findFn("computeEstimate")

This function searches the help pages of packages covered by the RSiteSearch archives (which includes all packages on CRAN).

Although for your example, it did not find a package.

But for example

findFn('multiply',maxPages = 1)

works fine. Are you sure the function exists somewhere?

Wannes Rosiers
  • 1,680
  • 1
  • 12
  • 18
  • 1
    Another way could be to search for the function on [rdocumentation.org](http://rdocumentation.org). – juba Sep 04 '15 at 12:01
  • Thanks. But when I try findFn('max',maxPages=1) getting warning messages as 'Too many documents hit. Ignored'. Can you please tell me how to get rid off. – Aloke Maity Sep 23 '15 at 10:00
  • From the documentation: # Finds too many matches to process; # reports Inf matches but returns none. # When this happens, use a more restrictive search – Wannes Rosiers Sep 23 '15 at 11:47