getPurpleairLst: Get a list of PurpleAir sensors

Description Usage Arguments Value Examples

View source: R/getPurpleairLst.R

Description

Get a list of the latest PurpleAir sensors from PurpleAir JSON (https://www.purpleair.com/json) and save as a CSV file.

Usage

1
getPurpleairLst(output.path = NULL)

Arguments

output.path

the path of the output CSV file. By default, this variable equals NULL and the list is saved as a data frame.

Value

The latest PurpleAir sensor list as the data frame format

Examples

1
2
3
4
# Save as a CSV file
getPurpleairLst('/absolute/path/to/the/csv/file')
# Save as a data frame variable
sensor.lst <- getPurpleairLst()

jianzhaobi/bjzresc documentation built on Feb. 14, 2021, 7:45 a.m.