search for: derdata

Displaying 2 results from an estimated 2 matches for "derdata".

2012 Nov 10
4
help on date dataset
...extraction. The result must be: a new subdata with one line per date , per PAYS,per nb_pays.ILI (by summing all the number in variable nb_pays.ILI per date,per country) and the date must be between date1 and date2. I sart to do somethings like that extraction=function(date1,date2) {date<-derdata[["DATE"]] date sort(date) PAYS<-derdata[["PAYS"]] nb_pays.ILI<-derdata[["nb_pays.ILI."]] test1<-as.character(date,"%d %m %y") test1 #the first date date1<- "04 03 2009" date1 <- strptime(date1, "%d %m %...
2012 Dec 04
6
Help for a function
Hello all, I need a help. I am modeling a disease and a create a R function like that: Lambda<-function (x,date1,r,h,a){ ndate1 <- as.Date(date1, "%d/%m/%Y") t1 <- as.numeric(ndate1) x[order(x$i),] t <-x[,"t"] i <-x[,"i"] CONTAGIEUX <-x[,"CONTAGIEUX"] while ( t1 < min(t) ){ for (i in 1:length(i) ){ {for (j in