meta_table_example | R Documentation |
Example of a meta_table data frame
meta_table_example
a dataset with 10 columns and 3 example rows
Section label to help subdivide a report
title of each individual item in a repoert
optional subtitle values. Use the empty string if no subtitle wanted.
the tem number, to use for link up with
attach_pop
, write_table
,
write_ggplot
.
the name of the population to use for the item. See
create_popn_envir
.
takes values "portrait" or "landscape" to determine the page orientation for each item
takes values "normal" or "narrow" to determine the page margin for each item
takes values "table", "figure", or far more rarely "text".
create_word_xml
will expect there to exist 'table_XX.xml',
'figure_XX.png' or 'text_XX.xml' as appropriate where 'XX' is the number
value.
optional footnote. Use the empty string if no subtitle wanted.
optional footnote. Use the empty string if no subtitle wanted.
optional fontsize. Set the font size used in a table in units 1/144 of inch. Defaults to 20 if not set.
This is an example of the structure of a meta_table that must exist
internally to use attach_pop,write_table,
write_ggplot,create_word_xml
. All variables are characters,
including 'number'. The variables 'orientation' and 'item' can only take
specific values.
Typically one would create raw data using a spreadshee editor and read it into R. You may add additional columns to help plan and understand what each table or figure will be, and track progress.
See system.file("extdata", "meta_table.xlsx", package="cctu")
Then you must set it internally using set_meta_table
, and
possible examine the contents with get_meta_table
To preserve troublesome number values '1.10', or '1.1.1' , in excel one can prefix the ' character ( to the left of the # key) before the number value
set_meta_table
get_meta_table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.