This base method prints objects; here the arguments specific to mclm implementations are described.
Usage
# S3 method for assoc_scores
print(
x,
n = 20,
from = 1,
freeze_cols = NULL,
keep_cols = NULL,
drop_cols = NULL,
from_col = 1,
sort_order = c("none", "G_signed", "PMI", "alpha"),
extra = NULL,
...
)
# S3 method for conc
print(x, n = 30, ...)
# S3 method for fnames
print(
x,
n = 20,
from = 1,
sort_order = c("none", "alpha"),
extra = NULL,
hide_path = NULL,
...
)
# S3 method for freqlist
print(x, n = 20, from = 1, extra = NULL, ...)
# S3 method for slma
print(x, n = 20, from = 1, ...)
# S3 method for tokens
print(x, n = 20, from = 1, extra = NULL, ...)
# S3 method for types
print(x, n = 20, from = 1, sort_order = c("none", "alpha"), extra = NULL, ...)Arguments
- x
An object of any of the classes for which the method is implemented.
- n
Maximum number of items in the object to be printed at once.
- from
Index of the first item to be printed.
- freeze_cols
Names of columns that should not be affected by the argument
from_col. Frozen columns are always printed to the left of non-frozen columns, even if in their original order was different. The names of the types are always and unavoidably printed as the leftmost column.If this argument is
NULL, then the default setting applies, meaning that the following columns, if present, are displayed in the "frozen area":a,PMIandG_signed.To avoid any columns for being frozen,
freeze_colsshould beNAorcharacter(0).- keep_cols, drop_cols
A vector of column names or
NULL. If both arguments areNULL, all columns are printed (or as many as fit on the screen). Ifkeep_colsis notNULL, it indicates the columns that should be printed. If it isNULLbutdrop_colsis not, thendrop_colsindicates the columns that should not be printed. Note that they have no effect on the frozen area.Columns that are blocked from printing by these arguments are still available to
sort_order.- from_col
Index of the first column to be displayed in the regular area (among all selected columns, including frozen columns). If
from_colpoints- sort_order
Order in which the items are to be printed. In general, possible values are
"alpha"(meaning that the items are to be sorted alphabetically), and"none"(meaning that the items are not to be sorted). Ifxis an object of classassoc_scores, a column name or vector of column names may be provided instead.- extra
Extra settings, as an environment. Arguments defined here take precedence over other arguments. For instance, if
extra$from_colis notNULL, it will overrule thefrom_colargument.- ...
Additional printing arguments.
- hide_path
A character string with a regular expression or
NULL. If it is notNULL, the character string will be removed from the paths when printing.
Value
Invisibly, x.
For objects of class assoc_scores, the output consists of two areas:
the 'frozen area' on the left and the 'regular area' on the right. Both
areas are visually separated by a vertical line (|). The distinction between
them is more intuitive in explore(), where the frozen columns do not respond
to horizontal movements (with the r and l commands). The equivalent in
this method is the from_col argument.
