title: How to generate a discrete 2D Gaussian smoothing kernel using R
body: <p>I'm wondering whether R has a function for this, or how to code, a 2D discrete version of a Gaussian smoothing kernel. The goal is to use this to smooth a 2D matrix of values.</p>