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)

See Also

Other datetime_funcs: add_months, add_months; date_add, date_add; date_format, date_format; date_sub, date_sub; datediff, datediff; dayofmonth, dayofmonth; dayofyear, dayofyear; from_unixtime, from_unixtime; from_utc_timestamp, from_utc_timestamp; hour, hour; minute, minute; months_between, months_between; month, month; next_day, next_day; quarter, quarter; second, second; to_date, to_date; to_utc_timestamp, to_utc_timestamp; unix_timestamp, unix_timestamp, unix_timestamp, unix_timestamp; weekofyear, weekofyear; year, year

Examples

## Not run: last_day(df$c)

[Package SparkR version 1.5.1 Index]