Learn R Programming

doudpackage

The goal of doudpackage is to Creates the “table one” of biomedical papers. Fill it with your data and the name of the variable which you’ll make the group(s) out of and it will make univariate, bivariate analysis and parse it into HTML.

Installation

You can install the development version of doudpackage from GitHub with:

# install.packages("devtools")
devtools::install_github("tiago972/doudpackage")

Example

library(doudpackage)
## basic example code
data(iris)
library(stringi)
iris$fact_1<-as.factor(as.character(sample(1:5, 150, replace = TRUE)))
n_na<-sample(1:150, 30)
iris[n_na, "fact_1"]<-NA
iris$fact_2<-as.factor(as.character(stri_rand_strings(150, 1, '[A-B]')))
iris$num<-runif(150, min = 0, max = 100)
n_na<-sample(1:150, 5)
iris[n_na, "num"]<-NA
iris_test<-descTab(iris, group = "Species", na.print = TRUE)
testParse<-parseClassFun(iris_test, levels_to_keep = list("fact_2" =  "A"),
group_rows_labels = list("Size" = c("Petal.Length", "Petal.Width"),
"My_f" = c("num", "fact_2")))

setosa

versicolor

virginica

Total

Copy Link

Version

Install

install.packages('doudpackage')

Monthly Downloads

158

Version

2.1.0

License

GPL (>= 3)

Maintainer

Edouard Baudouin

Last Published

June 29th, 2023

Functions in doudpackage (2.1.0)

parseClass

S4 class initialization function
[,VarGroup-method

Method to access S4 Var elements
initialize,VarGroup-method

S4 class initialization function
[<-,Var-method

Method to access S4 Var elements
[,parseClass-method

Method to access S4 Var elements
listVar-class

S4 class
[<-,VarGroup-method

Method to access S4 Var elements
[<-,parseClass-method

Method to modify S4 Var elements
anaBiv,data.frame,character-method

anaBiv data.frame function
descTab

Generic function to create a table of descriptive analysis of a dataset
initialize,parseClass-method

S4 class initialization function
ft_ana_biv

This function is depreciated, please use anaBiv(). anaBiv()
Var-class

S4 class
ft_parse

This function is depreciated, please use parseClassFun()
ft_desc_tab

This function is depreciated, please use anaBiv(). descTab()
[,Var-method

Method to access S4 Var elements
anaBiv,listVar,character-method

anaBiv data.frame function
initialize,Var-method

S4 class initialization function
VarGroup-class

S4 class
anaBiv

anaBiv generic function
parseClassFun,parseClass-method

Make the LaTeX/HTML table
Var

S4 class initialization function
parseClassFun

Make the LaTeX/HTML table. Generic function
parseClass-class

S4 class