<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);">
<p><span id="ms-rterangepaste-start"></span></p>
<p>Hello,</p>
<p><br>
</p>
<p>I would like to build 100-m buffers (representing ecological corridors) around land cover attributes in a raster layer and to assign a given value (i.e., value of 13) to buffer cells.</p>
<p><br>
</p>
<p>To do this, I'm using the function "buffer" (package raster) to draw the buffers around particular raster cells (i.e., cell values of 2 and 5). For example, in the image below, the buffers are represented in blue (cell values of 13) and the particular raster
 cells are represented in yellow (cell values of 2).</p>
<p><br>
</p>
<p>The problem is that the time to run the function "buffer" is very low because I have a raster of 5000000 cells. Does anyone know how I can reduce the buffering time ?</p>
<p><br>
</p>
<p>Thanks a lot for your time.</p>
<p>Have a nice day.</p>
<p>Nell</p>
<span id="ms-rterangepaste-end"></span><br>
<p><img tabindex="0" id="img910063" style="max-width: 99.9%;" crossorigin="anonymous" unselectable="on" size="12209" contentType="image/png" src="cid:a5aea5ef-e76e-4670-9473-25ebaa73f0a3"></p>
</div>
</body>
</html>