if(is.null(attr(M,"data")))stop("if you do not supply any time argument (times, or (start, end, deltat)), then object must have a valid data attribute")
if(is.null(attr(M,"data")))stop("if you do not supply any time argument (times, or (start, end, deltat)), then object must have a valid data attribute")