jeffreyevans / spatialEco

R package for spatial analysis and modelling of ecological systems
GNU General Public License v3.0
108 stars 29 forks source link

Error in raster.kendall package #58

Closed venkateshkolluru95 closed 1 year ago

venkateshkolluru95 commented 1 year ago

I have a series of rasters (16 files) loaded as tiff files with SpatRaster format. However, while running the code I am getting an error stating 'Error in kendall(y) : The Kendall Tau should have at least 6 observations'. I have opened the loaded variable and was able to see 16 files. Could you please help resolve the issue?

Thanks!

jeffreyevans commented 1 year ago

There are not enough observations in some of the pixel vectors. I have added an argument that results in NA's rather than an error.