| get_sample_info | R Documentation | 
Retrieve sample IDs and descriptions for IPUMS microdata collections.
Currently supported microdata collections are:
 IPUMS USA ("usa")
 IPUMS CPS ("cps")
 IPUMS International ("ipumsi")
 IPUMS Time Use ("atus", "ahtus", "mtus")
 IPUMS Health Surveys ("nhis", "meps")
Learn more about the IPUMS API in vignette("ipums-api").
get_sample_info(
  collection = NULL,
  delay = 0,
  api_key = Sys.getenv("IPUMS_API_KEY")
)
| collection | Character string indicating the IPUMS microdata collection for which to retrieve sample information. | 
| delay | Number of seconds to delay between successive API requests, if multiple requests are needed to retrieve all records. A delay is highly unlikely to be necessary and is intended only as a fallback in the event that you cannot retrieve all metadata records without exceeding the API rate limit. | 
| api_key | API key associated with your user account. Defaults to the
value of the  | 
A tibble containing sample IDs and
descriptions for the indicated collection.
define_extract_micro() to create an IPUMS microdata
extract definition.
## Not run: 
get_sample_info("usa")
get_sample_info("cps")
get_sample_info("ipumsi")
get_sample_info("atus")
get_sample_info("meps")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.