% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cell.R
\name{a5_cell}
\alias{a5_cell}
\alias{is_a5_cell}
\alias{as_a5_cell}
\alias{a5_is_valid}
\title{A5 Cell Index Vector}
\usage{
a5_cell(x = character())

is_a5_cell(x)

as_a5_cell(x)

a5_is_valid(x)
}
\arguments{
\item{x}{A character vector of hex-encoded A5 cell IDs, or an object
coercible to one.}
}
\value{
An \code{a5_cell} vector (\code{a5_cell}, \code{as_a5_cell}), a logical
scalar (\code{is_a5_cell}), or a logical vector (\code{a5_is_valid}).
}
\description{
Create, test, and coerce A5 cell index vectors. Cells are stored as
a record with eight raw-byte fields (\code{b1}--\code{b8}) representing the
little-endian bytes of the u64 cell ID. This avoids the precision
loss of floating-point storage and keeps memory compact.
}
\examples{
cells <- a5_cell(c("0800000000000006", "0800000000000016"))
cells
a5_is_valid(c("0800000000000006", "not_a_cell", NA))
}
