search for: kids_province_data

Displaying 1 result from an estimated 1 matches for "kids_province_data".

2018 Mar 19
1
Labelling a fortified GADM map plotted with ggplot and geom_map
...d, from http://www.kevjohnson.org/making-maps-in-r/ # create subsets of the kcj data if needed, for example by year kids_data_2017 <- subset(kids_data, year == 2017) # data for the year 2017 kids_data_2018 <- subset(kids_data, year == 2018) # data for the year 2018 # extract the needed data kids_province_data <- data.table::data.table(kids_data_2017$Province_Territory__c, kids_data_2017$Number_of_kids__c) names(kids_province_data)[1] <- "Province" names(kids_province_data)[2] <- "Number" # sum the data by province kids_province_sums <- aggregate(.~Province, data = kids_p...