Displaying 1 result from an estimated 1 matches for "addfilas".
2011 Jul 08
0
homogenized cells problem with IF
...at do not, add new rows to the table with these dates and null
value.
Well, the fact is that R skips the rule and not know that I am wrong. Can
you help?
Copy the script piece of Interest:
daysanyo<-c(31,28,31,30,31,30,31,31,30,31,30,31)
daysanyoBIS<-c(31,29,31,30,31,30,31,31,30,31,30,31)
addfilas<-function(table){
table$year=substr(table[[3]],1,4)
table$mes=substr(table[[3]],5,6)
table$day=substr(table[[3]],7,8)
table=subset(table,table$V3>="20000101" & table$V3<="20101231")
table$year<-as.numeric(table$year)
table$mes<-as.numeric(table$mes)
table$day&...