Learn R Programming

avidaR (version 1.2.1)

get_doi_from_experiment_id: Get doi from experiment

Description

Get the DOI of the scientific publication that documents the experiment carried out.

Usage

get_doi_from_experiment_id(avida_experiment_id, triplestore)

Value

Data frame. Columns: "doi" "avida_experiment_id"

Arguments

avida_experiment_id

Integer or a list of integer values.

triplestore

Object of class triplestore_access which manages database access.

Examples

Run this code

# Create triplestore object
avidaDB <- triplestore_access$new()

# Set access options
avidaDB$set_access_options(
  url = "https://graphdb.fortunalab.org",
  user = "public_avida",
  password = "public_avida",
  repository = "avidaDB_test"
)

# Single paper
get_doi_from_experiment_id(
  avida_experiment_id = 1,
  triplestore = avidaDB
)

# More than one experiment
get_doi_from_experiment_id(
  avida_experiment_id = c(1, 2, 4),
  triplestore = avidaDB
)

Run the code above in your browser using DataLab