spTransform function not working

Please enter here to ask a question about any NASA Science related topics!
Post Reply
kbhandari1
Posts: 1
Joined: Mon Jul 26, 2021 10:14 am America/New_York

spTransform function not working

by kbhandari1 » 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?

Tags:

CDDIS_support_Lori
User Services
User Services
Posts: 51
Joined: Mon Sep 30, 2019 11:17 am America/New_York

Re: spTransform function not working

by CDDIS_support_Lori » Tue Jul 27, 2021 2:04 pm America/New_York

The Oak Ridge National Laboratory was involved with producing that webinar and they may be able to put you in contact with the people in the webinar. You can contact them at support-ornl@earthdata.nasa.gov

Post Reply