rasterizewith points and a custom function did not work for large rasters. #1127 by Skip Woolley
crop<SpatRaster, SpatVector>with “mask=TRUE” did not work well if the raster had a scale/offset#1128 by Monika Anna Tomaszewska
zonal<SpatRaster>with a custom function always removed NAs. #1133 by Matthias Weigand
wrap<SpatRaster>lost changed layer names if the source was from disk; and information on some time-step in some cases. #1144 by Pascal Führlich
global(fun="isNA")was not correct when the SpatRaster had multiple layers [#1141] (https://github.com/rspatial/terra/issues/1141) by Robin Freeman
wrap<SpatRasterCollection>methods. #954 by James Camac
regress<SpatRaster,numeric>to get regression model coefficients for each cell, with a fixed “X”.
regress<SpatRaster,SpatRaster>to get regression model coefficients for each cell.
lapp<SpatRasterDataset>is now more flexible in that it can now also use functions that are vectorized by cell, not by chunk. See #1029
project<SpatVector>has new argument “partial=FALSE” that can be used to keep geometries that can only be partially included in the output crs.
globalwith fun=“notNA” was wrong #111 by Jeffrey Hanson
extract<SpatRaster,SpatVector>with “bind=TRUE” did not work
extract<SpatRaster,SpatVector>with point geometries and a “fun” returned values in the wrong order
plot<SpatRaster>argument “colNA” did not work when “alpha” was also set #1102 by Márcia Barbosa
crop<SpatRaster>with “extend=TRUE” did not extend the SpatRaster if the input had no cell values. #1114 by Jasper van Doninck
focalMatdid not work well when using terraOptions(todisk=T) #1116
halofunction for adding halo-ed text to plots is now exposed
add_legendto allow using a keyword such as “topleft” to position a custom legend. #1053 by Márcia Barbosa
same.crsfunction is now exported
split<SpatVector,SpatVector>to split polygons with lines
clamp<SpatRaster>now also accepts cSpatRasters to set the lower and upper boundaries.
freqhas new arguments “zones=NULL” and “wide=FALSE”, to allow tabulation of values by zone.
expanse<SpatRaster>has new arguments “zones=NULL” and “wide=FALSE”, to allow tabulation of values by zone.
unique<SpatRaster>has new argument “digits=NA”
rasterize<SpatRaster,SpatVector>now accepts fun=“table” to tabulate cells by cell value
rast<character>has new argument “snap” to snap the window in or out. #1094 by Derek Friend
plothas new argument “clip=TRUE” that can be set to FALSE to avoid clipping the axes to the mapped area #1080 by Márcia Barbosa
writeCDF<SpatRaster>had new argument “split” allowing to treat each layer as a subdataset #1077 by Andrea Manica
globalnow accepts multiple summarizing functions
sievewas not able to write to file #1061 by leo
rasterizedid not work with sf objects #1054 by Jakub Nowosad
querydid not work for hyphenated layer names #1058 by Robbie Price
focal3Dna.policy did not work #1057 by Flávio Mota
na.rm=TRUEfailed for a SpatRaster with more than 2 layers #1056 by Alex Ilich.
compareGeomdid not work for multiple SpatRasters #1063
viewshedcould not handle a filename argument. #1100 by kamistick
rasterize>#986 by Sam Weber
meta<SpatRaster>method to get metadata
panel<SpatRaster>for “panel” plots (multiple layers, single legend)
is.lonlat#1006 by Andrew Gene Brown
plotare now snug around the mapped area, instead of at the limits of the graphics figure region.
.size()==0). [#1013-1017] by Michael Chirico
rasterizewith lines and polygons can now use the “fun” argument (for min, max, mean, and sum) #1041 by Bart Huntley
pletwas not always correct. #983 by Simon Rolph
spatSample<SpatRaster>(regular=TRUE)failed with providing two numbers (row, col) as sample size. #991 by srfall
merge<SpatRaster>did not ignore NAs #1002 by jmmonnet.
writeCDFfailed when using argument force_v4 #1009 by R. Kyle Bocinsky
predictbetter handling of rasters with many NAs #988 by Lucas Johnson
layerCordid not handle NAs well if they were in different cells across layers [#1034](https://github.com/rspatial/terra/issues/1034} by François Rousseu.
zonal<SpatRaster,SpatRaster>to compute weighted means
shadeis now vectorized for arguments
directionto facilitate generating multiple hillshades that can be combined for a better result #948 by Jürgen Niedballa
sharedPathsnow uses spatial indices #960 by Jeff Hanson
predicthas better support for models such as ranger that do not return anything for missing values #968 by Alex Ilich
writeCDFnow supports writing yearly time steps #926 by Andrea Manica
as.contournow works for a single level #966 by Johannes Signer
roll<SpatRaster>method for rolling (moving) average and other rolling functions
noNA<SpatRaster>method to identify cells that are not NA (across layers)
spatSample<SpatRaster>for large sparse rasters. [#905] by PetiteTong.
focalRegcan now use the values in custom windows as weights. [#907] by Fabian Fischer.
focalRegnow has additional arugment “intercept=TRUE”. [#916] by Jordan Adamson
crs(x, warn=TRUE)<-now emits a warning about the difference between transforming and setting a crs when x already had a crs. [#897] by Márcia Barbosa.
writeRaster[#900] by Kyle David
crosstabnow shows the labels names for a categorical SpatRaster.  by Derek Corcoran Barrios
makeTilescan now take a SpatVector to define the tiles.  by Tristan Goodbody
focalRegnow work for custom windows [#907] by Fabian Fischer
plot<SpatVector>was not working properly. [#906] by Márcia Barbosa.
time<-with time-step “years” could not handle negative years. [#911] by Andrea Manica
unwrap(and by extension
readRDS) did not handle categorical rasters well [#912] by Christine Anderson.
interpIDWfailed with GDAL 3.6 [#910] by Roger Bivand
spatSamplewith strata bug fix “unable to find an inherited method for function ‘trim’” [#919] by Alfredo Ascanio
mosaicdid not handle NAs when using two layers [#913] by Joao Carreiras.
[<-for SpatRaster now have a third index
kfor subsetting or assigning values by layer
unwrapto restore a PackedSpatVector or PackedSpatRaster
rasterizeWinmethod for rasterization with a moving window (circle, ellipse, rectangle, buffer)
interpIDWmethod for inverse-distance-weighted interpolation of points with a moving window
interpNearmethod for nearest neighbor interpolation of points with a moving window
viewshedmethod for SpatRaster
updatemethod for SpatRaster to write new names or a new extent or crs to an existing raster file.
sievefilter for SpatRaster
sprc<character>method to create a SpatRasterCollection from a file with subdatasets
graticulefunction to create a SpatGraticule and related methods
elongatemethod for SpatVector lines
merge<SpatRaster>[#577] by Jean-Romain
wrap<SpatRaster>now uses file references if the data is deemed to large to all load into memory. [#801] by Jean-Romain
unserializenow return a SpatRaster or SpatVector (instead of a PackedSpat*)
clampcan now take low and high values for each layer
plotnow provides more control over what to draw on each axis via paramters
plotnow has argument
retroto use a sexagesimal notation of degrees
extendhas a new argument
combining SpatRasters with different CRSs. [#818] by Andrew Marx
plotRGBnow accounts for the value of zlim when stretching; allowing to use the same coloring scheme across SpatRasters [#810] by Agustin Lobo.
spinis now vectorized
Error in x$.self$finalize() : attempt to apply non-functionis now suppressed in most cases. [#218] by Charlie Joey Hadley. This problem should go away altogether when a new version of “Rcpp” is released (ETA Jan 2023) thanks to a fix by Kevin Ushey [#30]
na.rmand SpatRasters with multiple layers did not work. [#800] by Andrea Manica
include=TRUE[#808] by Joseph Lewis
rasterizedid not accept “NA” as value for updating [#809] by Márcia Barbosa
extractwith a perfectly vertical or horizontal line failed in some cases [#823] by Dimitri Falk
wrap<SpatVector>failed if there was a single point geometry [#815] by Patrick Schaefer
weights=TRUEdid not return values [#814] by Jean-Luc Dupouey.
x[["newname"]] <- rfor SpatRasters
rdid not work [#795] by Jim Shady
droplevelsfor SpatRaster. [#757] by Rodolfo Jaffe.
scoffto get and
scoff<-to set the scale (gain) and offset of a SpatRaster.
extract<SpatRaster>[#776] by Thomas Roh.
na.rm=NAto only remove rows that are NA for all layers. The default value changed from
NA. [#792] by Ed Carnell
distance<SpatRaster>has new arguments “target” and “exclude”. [#560] by Bernardo Brandão Niebuhr
lapp<SpatRasterDataset>[#793] by Colin Brust.
vect<character>now reports that a file is non-existent [#784] by John Baums
relate[#716] by Krzysztof Dyba
focal3Dnow checks if all the window’s dimensions are odd [#772] by Neander Marcel Heming
all.equalbug [#756] fixed by John Baums
extract<"SpatRaster","sf">ignored the ID argument. [#755] by Dainius Masiliūnas.
vrtis no longer constrained by the maximum number of files that can be opened [#780] by 8Ginette8
weighted.meancrashed with numeric weights and na.rm=TRUE [#777] by David Holstius
project<SpatRaster>did not consider an extent that was set by the user [#775] by Philippe Massicotte
focalCorfailed for large rasters [#607] by John Clark
expand=TRUEwas prone to run out of memory [#610] by Nathan Elliott
crop<SpatVector>did not work well when the second argument were points or lines [#782] by Márcia Barbosa
pairs=TRUEnow respects the
include=TRUEargument  by Joseph Lewis
extractwere simplified. [#736] by François Rousseu
focalwhere not correct if the input SpatRaster had multiple layers and a “custom” function. [#727] by Jean-Luc Dupouey.
plot<SpatRaster>did not honor argument
legend=FALSE. [#738] by Grzegorz Sapijaszko
expansefailed when processing in chunks [#741] by Gareth Davies
snap="out"could lead to a crash if the extent was beyond the SpatRaster. [#740] by Mauricio Zambrano-Bigiarini
substno longer uses values that it changed earlier on. [#639] by Paul Smith
as.points<SpatRaster>could return wrong factor labels. [#640] by Attilio Benini
mask<SpatRaster,SpatVector>crashed when the results were written to disk. [#646] by Monika Anna Tomaszewska
extract<SpatRaster,SpatVector(points)>(xy=TRUE)returned the locations of the points, not the xy-coordinates of the cells. [#650] by Ward Fonteyn
wrap<SpatRaster>did not return the correct labels for some categorical rasters. [#652] by Jakub Nowosad
substcan now substitute the values from multiple input layers with a single output value (layer)
subset<SpatVector>now behaves like
subset<data.frame>[#648] by Andrew Gene Brown
freqnow provides the labels of factors, even if
bylayer=FALSE. It now always returns a
data.frame(it used to return a
matrixin some cases. [#687] by Rodolfo Jaffé
aggregatenow return a warning instead of an error when using a (dis)aggregation factor of 1.[#684] by Justin Fain.
projectcrashed when erroneously projecting raster data from one celestial body to another [#688] by Mike Sumner
plot. [#673] by Jakub Nowosad.
extract(method="bilinear"). [#693] by swooping-magpie
unique<SpatRaster>to create a categorical raster with the unique combinations in the layers of the input raster. The default for argument
na.rmwas changed to
sort<SpatRaster>to sort cell values across layers.
covercan now combine categorical rasters
concatsto combine the levels of two SpatRaster into new categories [#663] by Alex Ilich
zonal<SpatVector,SpatVector>method to aggregate SpatVector attributes by polygons
extract. [#580] by André M. Bellvé
weighted.meandid not adjust the weights if there were
NAs in the values. [#574] by Lars Dalby
plotRGB[#550] by Agustin Lobo
cells=TRUEfailed for planar data [#544] by Benjamin Misiuk
compareGeom(x, y, stopOnError=FALSE)did not remove the error messages stored in
xleading to unexpected warnings later on. [#568] by David Hofmann.
layerCordoes not create temp files anymore. [#551] by Christine Anderson
project<SpatRaster>method. [#596] by Alex Ilich
centroidsto get a centroid-like point that is guaranteed to be on the geometry (“point on surface”). [#588] by Márcia Barbosa
vect<data.frame>that allows setting (keeping) the geometry as an attribute. [#586] by Márcia Barbosa
serializemethods for SpatRaster and SpatVector. [#549] by Andrei Mîrț
yFromColnow have a
<SpatRaster,missing>method. [#583] by Michael Sumner.
svc<sf>method to deal with GeometryCollection types. [#585] by Sarah Endicott
as.polygons<SpatRaster>have a new argument
na.all=FALSEthat affects the interpretation of
na.rm. [#548] by Jean-Luc Dupouey.
getGDALconfigto set GDAL configuration options. [#608] by Erik Bolch.
rappto allow the start to be after the end (for if layers represent days of the year)
SpatRasterto get the cell numbers for the extreme values in a SpatRaster.
emptyGeoms<SpatVector>to get the indices of empty (null) geometries
rasterizeGeomto rasterize the geometry count or the area of (small) polygons or the length of lines.
SpatRasterwhich is a shortcut for
<SpatVectorProxy>[#638] by Andrew Gene Brown
vectnow work with GPGK if the path has non-ascii characters [#518]
cores > 1and more than one output variable were garbled
zonaldropped category names when using an external (R) function [#527] by Jakub Nowosad
as.data.framenormalized the names [#538] by Kodi Arfer
vrt[#629] by Monika Tomaszewska.
app<SpatRasterDataset>ignored the filename. [#498] by jszhao
vect<data.frame>failed silently if xy coordinates were integers [#496] by Márcia Barbosa
aggregate<SpatRaster>was malformed when
nrow(x) %% fact != 0. [#492] by Jean-François Bourdon
NAs in SpatVector attributes where only recognized on Windows [#491] by Márcia Barbosa
plot<SpatVector>failed when using a character variable with many unique values. [#489] by Márcia Barbosa
rotatefailed on large files. Reported by Ujjawal Singh
crdsreplicated the coordinates [#504] by Murray Efford
as.data.frame<SpatRaster>returned integers if the file stored values as integers, even if there was a scale/offset that creates decimal numbers [#509] by Kodi Arfer
projectopened the input raster file in read/write mode intead of read mode. That did not work with files that cannot be updated.
patchesnow process all layers of the input SpatRaster. [#503] by Chris Haak
()<-methods. in-place updating available with
set.methods such as
set.values. [#493] by Jean Romain and [#511] by Bryan Fuentes
aggregate<SpatRaster>now accepts functions that return more than one value per aggregated cell
writeVectorhas new argument
insertto add a layer to an existing file (e.g. GPKG).
mask<SpatVector,SpatVector>method to select intersecting geometries
values<SpatRaster>has new option
na.rm=TRUE. [#490] by Henk Harmsen
SpatVectorProxyto provide access to large vector databases that cannot or should not be read into memory in its entirety.
vectto create a SpatVectorProxy object
query<SpatVectorProxy>to extract parts of a SpatVectorProxy
vector_layersthat returns, and can delete, vector format layers from a database/file such as GPKG
initfailed (or even crashed R) when using a single value on a largish raster. [#414]
SpatVectorlost the crs. [#415] by Jean-Luc Dupouey
bufferon a SpatRaster with no values caused a crash [#416] by Sebastian Brinkmann
writeVectornow assumes “traditional GIS order” (long/lat) if the CRS specifies lat/long. [#333]( by Agustin Lobo
mainwas ignored in
densitywhen using a single layer SpatRaster [#424] by dvictori
mean, when used with multiple SpatRasters and numbers, ignored additional SpatRasters [#426] by Zhuonan Wang
include.lowest=TRUE[#442] by Alex Ilich
patchesnow combines patches that connect across the data line [#366] by Hirscht
patches(directions=8)now connects in NE/SW direction [#451] by Jean-François Bourdon.
centroidsnow considers cases where SpatVector parts are nearest to each other when crossing the date line in stead of the zero-meridian [#366] by Hirscht
terraincreated empty (
NA) rows between chunks used for processing large rasters. [#453] by Robert Ritson.
insetdid not draw the “box” correctly. [#457] by Márcia Barbosa
as.linesnow works with a points SpatVector [#464] by Márcia Barbosa
values(x)<-now accepts (hex coded) colors as values
focalnow wraps around the dateline like raster::focal [#242] by Alexander Marbler
aggregatenow does not show a progress bar in all cases [#249] by Lachlan
as.data.frame<SpatRaster> or <SpatVector>are now also implemented as S3 methods to assure correct dispatch by other S3 methods such as
data.table::as.data.table. See [#284] by Patrick Schratz
crsnow shows the correct authority if it is not EPSG. [#419] by Matthew Williamson
rast<filename>has a new argument
lyrsto subset the layers and open the file in one step.
rast<array>now has a crs and extent argument. [#439] by RS-eco
type="xyz"is now default in
rast<data.frame>. [#438] by RS-eco
classifyhas a new argument
bracketsto show if a side of an interval is open or closed.
as.data.frame. [#441] ngould7
vect<data.frame>are now much faster. [#413] by BastienFR
extractwith points provided as a matrix or cell numbers is not much faster. [#341]
focalhas a new argument
na.policythat can be set to one of “all” (default), “only” or “omit”. argument
na.onlyhas been removed, as you can now use
perimeterto allow passing
plot<Spat*>. [#456] by Márcia Barbosa
memfraccan now be set to zero (in stead of not lower than 0.1). [#476] by Matt Strimas-Mackey
patchesto disallow gaps between patch IDs. See [#478] by Dunbar Carpenter.
mergeTimeto combine multiple rasters, perhaps partly overlapping in time, into a single time series
fillTimethat can add empty layers in between existing layers to assure that the time step between layers is constant
approximateto fill in missing values by cell across layers
as.boolfor SpatRaster and explicit recognition of Boolean raster data in various places (e.g., extract, plot)
raster::layerStats). [#420] by Alex Ilich
raster::corLocal). [#427] by Zhuonan Wang
SpatRaster. See [#428] by Dongdong Kong
SpatRasterthat implements the Math-generic methods and accepts a filename
rasterize<matrix>, see [#413] by BastienFR
colorizeto transform color representations
arrowto draw a (North) arrow on a map. [#461] by Márcia Barbosa
densifyto insert nodes between existing nodes of a line or polygon SpatVector
directionfor SpatRaster. [#462] by Márcia Barbosa
focal3Dto compute focal values for a three-dimensional (row, column, layer) window
makeVRTto create a vrt file for a file that needs a header to be read.
spatSample<SpatRaster>. [#470] by Michael Mahoney
memmaxto cap the amount of RAM that terra can be used in raster processing [#476] by Matt Strimas-Mackey
gridDistanceto compute distances traversing a raster, perhaps with obstacles. [#477] by Márcia Barbosa
focalnow has ellipses (
...) to allow for providing additional arguments to
fun. For this reason it does not have a
na.rmargument anymore as that can be supplied via the ellipses. In practice this means that the default will be
na.rm=FALSEfor the standard functions such as
appgrossly overestimated RAM needed, slowing it down. Reported by Jerry Nelson
terranow installs, again, with older versions of GEOS [#406] by fparyani
terradid not install with Clang on CRAN/OSX due to using C++13 idiom.
tappnow have a
coresargument (as do
predict). Suggested by Dongdong Kong [#365]
focalnow also works with a function that returns multiple values. See [#318] by Alex Ilich.
focalcan now process multiple layers in one step.
starsobjects [#220] by Jakub Nowosad
rastwith some NetCDF files failed because of bad parsing of dates. [#361] by Juan Carlos Zamora-Pereira
distance<SpatRaster>with lon/lat data was not correct. [#368] by Greg Schmidt
as.polygons<SpatRaster>failed with a SpatRaster and a categorical layer that is not the first layer. [#370] by Patrick Schratz
rasterizewas not ignored, also causing errors when writing to temporary files. [#377] by Robbie Price
rast<character>crashed if the sds was an empty character string. [#381] by Dan Baston
plot<SpatVector>now responds to the
rangeargument [#385] by Márcia Barbosa
zonalfailed for user-defined functions. [#393] by mqueinnec
selectHighestto select n cell values with the highest or lowest values.
vect<list>to append SpatVectors (faster than
projectto align to the template SpatRaster but ignore the resolution
gdalCacheto set the GDAL cache size, contributed by Dan Baston [#387]
writeVectorto pass layer creation options to GDAL
To avoid name conflicts with
disaggregate is now called
bbox<SpatVector> have been removed (but could be resurrected in
raster or under another name).
resamplenow choose the resampling method based on the first layer, using “near” for categorical data. Thanks to Matthew Lewis [#355]
terra no longer depends on
raster. To avoid name clashes between these two packages, and to allow replacing methods from
raster now depends on
freqhas a new argument
usenames. See issue [#309] by Bappa Das
rast<character>has a new argument
optsthat can be used to pass GDAL open options. See issue [#314]
rast<SpatRaster>now takes arguments
vals. See issue [#323] by Dongdong Kong
crs<-now warns if an unsupported datum is used. See issue [#317]
spatSamplenow returns factor values if a SpatRaster layer is.factor except when using
origin<-to set the origin of a SpatRaster. See issue [#326] by Jakub Nowosad
crshas a new argument
parse. See [#344]
plot<SpatRaster,missing>has a new argument
reset=FALSEthat allows resetting the par()$mar parameters after plotting. See issue [#340] by Derek Friend
crdshas a new argument
na.rm. See [#338] by Kodi Arfer
show(Spat*)now prints the name and EPSG code of a crs if available. See [#317] by Jakub Nowosad
plotRGBfailed if there were
NAs. Issue [#308] by Jakub Nowosad
writeVectorcrashed R when used with a SpatVector with no geometries. Reported by Timothy White in issue [#319]
summary<SpatRaster>now returns counts for the classes (instead of a numerical summary of the indices) [#324] by Jakub Nowosad
tappwith a character index now returns a SpatRaster with the correct names [#345] by Stuart Brown
rasterizewith a character variable now adds the ID column to the categories [#337] by Tate Brasel
cellSizenow masks values in all cases (when requested with
mask=TRUE). Issue [#339] by Jean-Luc Dupouey
buffer<SpatVector>no longer treats lines like polygons [#332] by Márcia Barbosa
plotnow passes the layer index to
fun[#310] by Ben Tupper
nearestwas sometimes wrong. See [#328] by Shawn Ligocki
focaldid not reset initial values for NA cells when processing chunks. [#312] by Jeffrey Evans
focalcould run out of memory when using a large window and user-defined function, and was inexact at the chunk boundary [#347]
as.raster=TRUEfailed for categorical SpatRasters [#348] by Jakub Nowosad
time(x) <- dis set with a
time(x)now returns a
Dateobject instead of a
POSIXctobject. Issue [#256] by Mauricio Zambrano-Bigiarini
rast<data.frame>method to avoid confusion with the
listmethods in response to a SO question by Stackbeans
writeCDFnow also writes the time dimensions if there is only one time-step. See this SO question
vect<character>(filename) now has argument
layerto select a layer from a multi-layer file / database, and arguments
filterfor reading a subset
substcan now create multiple output layers See [issue 276] by Agustin Lobo
classifycan now create different multiple output layers See [issue 276] by Agustin Lobo
plot<SpatRaster>can now be a
SpatRaster. See this SO question by James McCarthy
overwritearguments were ignored in
project. Reported by Fabian Fischer
inverse=TRUEcrashed the R session. Issue [#264] by Jean-Luc Dupouey
mosaicwas not correct for large rasters (only the first rows were used). Reported by Zavud Baghirov in [#271]
as.points,SpatRasterdid not remove
NA’s correctly and shifted values. Issues [#269] and [#273] by Julian Hagenauer
rast<matrix>rotated values when using an equal-sided matrix [#274] by Jakub Nowosad
projectwith a crs argument. [#283] by Timothée Giraud
righthad TRUE and FALSE reversed.
terrainhad edge effects [#303] by Andrew Gene Brown.
terraincan now compute multiple variables at once [#286] by Žan Kuralt
wrap<SpatRaster>changed factors into numeric [#302] by Patrick Schratz
writeVectorfailed with “FlatGeobuf” (and probably other formats as well) for not using a proper MultiPolygon [#299] by L Dalby
spatSampleis now much more regular [#289] by Jakub Nowosad
na.omit<SpatVector>to remove empty geometries and/or attribute records that have an
srcto create a
SpatRasterCollection(a loose collection of tiles).
mosaicnow have methods for a
SpatRasterCollection. To avoid the (inefficient) use of
do.call. #210 by Matthew Talluto.
activeCat<-to get or set the “active” category if there are multiple categories (raster attributes)
catalyzeto transfer categories to numeric cell values
meanfor (the attributes of) a
shade, to compute hill shading
na.rm) are now used by
rasterizewith point geometries. #209 by Jakub Nowosad
interpolate. #208 by Jakub Nowosad
predictto list the packages that need to be exported to the cores if argument
coresis larger than one.
?predictnow shows different approaches to parallelize
predict(based on examples in issue. #178 by by Matthew Coghill.
freqnow returns labels for categorical layers
adjacentnow has a
pairsargument. #239 by Kenneth Blake Vernon
adjacentnow also takes a matrix to specify adjacent cells
meanand other summarize methods now take a
filenameargument and disallow non-recognized named arguments. #238 by Jessica Nephin
vat.dbffile is now ignored if it only has the counts of the values. #234 by Jullee
gdal=""write options and use BIGTIFF if necessary (suggested by Ani Ghosh)
extract-SpatRaster,SpatVectormethod to extract values for a single layers specified for each geometry (see this question).
extractwith points and
xy=TRUEgave garbled output
wrap) did not capture the layer names. [#213] by Pascal Title
focalmirrored the weight matrix, thus affecting the results when using an asymmetrical weight matrix. Reported by Sebastiano Trevisani
terra::terraOptionsnow works without attaching the package. [#229] by Karl Dunkle Werner
ncores > 0and a function that returns multiple layers now works. [#240] by BastienFR.
autocor(local) can now handle
NAvalues. [#245] by Jakub Nowosad .
maskwith a SpatVector and a large (out of memory) multi-layer SpatRaster only worked for the first layer. Reported by Monika Tomaszewska.
as.linesmethod for SpatRaster
as.polygonsmethod for SpatVector lines
autocor<numeric>has new methods
mean, to compute the local mean, and
locmor, for the local Moran’s I
sharedPathsmethod for SpatVector (lines and polygons)
RGB2colmethod to reduce a three-layer RGB SpatRaster to a single layer SpatRaster with a color-table (with <= 256 colors)
splitmethods for SpatVector and SpatRaster
rast<Raster*>now takes the crs from the Raster object, not from the file it may point to. [#200] by Floris Vanderhaeghe
convhullhas a new argument
by=""to make convex hulls for sub-sets of a SpatVector.
extractwith multiple layers could return a data.frame where the values were not in the correct order (by row instead of by column)
cropworks again with
sfobjects. [#201] by Sebastian Brinkmann
vect<sf>now also works for lines, and should be faster
vect<character>crashed R if a file had empty geometries. [#202] by consumere
extract(points, bilinear=TRUE, cells=TRUE)now works. [#203] by fab4app
zonalnow works for
max. [#207] Reported by Jakub Nowosad
trimhas a new argument
valuethat allows trimming rows and columns with other values than the default
rapphas a new argument
clampthat allows clamping start and end values to
1:nlyr(x), avoiding that all values are considered
spatSample<SpatRaster>has new arguments
values. Getting values, cells and coordinates is no longer mutually exclusive. In response to [#191] by Agustin Lobo
area<SpatRaster>has a new argument
classifycan now take a single number to request that many cuts
mergenow warn and resample if rasters are not aligned
extracthas a new argument
exactto get the fraction covered for each cell
flip(x, direction="vertical")no longer reverses the order of the layers
extractdid not work for horizontal or vertical lines as their extent was considered invalid. Reported by Monika Tomaszewska
autocordid not handle NA values [#192] by Laurence Hawker
nearestnow works for angular coordinates
terrainwas not correct (the tangent was returned instead of the slope), [#196] by Sven Alder
quantilenow works for rasters that have cells that are all
NA. Reported by Jerry Nelson