library(datawoman)

Example 1:

df1 <- df2 <- df3 <- df4 <- iris[1:4]
df1$Petal.Width <- as.character(df1$Sepal.Width)
df2$Sepal.Width <- NULL
df3 <- df4[1:5,]
comcomcol(df1, df2, df3, df4)

Example 2

df1 <- df2 <- df3 <- df4 <- iris[1:4]
n <- 1:nrow(iris)
df1 <- df1[sample(n, 10),]
df2 <- df2[sample(n, 50),]
df3 <- df3[sample(n, 100),]
comcomcol(df1, df2, df3, df4, custom_fun = mean)

Example 4:

df1 <- df2 <- df3 <- df4 <- mtcars
df3$mpg <- NULL
df2$hp <- NULL
comcomcol(df1, df2, df3, df4, custom_fun = function(x) round(median(x^3)))

Example 4

comcomcol(iris)

Example 5

comcomcol(iris, custom_fun = mean)


sachserf/datawoman documentation built on May 7, 2019, 11:15 a.m.