Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

R raster warning: In (function (..., deparse.level = 1) : number of columns of result is not a multiple of vector length (arg 1)

$
0
0

I am trying to create a raster by subsetting/intersecting two others from the Hansen et al. global forest change data set (found here: https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.6.html). However, when I do this, I get 4 of the same warning messages found in the title of this post. Is this indicative of any problems? Should I trust the output? And either way, what can I do differently to avoid these warnings? My next step is to use the new raster I've created to calculate forest cover in buffers around various points, and I'm worried about passing problems along to subsequent analyses.

My code:

forest_CL2016 = forest_cov2000_clipped > 95 & (forest_lossyear_clipped == 0 | forest_lossyear_clipped > 16)

The rasters I'm working with here are:

forest_cov2000_clipped class : RasterLayer dimensions : 792, 1257, 995544 (nrow, ncol, ncell) resolution : 27.8, 27.6 (x, y) extent : 630975.5, 665920.1, 30881.38, 52740.58 (xmin, xmax, ymin, ymax) crs : +proj=utm +zone=17N ellps=WGS84 +ellps=WGS84 source : memory names : Hansen_GFC.2018.v1.6_treecover2000_10N_080W values : 0, 100 (min, max)

forest_lossyear_clipped class : RasterLayer dimensions : 792, 1257, 995544 (nrow, ncol, ncell) resolution : 27.8, 27.6 (x, y) extent : 630975.5, 665920.1, 30881.38, 52740.58 (xmin, xmax, ymin, ymax) crs : +proj=utm +zone=17N ellps=WGS84 +ellps=WGS84 source : memory names : Hansen_GFC.2018.v1.6_lossyear_10N_080W values : 0, 18 (min, max)


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>