bbsummarizetab: bbsummarizetab

Description Usage Arguments Details Author(s) Examples

View source: R/reportfunctions.R

Description

not done yet

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
bbsummarizetab(
  data,
  var,
  group = NULL,
  caption = NULL,
  total = TRUE,
  dec = 1,
  split.tables = 300,
  margin = 3,
  table.continues = "Tabelle wird fortgesetzt",
  groupname = NULL,
  orderby = NULL,
  lang = "EN"
)

Arguments

data

the dataframe to use

var

the variable to count

group

to group "var" by

caption

of the table

total

sum of columns and rows (default= TRUE)

dec

decimal points (default =1)

split.tables

where to split wide tables to separate tables. The default value is 300 characters

margin

index number (1 for rows, etc.)

table.continues

string (default: 'Tabelle wird fortgesetzt') passed to pandoc.table to be used as caption for long (split) without a use defined caption

groupname

column header for groups

orderby

the column to order by

lang

language setting for table headers. Could be one of the following two: 'EN' (default) and 'DE'

Details

Creates a markdown Crosstable with 1 dimensions and summary of one variable (Mean,Sd,median 1,2nd quantile, Counts)

Author(s)

Stefan Bartels, email@biobits.eu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
PatientWeight<-c(66.5,82.2,74.8,70.2,95.7,55.8,59.2,77.2,75.0,75.0,102.8,62.8,65.3)
PatientClass<-c("ClassA","ClassB","ClassB","ClassC","ClassA","ClassC", "ClassA",
               "ClassB","ClassA","ClassC","ClassA","ClassA","ClassA")
df<-as.data.frame(cbind(PatientWeight,PatientClass))
tab<-bbsummarizetab(data=df,var="PatientWeight",group="PatientClass"
                   ,caption="Summary of patients weight",total=T,dec=2,groupname="Classes")
tab

## End(Not run)

biobits/bbreportr documentation built on Dec. 26, 2021, 6:43 a.m.