i using r , tried some.function got error message :
error: not find function `some.function` this question comes regularly. when error: not find function in r, how can solve it?
thank in advance help.
this meant faq question, please complete possible. answer community answer, feel free edit if think missing.
this question approved on meta: https://meta.stackexchange.com/questions/101892/community-wiki-with-common-error-messages-allowed
there few things should check :
- did write name of function correctly? names case sensitive.
- did install package contains function?
install.packages("thepackage")(this needs done once) - did attach package workspace ?
require(thepackage)orlibrary(thepackage)(this should done every time start new r session)
if you're not sure in package function situated, can few things.
- if you're sure installed , attached/loaded right package, type
help.search("some.function")or??some.functioninformation box can tell in package contained. find,getanywherecan used locate functions.- if have no clue package, can use
findfninsospackage explained in this answer. rsitesearch("some.function")or searching rseek alternative ways find function.
Comments
Post a Comment