R中的包


总结R中使用过的包。

require() VS library()
source1
source2
There’s not much of one in everyday work.
However, according to the documentation for both functions (accessed by putting a ? before the function name and hitting enter), require is used inside functions, as it outputs a warning and continues if the package is not found, whereas library will throw an error.)

译:
在平常工作中没有太大区别;
然而,根据官方文档对两个函数的描述(通过在控制台输入?+函数名+回车 的方式查看文档),require用于函数内部,如果包没有找到,它将输出警告,然后继续执行,但是library则会抛出错误。

source3

source4

source5

S

sqldf

如果你对 SQL 语言非常熟悉,还可以使用 sqldf 包来进行数据框合并,这个包可以让用户
在 R 环境下使用标准 SQL 语言进行数据的预处理
文档