Total newb here (thanks in advance!)
In my shp file named "shape", there is a column named "RD_TYPE" and it shows me the types of roads from 1 to 5.
I want to make a simple table that counts how many items there are for each type of road, from the column named "RD_TYPE" :
count_rd_type <- shape %>%
group_by(RD_TYPE) %>%
count()
So when I do this my table is created, but then I see an additional column named "geometry" with coordinates which does not exist in my original dataset "shape". Can someone explain to me how this works?
Thanks a lot :)
sf
objects, that column is the merge of the roads for eachRD_TYPE
. See the answer of @jindra-lacko – dieghernan