% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grid_io.R
\name{maxent_grid_from_matrix}
\alias{maxent_grid_from_matrix}
\title{Create a Grid from an R Matrix}
\usage{
maxent_grid_from_matrix(mat, xll, yll, cellsize, nodata = -9999, name = "")
}
\arguments{
\item{mat}{Numeric matrix.}

\item{xll}{X coordinate of lower-left corner.}

\item{yll}{Y coordinate of lower-left corner.}

\item{cellsize}{Cell size.}

\item{nodata}{NODATA sentinel value (default \code{-9999}).}

\item{name}{Grid name (default \code{""}).}
}
\value{
External pointer to a GridFloat C++ object.
}
\description{
Builds a GridFloat from a numeric matrix and spatial parameters.
\code{NA} values in the matrix are stored as the \code{nodata} value.
}
