MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / components

Function components

inst/tinytest/cpp/dates.cpp:68–75  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

66
67// [[Rcpp::export]]
68List components() {
69 Date d = Date(2005,12,31);
70 return List::create(Named("day") = d.getDay(),
71 Named("month") = d.getMonth(),
72 Named("year") = d.getYear(),
73 Named("weekday") = d.getWeekday(),
74 Named("yearday") = d.getYearday());
75}
76
77// [[Rcpp::export]]
78SEXP vector_Date() {

Callers

nothing calls this directly

Calls 7

NamedFunction · 0.85
DateClass · 0.50
getDayMethod · 0.45
getMonthMethod · 0.45
getYearMethod · 0.45
getWeekdayMethod · 0.45
getYeardayMethod · 0.45

Tested by

no test coverage detected