% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rgb_indices_to_tbl.R
\name{rgb_indices_to_tbl}
\alias{rgb_indices_to_tbl}
\title{Convert RGB indices to tibble}
\usage{
rgb_indices_to_tbl(x)
}
\arguments{
\item{x}{A RasterBrick or RasterStack object containing RGB indices.}
}
\value{
A tibble where each column corresponds to an RGB index
and each row represents a pixel from the input raster.
}
\description{
Converts a RasterBrick or RasterStack object of RGB indices into a tibble.
}
\details{
The function converts raster layers into a tabular format using
\code{raster::as.data.frame}, preserving layer names as column names.
}
\examples{
r <- raster::raster(matrix(runif(50*50), 50, 50))
g <- raster::raster(matrix(runif(50*50), 50, 50))
b <- raster::raster(matrix(runif(50*50), 50, 50))
img <- raster::stack(r, g, b)
x <- rgb_basic(img)

rgb_indices_to_tbl(x)

}
