I am writing a function that extracts information from models, and I am wanting to separate parts of the output, like the mtable
in the memisc
package, a row of hyphens or dashes between one block of output like parameter estimates and another block like information criteria or separating different models. so if I have a two matrices and I want to separate them by a dashed line like
so if i have two matrices combined they would be
structure(c(1, 3, 5, 7, 2, 4, 6, 8), .Dim = c(4L, 2L))
but separate they would be
structure(c(1, 3, 2, 4), .Dim = c(2L, 2L))
structure(c(1, 3, 2, 4), .Dim = c(2L, 2L))
and wanting them to show up as matrices but how do i add a row of characters to it instead of just doing it manually and guessing on how many to put there without the quotes or the line numbers?
I have tried paste
command, format
, cat
, rep("=")
and I know that will kind of work but don't know how to control the width. I know I am kind of vague and apologize for that.