Description Usage Arguments Details Author(s) Examples
View source: R/reportfunctions.R
not done yet
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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' |
Creates a markdown Crosstable with 1 dimensions and summary of one variable (Mean,Sd,median 1,2nd quantile, Counts)
Stefan Bartels, email@biobits.eu
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.