R 中级
Filip Schouwenaars
DataCamp Instructor
mean(), list(), sample() 来自哪里?base、ggvisbase 包:自动安装ggvis 包:尚未安装
install.packages("ggvis")
CRAN:Comprehensive R Archive Network(综合 R 归档网络)
search()
".GlobalEnv" ... "Autoloads" "package:base"
ggvis(mtcars, ~wt, ~hp)
Error: could not find function "ggvis"
library("ggvis")
search()
".GlobalEnv" "package:ggvis" ... "package:base"
ggvis(mtcars, ~wt, ~hp)

library("data.table")
Error in library("data.table") :
there is no package called 'data.table'
require("data.table")
Loading required package: data.table
Warning message: ...
result <- require("data.table")
Loading required package: data.table
Warning message: ...
result
FALSE
install.packages() library(), require() R 中级