Learn R Programming

icon (version 0.4.0)

get_data: Download and Load Complex Network Datasets

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

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

Run this code
# 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")
# }

Run the code above in your browser using DataLab