search for: convcalendar

Displaying 4 results from an estimated 4 matches for "convcalendar".

2009 Jan 09
0
ConvCalendars
A new package ConvCalendars is on CRAN, in response to requests earlier this week. It performs conversions between the Gregorian calendar and other calendars including the Persian (Jalali) calendar used in Iran and Afghanistan and the Hebrew calendar used in Israel. All the heavy lifting is done by C code from http:/...
2009 Jan 09
0
ConvCalendars
A new package ConvCalendars is on CRAN, in response to requests earlier this week. It performs conversions between the Gregorian calendar and other calendars including the Persian (Jalali) calendar used in Iran and Afghanistan and the Hebrew calendar used in Israel. All the heavy lifting is done by C code from http:/...
2017 Nov 08
1
Help Converting Calendars
...and not sure what to do. For example ... dates <- c("2017-10-1","2017-10-2","2017-10-3") myData <- data.frame(dates) myData$dates <- as.Date(myData$dates, format = "%Y-%m-%d") > myData dates 1 2017-10-01 2 2017-10-02 3 2017-10-03 library(ConvCalendar) p.dates <- as.OtherDate(myData$dates,"persian") # after convering I get the following list > p.dates $day [1] 9 10 11 $month [1] 7 7 7 $year [1] 1396 1396 1396 attr(,"row.names") [1] 1 2 3 attr(,"class") [1] "OtherDate" attr(,"calendar")...
2017 Nov 08
1
Help Converting Calendars
...and not sure what to do. For example ... dates <- c("2017-10-1","2017-10-2","2017-10-3") myData <- data.frame(dates) myData$dates <- as.Date(myData$dates, format = "%Y-%m-%d") > myData dates 1 2017-10-01 2 2017-10-02 3 2017-10-03 library(ConvCalendar) p.dates <- as.OtherDate(myData$dates,"persian") # after convering I get the following list > p.dates $day [1] 9 10 11 $month [1] 7 7 7 $year [1] 1396 1396 1396 attr(,"row.names") [1] 1 2 3 attr(,"class") [1] "OtherDate" attr(,"calendar")...