starquery: Query the database for stars with specific attributes

View source: R/starquery.R

starqueryR Documentation

Query the database for stars with specific attributes

Description

Sends a paginated query to the database and compiles the results back into a data.frame

Usage

starquery(queries, max_results = 1000)

Arguments

queries

A list of queries to send. Refer to http://hacktheuniverse.github.io/star-api/ and example below.

max_results

Maximum number of results to obtain (default 1000)

Value

A data.frame of query results

Examples

## Not run: 
## find the (naked eye) visible stars (max 1750)
queries <- list("min[appmag]" = -2.5, "max[appmag]" = 6.5)
sq <- starquery(queries, max_results = 1750)

## End(Not run)

ropensci/RStars documentation built on May 18, 2022, 9:46 a.m.