Learn R Programming

idopNetwork (version 0.1.2)

data_cleaning: remove observation with too many 0 values

Description

remove observation with too many 0 values

Usage

data_cleaning(data, x = round(ncol(data) * 0.3))

Value

a dataframe without too many 0 observations

Arguments

data

dataframe of imported dataset, must have first column as ID

x

scales indicate how many 0 to remove

Examples

Run this code
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