Skip to contents

Create a cfStation object containing station information for one or more CliFlo stations.





comma separated agent numbers


cfStation object


A cfStation object is created by the constructor function cf_station. The unique agent numbers of the stations are all that is required to create a cfStation object using the cf_station function. The rest of the station information including the name, network and agent ID, start and end dates, coordinates, as well as other data is scraped from CliFlo.

This function is used for when the agent numbers are already known. For help creating cfStation objects when the agent numbers are unknown see the cf_find_station function.

See also

cf_find_station for creating cfStation objects when the agent numbers are not known and vignette("cfStation") for working with clifro stations including spatial plotting in R. For saving cfStation objects as KML files refer to the vignette or cf_save_kml.


if (FALSE) {
# Create a cfStation object for the Leigh 1 and 2 Ews stations = cf_station(1339, 1340)

# Note, this can also be achieved using the '+' operator = cf_station(1339) + cf_station(1340)

# Add another column showing how long the stations have been open for
leigh.df = as(, "data.frame")
leigh.df$ndays = with(leigh.df, round(end - start))

# Save the stations to the current working directory as a KML to visualise
# the station locations