Skip to content

Commit

Permalink
string as factors for old R version
Browse files Browse the repository at this point in the history
  • Loading branch information
bczernecki committed Sep 19, 2023
1 parent 3b2ddcb commit b0cefd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/meteo_imgw_telemetry_stations.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ meteo_imgw_telemetry_stations = function() {

telemetry_stations = read.csv("https://danepubliczne.imgw.pl/datastore/getfiledown/Arch/Telemetria/Meteo/kody_stacji.csv",
fileEncoding = "CP1250",
sep = ";")
sep = ";",
stringsAsFactors = FALSE)
colnames(telemetry_stations) = c("no", "id", "name", "river", "lat", "lon", "alt")
telemetry_stations$lon = coordinates_to_decimal(telemetry_stations$lon)
telemetry_stations$lat = coordinates_to_decimal(telemetry_stations$lat)
Expand Down

0 comments on commit b0cefd9

Please sign in to comment.