Learn R Programming

cptec (version 0.1.1)

prevEstendida: Retrieve 14 days weather forecast data from CPTEC/INPE

Description

This function allows the user to retrieve data from CPTEC/INPE weather forecast API for the next 14 days. The data frame returned contain maximum and minimum temperature and weather condition (tempo).

Usage

prevEstendida(id)

Arguments

id

The city's ID

Value

The function returns a data frame printed by city id

See Also

prev7dias

Examples

Run this code
# NOT RUN {
## Requesting weather forecast from the city of Campo Grande/MS
prevEstendida(225)

## Requesting weather forecast from the city of Rio de Janeiro/RJ
prevEstendida(241)

# }

Run the code above in your browser using DataLab