h2o.filterNACols: Filter NA Columns

View source: R/frame.R

h2o.filterNAColsR Documentation

Filter NA Columns

Description

Filter NA Columns

Usage

h2o.filterNACols(data, frac = 0.2)

Arguments

data

A dataset to filter on.

frac

The threshold of NAs to allow per column (columns >= this threshold are filtered)

Value

Returns a numeric vector of indexes that pertain to non-NA columns

Examples

## Not run: 
library(h2o)
h2o.init()

frame <- h2o.createFrame(rows = 6, cols = 2,
                         categorical_fraction = 0.0, 
                         missing_fraction = 0.7, 
                         seed = 123)
h2o.filterNACols(frame, frac = 0.5)
h2o.filterNACols(frame, frac = 0.6)

## End(Not run)

h2o documentation built on May 29, 2024, 4:26 a.m.