ID EN
Date & Time

Ops.Date

R Base 3.6.2 🇮🇩 Bahasa Indonesia

Operator untuk kelas "Tanggal". Ada metode Ops dan metode khusus untuk + dan - untuk kelas Tanggal.

Syntax

R
<code>date + x</code>
<code>x + date</code>
<code>date - x</code>
<code>date1 lop date2</code>

Arguments

Parameter Deskripsi
date date objects
date1, date2 date objects or character vectors. (Character vectors are converted by as.Date.)
x a numeric vector (in days) or an object of class "difftime", rounded to the nearest whole day.
lop One of ==, !=, <, <=, > or >=.

Details

x tidak perlu bilangan bulat jika ditentukan sebagai vektor numerik, tetapi lihat komentar tentang pecahan hari di bantuan untuk Tanggal.

Contoh

Example
R
# NOT RUN {
(z <- Sys.Date())
z + 10
z < c("2009-06-01", "2010-01-01", "2015-01-01")
# }