powered by
remove observation with too many 0 values
data_cleaning(data, x = round(ncol(data) * 0.3))
a dataframe without too many 0 observations
dataframe of imported dataset, must have first column as ID
scales indicate how many 0 to remove
data_cleaning(matrix(c(c(0,1,1,0,0,1,1), c(2,1,0,3,5,2,2), c(1,1,3,2,4,5,1)), 3, 7), 2)
Run the code above in your browser using DataLab