Learn R Programming

h2o (version 2.8.4.4)

toupper.H2OParsedData: Transform Elements of a Character Vector Into Upper Case

Description

toupper.H2OParsedData, a method for the toupper base method. Obtain and returns an H2OParsedData object.

Usage

## S3 method for class 'H2OParsedData':
toupper(x)

Arguments

x
An H2OParsedData object with a single factor column.

Value

  • An object of class "H2OParsedData".

Details

Converts alphabetic characters from lower to upper case in the English locale. Non-alphabetic characters are left unchanged.

Examples

Run this code
library(h2o)
localH2O <- h2o.init(ip = "localhost", port = 54321, startH2O = TRUE)
df <- data.frame(
  V1 = c("HellO WoR@&^LD", "the dOg ATE", "my friENd BOb Ace", "mEow meOW"),
  V2 = c(92318, 34891.123, 21,99))
hex <- as.h2o(localH2O, df)
toupper(hex$V1)

Run the code above in your browser using DataLab