% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_data.R
\name{get_data}
\alias{get_data}
\title{Retrieve Data for One or More Species from ILORA Database}
\usage{
get_data(species_name, variables = NULL, table_name = NULL)
}
\arguments{
\item{species_name}{Character vector of species names to fetch data for.
Must match \code{acc_species_name} in the database.}

\item{variables}{Character vector, optional. Specific variables to retrieve.
Should match variable names returned by \code{get_variable_names()}.}

\item{table_name}{Character, optional. Name of the table to retrieve data from.
Either \code{variables} or \code{table_name} must be provided, not both.}
}
\value{
A data frame containing the requested species data.
Returns an error if species or variables/table are not found.
}
\description{
Fetches either specific variables across tables or an entire table
for one or more species from the ILORA database.
}
\examples{
\donttest{
# Retrieve specific variables
get_data("Quercus robur L.", variables = c("Longitude", "Latitude"))

# Retrieve all columns from a specific table
get_data("Quercus robur L.", table_name = "habitat")
}

}
