get.palmTax2: get.palmTax2

View source: R/get.palmTax2.R

get.palmTax2R Documentation

get.palmTax2

Description

Retrieve the taxonomic identifiers for a set of 'palm_id' for a given rank.

Usage

get.palmTax2(palm_ids, con, rank = "family", ordinal = FALSE)

Arguments

palm_ids

character, set of 'palm_id' to lookup in palmdb

con

pq-connection, use SerratusConnect()

rank

character, taxonomic rank to retrieve. One of "species", "genus", "family" (Default), "phylum"

ordinal

boolean, return an ordered vector based on input 'palm_ids'

Value

character, unique 'tax_id' vector (i.e. "Coronaviridae")

Examples

con <- SerratusConnect()

# Return species-identifiers for a set of palmprints (uxxx)
get.palmTax(c("u2", "u1337"), con, rank = "species")


ababaian/palmid documentation built on July 1, 2023, 1:09 a.m.