Checks if the sparse matrix has the correct structure.
validate_spam(object)
Returns TRUE if object is a valid spam objects.
TRUE
object
a spam matrix.
spam.creation
validate_spam(spam(1, 20))
Run the code above in your browser using DataLab