taxonkit_list: Taxonkit list

View source: R/Rtaxonkit.R

taxonkit_listR Documentation

Taxonkit list

Description

This function uses Taxonkit to perform the "list" operation, which retrieves information about taxa based on their TaxIDs.

Usage

taxonkit_list(
  ids,
  indent = "  ",
  json = FALSE,
  show_name = FALSE,
  show_rank = FALSE,
  data_dir = NULL
)

Arguments

ids

A character vector of TaxIDs to retrieve information for.

indent

The indentation string to use for pretty-printing the output. Default is " ".

json

Logical value indicating whether to output the result in JSON format. Default is FALSE.

show_name

Logical value indicating whether to show the scientific names of taxa. Default is FALSE.

show_rank

Logical value indicating whether to show the ranks of taxa. Default is FALSE.

data_dir

directory containing nodes.dmp and names.dmp (default "/Users/asa/.taxonkit")

Value

The output of the Taxonkit list operation.

Examples

## Not run: 
taxonkit_list(ids = c(9605), indent = "-", show_name = TRUE, show_rank = TRUE)

## End(Not run)

pctax documentation built on May 29, 2024, 10:03 a.m.