get_data: Download and Load Complex Network Datasets

Description Usage Arguments Examples

View source: R/acquire.R

Description

Downloads the binary complex network dataset (rda format), then loads the dataset into the R environment, and deletes the downloaded file from the user's file system.

Usage

1
get_data(dataset_name, destdir = ".", envir = parent.frame())

Arguments

dataset_name

dataset variable name (corresponds to var_name in ICON_data)

destdir

location to temporarily download binary file

envir

environment to which data should be loaded

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# load single dataset
get_data("chess")

# load multiple datasets
get_data(c("karate_club", "word_adj"))

# fail to load dataset not in the ICON R package
get_data("not_a_dataset")

## End(Not run)

ICON documentation built on Oct. 24, 2020, 1:06 a.m.