Learn R Programming

PMwR (version 1.1-0)

PMwR-internal: Internal Functions

Description

Internal functions, not exported from the PMwR namespace.

Usage

.timestamp(x)
.timestamp(x) <- value

.may_be_Date(x, ...)

Arguments

Author

Enrico Schumann

Details

.timestamp extracts or replaces an object's timestamp.

.may_be_Date checks whether a vector could be coerced to class Date, in which case it evaluates to (a single) TRUE; otherwise it returns FALSE. If TRUE, the actual Dates are attached as an attribute Date.

References

Schumann, E. (2025) Portfolio Management with R. https://enricoschumann.net/PMwR/