NEWS | R Documentation |
A new object-oriented infrastructure for the creation of HTML code
is used in format_html
methods. This infrastructure is exposed
by the html
function.
Support for with model groups in mtable
. c.mtable
now creates
groups of models, if arguments are tagged.
Flattened contingency tables (ftable
s as they are created
by the eponymous function in the stats
package) can now be
combined into ftable_matrix
objects. This can be done by
using rbind()
or cbind()
.
There is now an object class for survey items containing dates (without
times), called "Date.item"
.
Support for including sandwich estimates of sampling variances and
standard errors into the output of summary
and mtable
,
by the new generic functions withVCov
and
withSE
.
Support for different parameter sections is added to
mtable
. This is intended to allow output of mixed
effects models to distinguish between ("fixed effects")
coefficients and variance parameters.
Objects created by mtable()
also can have several
header lines. Facilities to add additional header lines will
be added soon.
Optionally, mtable()
shows the left-hand sides of
model equations. This can be controlled by the optional
argument show.eqnames
and by the global option "mtable.show.eqnames"
.
Support for HTML and LaTeX output in Jupyter notebooks is added to objects
created by mtable
and ftable
etc.
Subset methods for importer objects are much more memory efficient and now can handle files of size larger than 1GB.
useDcolumn
and useBooktabs
arguments of
toLatex()
methods now have global options as defaults
toLatex()
methods optionally escape dollar, subscript and
superscript symbols. This can be set either by an explicit
(new) argument toLatex.escape.tex
or by a global option
with the same name.
Set dependency to R version >= 3.0 for this is needed for knitr vignettes.
str
and ls.str
are imported from the
utils
package to prevent a NOTE in R CMD check
HTML tables and lists are no loger wrapped in HTML paragraphs in format_html.CodebookEntry
.
show
and codebookEntry
methods for the
"datetime.item" now work asexpected.
cases
handles NA
s more gracefully
toLatex.ftable
output has been improved: No attempt at
showing non-existent variable names, better application of
extracolsep
.
Duplicate value labels now produce an error if item object is coerced into a factor.
A bug concerning missing values in SPSS files is fixed.
Headlines in vignettes are now coherent.
mtable
with empty summary sections can be created
(again).
Objects returned by mtable
return objects with class
"memisc_mtable" to avoid name clash with objects created by the
model.table
in package "stats".
Calls to PROTECTION are added to the C-source to prevent protection errors.
toLatex()
now handles matrices in data frames.
spss.portable.file()
now handles files with weighting
variables and empty variable labels.
All vignettes are now using knitr.
HTML output uses unicode characters by default instead of amersand-escapes to enhance compatibility with pandoc.
The function UnZip
has been removed from the package. unzip
in conjunction with
system.file
does the same job, as can be seen in the example for spss.portable.file
.
Support for exporting results of various functions into HTML format is now
supported by the function format_html
.
This should make it easier to import them into HTML or word-processing
documents (that support importing HTML). A preview of the HTML is made available
by the new (generic) function show_html
.
In particular, results of the functions mtable
(i.e. tables of
model estimates), ftable
(i.e. flattened contingency tables etc.),
and codebooks
, can be exported int. HTML using format_html
.
Also data frames can be exported into HTML.
A function dsView
is added, which allows a display of data.set
objects similar as View
displays data frames.
mtable
now handles multi-equation models better, in particular
if the model objects supplied as arguments vary in the number and/or names
of the equations. There is also a new option to place confidence intervals
to the right of coefficient estimates. Further mtable
gains
the following optional aguments:
show.baselevel
, which
allows to suppress the display of baseline categories of dummy variables,
when dummy variable coefficients are displayed
sdigits
, to specify the number of digits of summary statistics.
gs.options
, to pass optional arguments to getSummary
, allowin
for more flexibility in creating tables.
One can now use a summaryTemplate
generic function for formatting model summaries, in addition to set the template by
setSummaryTemplate
.
Finally, parts of "mtables" can be extracted using the [
operator as
with matrices, and "mtables" can now also be concatenated.
There is now an object class for survey items containing dates and times, called
"datetime.item"
There is a new function wild.codes
to check wild codes (i.e.
unlabelled codes of an otherwise labelled item.)
codebook
now supports data frames, factors, and numeric vectors.
A toLatex
method exists now for data.set
objects, data frames and other objects.
A new percentages
function is added to allow easy creation of tables of percentages.
spss.fixed.file
is now able to handle labelled strings and
value labels
and missing values
statements.
Internal C-code used by spss.fixed.file
no longer assumed that
arguments are copied – some strange behaviour of objects created by spss.fixed.file
is now corrected.
Description of items in external data sources is more complete now - the same
information as for items in internal data.sets
.
applyTemplate
now returns empty strings for undefined quantities.
collect
method for data.sets
now works as expected.
spss.fixed.file
now checks whether there are undefined variables in varlab.file
etc.
Stata.file
now can import Stata 9 and Stata 10 files.
Argument drop
no longer used by function mtable
.
Format of file produced by write.mtable
can now be
specified using a format=
argument. But forLaTeX=TRUE
still can be used to get LaTeX files.
The functions Termplot
, Simulate
, and panel.errbars
are defunct. Graphics similar to those built with panel.errbars
can be created with facilities provided by the package "mplot", which
is currently available on GitHub.
spss.system.file
and spss.portable.file
gain a tolower=
argument
that defaults to TRUE
, which
allows to change annoying all-upper-case variable names to lower case
New generic function Iconv()
that allows to change the character enconding of variable
descriptions and value labels. It has methods for "data.set"
, "importer"
, "item"
,
"annotation"
, and "value.label"
objects.
There is now a method of as.character()
for "codebook"
objects and a convenience
function Write()
with methods for "codebook"
and "description"
to make it more
convenient to direct the output of codebook()
and description()
into text files.
A method for "merMod"
objects of the getSummary()
generic function.
mtable()
now should be able (again) to handle estimation results produced by lmer()
and glmer()
from
package 'lme4'.
recode()
handles character vectors in a more convenient way: They are converted
into factors with sorted unique values (after recoding) as levels.
getSummary.expCoef
is renamed into getSummary_expCoef
.
S3 method aggregate.formula
has been removed from the package to avoid
clash with method of the same name in the base
package. The function Aggregate
can be used instead.
Removed include
, uninclude
, and detach.sources
as these are flagged
as modifying the global namespace.