h2o (version 3.30.1.2)

h2o.year: Convert Milliseconds to Years in H2O Datasets

Description

Convert the entries of an H2OFrame object from milliseconds to years, indexed starting from 1900.

Usage

h2o.year(x)

year(x)

# S3 method for H2OFrame year(x)

Arguments

x

An H2OFrame object.

Value

An H2OFrame object containing the entries of x converted to years

Details

This method calls the function of the MutableDateTime class in Java.

See Also

h2o.month

Examples

Run this code
# 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.year(hdf["ds9"])
# }

Run the code above in your browser using DataCamp Workspace