% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_person.R
\name{get_person}
\alias{get_person}
\title{Select Persons by Identifier}
\usage{
get_person(x, persons)
}
\arguments{
\item{x}{'character' vector.
Identifier(s) of the person(s) to select. Must be non-missing and unique, and
each must match a name in \code{persons}.}

\item{persons}{'person' named list.
Information about an arbitrary number of persons, as produced by
\code{\link[utils:person]{utils::person()}}. Each element is named with the identifier that uniquely
identifies that person.}
}
\value{
A 'person' list containing the requested subset of \code{persons}, in the
order given by \code{x}.
}
\description{
Select one or more persons from a named list by their unique
identifiers, preserving the requested order. All identifiers must be present;
any that are missing raise an error.
}
\examples{
get_person("jfisher", persons = inlpubs::authors$person)
}
\author{
J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center
}
\keyword{internal}
