brief | R Documentation |

Print data objects and statistical model summaries in abbreviated form.

brief(object, ...) ## S3 method for class 'data.frame' brief(object, rows = if (nr <= 10) c(nr, 0) else c(3, 2), cols, head=FALSE, tail=FALSE, elided = TRUE, classes = inherits(object, "data.frame"), ...) ## S3 method for class 'tbl' brief(object, ...) ## S3 method for class 'matrix' brief(object, rows = if (nr <= 10) c(nr, 0) else c(3, 2), ...) ## S3 method for class 'numeric' brief(object, rows = c(2, 1), elided = TRUE, ...) ## S3 method for class 'integer' brief(object, rows = c(2, 1), elided = TRUE, ...) ## S3 method for class 'character' brief(object, rows = c(2, 1), elided = TRUE, ...) ## S3 method for class 'factor' brief(object, rows=c(2, 1), elided=TRUE, ...) ## S3 method for class 'list' brief(object, rows = c(2, 1), elided = TRUE, ...) ## S3 method for class 'function' brief(object, rows = c(5, 3), elided = TRUE, ...) ## S3 method for class 'lm' brief(object, terms = ~ ., intercept=missing(terms), pvalues=FALSE, digits=3, horizontal=TRUE, vcov., ...) ## S3 method for class 'glm' brief(object, terms = ~ ., intercept=missing(terms), pvalues=FALSE, digits=3, horizontal=TRUE, vcov., dispersion, exponentiate, ...) ## S3 method for class 'multinom' brief(object, terms = ~ ., intercept=missing(terms), pvalues=FALSE, digits=3, horizontal=TRUE, exponentiate=TRUE, ...) ## S3 method for class 'polr' brief(object, terms = ~ ., intercept, pvalues=FALSE, digits=3, horizontal=TRUE, exponentiate=TRUE, ...) ## Default S3 method: brief(object, terms = ~ ., intercept=missing(terms), pvalues=FALSE, digits=3, horizontal=TRUE, ...)

`object` |
a data or model object to abbreviate. |

`rows` |
for a matrix or data frame, a 2-element integer vector with the number of rows to print at the beginning and end of the display; for a vector or factor, the number of lines of output to show at the beginning and end; for a list, the number of elements to show at the beginning and end; for a function, the number of lines to show at the beginning and end. |

`cols` |
for a matrix or data frame, a 2-element integer vector with the number of columns to print at the beginning (i.e., left) and end (right) of the display. |

`head, tail` |
alternatives to the |

`elided` |
controls whether to report the number of elided elements, rows, or columns; default is |

`classes` |
show the class of each column of a data frame at the top of the column; the classes are
shown in single-character abbreviated form—e.g., |

`terms` |
a one-sided formula giving the terms to summarize; the default is |

`intercept` |
whether or not to include the intercept; the default is |

`pvalues` |
include the p-value for each coefficient in the table; default is |

`exponentiate` |
for a |

`digits` |
significant digits for printing. |

`horizontal` |
if |

`dispersion` |
use an estimated covariance matrix computed as the dispersion times the unscaled covariance matrix; see |

`vcov.` |
either a matrix giving the estimated covariance matrix of the estimates,
or a function that
when called with |

`...` |
arguments to pass down. |

Invisibly returns `object`

for a data object, or summary for a model object.

The method `brief.matrix`

calls `brief.data.frame`

, and `brief.tbl`

(for tibbles) calls `print`

.

John Fox jfox@mcmaster.ca

Fox, J. and Weisberg, S. (2019)
*An R Companion to Applied Regression*, Third Edition, Sage.

`S`

brief(rnorm(100)) brief(Duncan) brief(OBrienKaiser, elided=TRUE) brief(matrix(1:500, 10, 50)) brief(lm) mod.prestige <- lm(prestige ~ education + income + type, Prestige) brief(mod.prestige, pvalues=TRUE) brief(mod.prestige, ~ type) mod.mroz <- glm(lfp ~ ., data=Mroz, family=binomial) brief(mod.mroz)

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.