Commit a99f38d8 by Eric Coissac

Adds a method for converting a pm model to a procmod.frame.

parent 1f246237
......@@ -195,6 +195,15 @@ as.procmod.frame.array = function(data,...) {
do.call(procmod.frame,l)
}
#' Coerce to a ProcMod Frame.
#'
#' @author Eric Coissac
#' @author Christelle Gonindard-Melodelima
#' @export
as.procmod.frame.pm = function(data,...) {
vars.procmod(terms(data),data$model)
}
#' Dimensions of a Matrix Frame.
#'
#' @author Eric Coissac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment