% HEADER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This is file spam/man/validate_spam.Rd.                   %
% It is part of the R package spam,                         %
%  --> https://CRAN.R-project.org/package=spam              %
%  --> https://CRAN.R-project.org/package=spam64            %
%  --> https://git.math.uzh.ch/reinhard.furrer/spam         %
% by Reinhard Furrer [aut, cre], Florian Gerber [aut],      %
%    Roman Flury [aut], Daniel Gerber [ctb],                %
%    Kaspar Moesinger [ctb]                                 %
% HEADER END %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   



\name{validate_spam}
\alias{validate_spam}
\title{Validate a spam objects}
\description{Checks if the spam object has the correct structure.}
\usage{
validate_spam(object)
}
\arguments{
  \item{object}{a spam matrix.}
}
\value{Returns \code{TRUE} if \code{object} is a valid spam objects. }

\seealso{\code{\link{spam.creation}}}
\examples{
validate_spam(spam(1, 20))
}
