search for: alldays

Displaying 6 results from an estimated 6 matches for "alldays".

2012 Dec 08
2
Why my lapply doesn't work with FUN=as.Date
Hi, guys I don't understand why I can apply as.Date to a single item in the list: > as.Date(alldays[4]) [1] "29-03-20" but when I try to lapply as.Date to all the items, i got a sequence of neg numbers: > sapply(alldays[1:4], FUN=as.Date) 03-04-2012 02-04-2012 30-03-2012 29-03-2012 -718323 -718688 -708492 -708857 does anyone know what's wrong here? i am very confu...
2008 Nov 19
2
Exclude holidays in a subset of dates?
...hought the easiest way would be to create a TRUE/FALSE vector corresponding to each day where it is TRUE if a workday, and FALSE if a weekend or holiday. So far I have been able to do this for weekdays: startDate <- as.Date("2008-08-15") endDate <- as.Date("2008-09-15") AllDays <- seq(startDate, endDate, by="day") WorkDays <- ifelse(as.numeric(format(startDate+days-1, "%w"))%%6==0, FALSE, TRUE) But I'm a bit lost as to what to do for the holidays, for example "2008-09-01" is Labor Day in the above range. Is there some procedure t...
2003 May 14
2
number of patients in a hospital on a given date
Dear R-users! I am using R 1.7.0, under Windows XP. Having some hospital discharge data (admission date and discharge date for each patient), I want to get the number of patients in the hospital on a given date. My data look like (simple example): > x <- data.frame(patid=c("pat1", "pat2"), adm.date = c("15.03.2002", "16.03.2002"),
2012 Oct 30
1
pass javascript date variable to rails controller as params
I have an application where jquery fullcalendar is implemented. On day click I need to pass the selected date as params to rails controller. When I alert the date inside dayclick function, I am getting the date in the format of "Tue Oct 30 2012 12:40:20 GMT+0530 (IST)".. But when I pass as params in jquery ajax to rails controller, it is passing blank. How do I get it in rails
2005 Nov 08
2
A Quick and (Very) Dirty Intro to Stats in R
Greetings to all, First off, I want to thank you all for answering any nagging questions I've had over the past few days. I've been in the process of putting together A Quick and (Very) Dirty Intro to Doing Your Statistics in R (which I have posted to http://didemnid.ucdavis.edu/rtutorial.html ) in order to teach an R workshop for the graduate students in my department. This is a
2006 Aug 26
7
Erratic behavior with ferret 0.95 and acts_as_ferret
I am getting this issue also... Does anyone know what this is? When will Acts as Ferret be available for v10? Thanks for your help in desperation! Caspar wrote: > Okay previous post related to me trying to fix this problem with an > upgrade to ferret 0.10.0 but acts as ferret is obviously not compatible > with this new version of ferret. > My app is about to go into production and