spTransform function not working
Posted: Mon Jul 26, 2021 10:20 am America/New_York
I'm trying to complete the Geospatial data in R tutorial webinar that was posted to Youtube on 18 Mar 2019 and I'm at the step where you create the data transStates. When I copy the code from the Markdown that reads:
transStates <- spTransform(threeStates, CRS(fire@crs@projargs))
I return the following error message:
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘spTransform’ for signature ‘"sf", "CRS"’
Can anyone identify what is causing this problem?
transStates <- spTransform(threeStates, CRS(fire@crs@projargs))
I return the following error message:
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘spTransform’ for signature ‘"sf", "CRS"’
Can anyone identify what is causing this problem?