report(x, ...)
## S3 method for class 'mefa':
report(x, filename, segment = FALSE, n = NULL,
by.taxa = TRUE, samp.var = NULL, drop.redundant = NULL,
collapse = TRUE, taxa.name = NULL, author.name = NULL,
taxa.order = NULL, grouping = FALSE, tex = FALSE, binary = FALSE,
tex.control = list(ital.taxa = TRUE, noindent = TRUE,
bold.sect = TRUE, bold.1st = TRUE, vspace1 = 0.5, vspace2 = 0.2),
sep = c(",", ":", "(", ":", ",", ")", ";"), dir = getwd(), ...)outdir argument.NULL (default) segments are not distinguished in the output. If TRUE all (n = NULL) or some of the segments are used and distinguished.NULL all segments are used, if not NULL, give names of the segments to be used (only if segment = TRUE).TRUE, default) or samples (FALSE, currently not implemented).x$samp) to be used in the report. Variables appear in the order given here.length(samp.var)-1) or not (NULL, default).TRUE samples with identical values in samp.var for a given species are collapsed to avoid redundancy.x$taxa) where the taxa names are stored. By default (NULL) dimnames(x)$taxa is used.x$taxa) where the authors' names and dates of descriptions are stored. By default it is not used (NULL). If specified, these follow the species names in the report.x$taxa) where the variable for ordering is stored. By default (NULL) taxa.name is used for ordering.FALSE, default), or grouped into separate paragraphs (TRUE).TRUE) or plain text file (FALSE).TRUE the result will contains count data.tex = TRUE). The ital.taxa controls italicised taxa names, noindent controls indentation of paragraphs, bold.sect controls boldface type of paragraph openings, samp.var, 2nd is placed between values of samp.var if redundant elements were dropped, 3rd is the opening character before count data, 4th stands after the segment name, 5NULL, the current working directory is used.tex = FALSE) or be included into a LaTeX report (e.g. via the package Sweave, see mefadocs("SampleReport")). Contrary to the many arguments, the default values do not need much modifications in most of the cases (see examples).mefa, writedata(dol.count, dol.samp, dol.taxa)
x <- mefa(stcs(dol.count), dol.samp, dol.taxa)
## Plain text
## Count values from x$xtab
report(x, "report-all.txt")
## Count values for each segments
report(x, "report-segm-all.txt",
samp.var = c("method","microhab"), segment = TRUE)
## LaTeX formatting
report(x, "report-all.tex", tex=TRUE)
## For how to include into a TeX or Rnw file, see:
mefadocs("SampleReport")Run the code above in your browser using DataLab