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 中級