memisc 0.99 published on CRAN¶
18 January 2016
A new version 0.99 of package memisc has been published on CRAN, which adds a few new features to the previously published version.
One highlight of the new release is the support for output into HTML.
Since contemporary word processors can read HTML, it is now much easier
to get nicely formatted mtable
output in “Word” or “LibreOffice”.
Another highlight is the ability to create complex tables by putting
together other tables.
Changes since 0.97¶
New features¶
-
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) functionshow_html
.In particular, results of the functions
mtable
(i.e. tables of model estimates),ftable
(i.e. flattened contingency tables etc.), andcodebooks
, can be exported int. HTML usingformat_html
. Also data frames can be exported into HTML. - A function
dsView
is added, which allows a display ofdata.set
objects similar asView
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. Furthermtable
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 togetSummary
, 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 bysetSummaryTemplate
. 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,
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 fordata.set
objects. - A new
percentages
function is added to allow easy creation of tables of percentages. - 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 thestats
package) can now be combined intoftable_matrix
objects. This can be done by usingrbind()
orcbind()
.
Bugfixes¶
-
spss.fixed.file
is now able to handle labelled strings andvalue labels
andmissing values
statements. - Internal C-code used by
spss.fixed.file
no longer assumed that arguments are copied – some strange behaviour of objects created byspss.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 fordata.sets
now works as expected. -
spss.fixed.file
now checks whether there are undefined variables invarlab.file
etc. -
Stata.file
now can import Stata 9 and Stata 10 files. -
str
andls.str
are imported from theutils
package to prevent a NOTE in R CMD check
User-visible changes¶
- Argument
drop
is no longer used by functionmtable
. - All vignettes now use knitr.
- Format of file produced by
write.mtable
can now be specified using aformat=
argument. ButforLaTeX=TRUE
still can be used to get LaTeX files.
Defunct¶
- The functions
Termplot
,Simulate
, andpanel.errbars
are defunct. Graphics similar to those built withpanel.errbars
can be created with facilities provided by the package “mplot”, which is currently available on GitHub. - The function
UnZip
has been removed from the package.unzip
in conjunction withsystem.file
does the same job, as can be seen in the example forspss.portable.file
.