Hi,
The tibble was missing ~ in front of the col names so I was able to load it now.
hedra = tibble::tribble(
~ogc_fid, ~fid, ~name, ~completions_2019, ~completions_2018, ~completions_2017, ~completions_2016, ~completions_2015, ~completions_Total,
1197, 128, "Darrenfelen", 7, 46, 25, 27, 1, 106,
696, 24, "Glyn Tarell", 0, 1, 1, 0, 0, 2,
1151, 68, "Castle", 0, 10, 1, 0, 0, 11,
1154, 137, "Cantref", 0, 10, 1, 0, 0, 11,
657, 127, "St. David Within", 2, 14, 3, 6, 1, 26,
790, 43, "Talgarth", 4, 22, 1, 0, 1, 28,
674, 23, "Crickhowell", 0, 49, 3, 2, 25, 79,
700, 26, "Hay", 37, 43, 1, 3, 0, 84,
)
hedra <- spTransform(hedra, CRS("+init=epsg:4326"))
Unfortunately, the data provided is not working with the first function as generates this error
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘spTransform’ for signature ‘"tbl_df", "CRS"’
Can you please create another dataset with valid data for that function. I think it needs at least coordinates or something.
PJ