Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from raster to terra #56

Closed
sjevelazco opened this issue May 5, 2021 · 0 comments
Closed

Migrate from raster to terra #56

sjevelazco opened this issue May 5, 2021 · 0 comments

Comments

@sjevelazco
Copy link
Owner

sjevelazco commented May 5, 2021

Terra provides the same function as raster but they are faster.
Interesting function
predict (compare speed between raster::predict and terra::predict)
crop
mask

Big problem!!!!!!!!
terra and raster treat factor layer distinctly

List of functions used with raster that can be converted to terra

importFrom(raster,as.data.frame)
importFrom(raster,bind)
importFrom(raster,brick)
importFrom(raster,buffer)
importFrom(raster,cellFromXY)
importFrom(raster,cellStats)
importFrom(raster,coordinates)
importFrom(raster,crs)
importFrom(raster,extend)
importFrom(raster,extent)
importFrom(raster,extract)
importFrom(raster,mask)
importFrom(raster,match)
importFrom(raster,ncell)
importFrom(raster,nlayers)
importFrom(raster,plot)
importFrom(raster,predict)
importFrom(raster,projection)
importFrom(raster,rasterToPolygons)
importFrom(raster,res)
importFrom(raster,stack)
importFrom(raster,values)
importFrom(raster,writeRaster)
importFrom(raster,xyFromCell)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant