Intermediate R
Filip Schouwenaars
DataCamp Instructor
mean()
, list()
and sample()
come from?base
, ggvis
base
package: automatically installedggvis
package: not installed yet
install.packages("ggvis")
CRAN: Comprehensive R Archive Network
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()
Intermediate R