Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings when getting data #257

Open
Robinlovelace opened this issue Feb 10, 2025 · 0 comments
Open

Warnings when getting data #257

Robinlovelace opened this issue Feb 10, 2025 · 0 comments

Comments

@Robinlovelace
Copy link
Member

As shown below for example.

v = stats19::get_stats19(year=2023, type="veh")
#> Files identified: dft-road-casualty-statistics-vehicle-2023.csv
#>    https://data.dft.gov.uk/road-accidents-safety-data/dft-road-casualty-statistics-vehicle-2023.csv
#> Data already exists in data_dir, not downloading
#> Warning: The following named parsers don't match the column names:
#> accident_severity, carriageway_hazards, collision_index, collision_reference,
#> collision_year, date, day_of_week, did_police_officer_attend_scene_of_accident,
#> did_police_officer_attend_scene_of_collision, enhanced_collision_severity,
#> first_road_class, first_road_number, junction_control, junction_detail,
#> latitude, legacy_collision_severity, light_conditions,
#> local_authority_district, local_authority_highway,
#> local_authority_ons_district, location_easting_osgr, location_northing_osgr,
#> longitude, lsoa_of_accident_location, lsoa_of_collision_location,
#> number_of_casualties, number_of_vehicles, pedestrian_crossing_human_control,
#> pedestrian_crossing_physical_facilities, police_force, road_surface_conditions,
#> road_type, second_road_class, second_road_number, special_conditions_at_site,
#> speed_limit, time, trunk_road_flag, urban_or_rural_area, weather_conditions,
#> age_band_of_casualty, age_of_casualty, bus_or_coach_passenger, car_passenger,
#> casualty_class, casualty_distance_banding, casualty_home_area_type,
#> casualty_imd_decile, casualty_reference, casualty_severity, casualty_type,
#> enhanced_casualty_severity, lsoa_of_casualty, pedestrian_location,
#> pedestrian_movement, pedestrian_road_maintenance_worker, sex_of_casualty,
#> adjusted_serious, adjusted_slight, injury_based, accident_ref_no,
#> effective_date_of_change, previously_published_value, replacement_value,
#> variable
#> Warning in asMethod(object): NAs introduced by coercion
#> Warning in asMethod(object): NAs introduced by coercion

Created on 2025-02-10 with reprex v2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant