| output_CPT | R Documentation | 
output_CPT returns a data frame to a format suitable for
use in the CPT software.
output_CPT(
  data,
  lat_lon_data,
  station_latlondata,
  latitude,
  longitude,
  station,
  year,
  element,
  long_data = TRUE,
  na_code = -999
)
data | 
 
  | 
lat_lon_data | 
 
  | 
station_latlondata | 
 
  | 
latitude | 
 
  | 
longitude | 
 
  | 
station | 
 
  | 
year | 
 
  | 
element | 
 
  | 
long_data | 
 
  | 
na_code | 
 
  | 
A data.frame formatted for use in CPT.
# Create summary data
yearly_niger <- daily_niger %>% dplyr::group_by(station_name, year) %>%
    dplyr::summarise(mean_rain = mean(rain))
output_CPT(data = yearly_niger, lat_lon_data = stations_niger,
           station_latlondata = "station_name", latitude = "lat", longitude = "long",
           station = "station_name", year = "year", element = "mean_rain")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.