last_day {SparkR}R Documentation

last_day

Description

Given a date column, returns the last day of the month which the given date belongs to. For example, input "2015-07-27" returns "2015-07-31" since July 31 is the last day of the month in July 2015.

Usage

## S4 method for signature 'Column'
last_day(x)

last_day(x)

Arguments

x

Column to compute on.

Note

last_day since 1.5.0

See Also

Other datetime_funcs: add_months, add_months, add_months,Column,numeric-method; date_add, date_add, date_add,Column,numeric-method; date_format, date_format, date_format,Column,character-method; date_sub, date_sub, date_sub,Column,numeric-method; datediff, datediff, datediff,Column-method; dayofmonth, dayofmonth, dayofmonth,Column-method; dayofyear, dayofyear, dayofyear,Column-method; from_unixtime, from_unixtime, from_unixtime,Column-method; from_utc_timestamp, from_utc_timestamp, from_utc_timestamp,Column,character-method; hour, hour, hour,Column-method; minute, minute, minute,Column-method; months_between, months_between, months_between,Column-method; month, month, month,Column-method; next_day, next_day, next_day,Column,character-method; quarter, quarter, quarter,Column-method; second, second, second,Column-method; to_date, to_date, to_date,Column-method; to_utc_timestamp, to_utc_timestamp, to_utc_timestamp,Column,character-method; unix_timestamp, unix_timestamp, unix_timestamp, unix_timestamp, unix_timestamp,Column,character-method, unix_timestamp,Column,missing-method, unix_timestamp,missing,missing-method; weekofyear, weekofyear, weekofyear,Column-method; window, window, window,Column-method; year, year, year,Column-method

Examples

## Not run: last_day(df$c)

[Package SparkR version 2.0.2 Index]