调用R包中的函数
A package installed on your computer is either a standard package or a package downloaded by you. When you try using functions in the package, however, R cannot find them. 公卫百科
Use either the library function or the require function to load the package into R:
> library(packagename)
When you use the library function or the require function, R loads the package into memory and its contents immediately become available to you: 公卫人
> lda(f ~ x + y)
Error: could not find function "lda"
> library(MASS) # Load the MASS library into memory
公卫家园
> lda(f ~ x + y) # Now R can find the function
Call:
公卫百科
lda(f ~ x + y)
附件列表
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
如果您认为本词条还有待完善,请 编辑
上一篇 运用回归模型进行预测 下一篇 伦敦大学伦敦卫生与热带病医学院