du_split_df: split a large table into smaller tables if there are blank...

Description Usage Arguments Details Value Examples

View source: R/extract_table.R

Description

split a large table into smaller tables if there are blank columns or rows

Usage

1
du_split_df(df, complexity = 1)

Arguments

df

a data frame

complexity

default to 1,number of times to split a data frame by row and column. If number increase by one, one more split(by both row and column) will be performed

Details

1. if you still see entire rows or columns missing. Please increase complexity 2. The list of data frames is roughly ordered from left to right and top to bottom in the original data frame

Value

a list of data frames

Examples

1
2
3
4
5
6
mydf <- as.data.frame(matrix(1:100,nrow = 10))
mydf[5,] <- NA
mydf[,7] <- NA
mydf[,8 ] <- NA
mydf[1,c(1,2,3)] <- NA
du_split_df(mydf)

yusuzech/dfutils documentation built on Dec. 8, 2019, 4:39 p.m.