h2o.as_date: Convert between character representations and objects of Date...

View source: R/frame.R

h2o.as_dateR Documentation

Convert between character representations and objects of Date class

Description

Functions to convert between character representations and objects of class "Date" representing calendar dates.

Usage

h2o.as_date(x, format, ...)

Arguments

x

H2OFrame column of strings or factors to be converted

format

A character string indicating date pattern

...

Further arguments to be passed from or to other methods.

Examples

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

f <- "https://s3.amazonaws.com/h2o-public-test-data/smalldata/jira/v-11-eurodate.csv"
hdf <- h2o.importFile(f)
h2o.as_date(hdf["ds5"], "%d.%m.%y %H:%M")

## End(Not run)

h2o documentation built on Aug. 9, 2023, 9:06 a.m.