Learn R Programming

h2o (version 2.8.4.4)

trim: Trim the leading and trailing white space.

Description

h2o.trim, a method for removing leading and trailing white space.

Usage

trim(x)

Arguments

x
An H2OParsedData object with a single factor column.

Details

Remove trailing and leading white space.

Examples

Run this code
library(h2o)
localH2O = h2o.init()
fr <- data.frame(
    x = c("   asdfhuash ", "  # a    ", "hello    "),
    y = c(1,2,3)
)
hex <- as.h2o(localH2O, fr)
trim(hex$x)

Run the code above in your browser using DataLab