Learn R Programming

geometa (version 0.6-2)

ISODate: ISODate

Description

ISODate

Usage

ISODate

Arguments

Value

Object of R6Class for modelling an ISO Date

Format

R6Class object.

Fields

date

[ISOBaseDate] the date

dateType

[ISODateType] the date type

Methods

new(xml)

This method is used to instantiate an ISODate

setDate(date)

Sets the date

setDateType(dateType)

Sets the date type

References

ISO 19115:2003 - Geographic information -- Metadata

Examples

Run this code
# NOT RUN {
  md <- ISODate$new()
  md$setDate(ISOdate(2015, 1, 1, 1))
  md$setDateType("publication")
  xml <- md$encode()

# }

Run the code above in your browser using DataLab