You are storing the results in to a vector that is converted to
numeric; that is why you see the numbers. Try this:
> dataval=as.Date("2011/07/01")
> date_val=seq(dataval,length=260,by="-7 day")
> date_inizio=c()
> date_condizione=c()
> for (k in 1:length(date_val)){
+ date_inizio[
I have to construct a vector of date with a cycle "for". I use the function
"seq", but when I allocate in a vector, this becomes a number!!!
How do I have? thank you
Example:
dataval=as.Date("2011/07/01")
date_val=seq(dataval,length=260,by="-7 day")
date_inizio=c()
date_con
2 matches
Mail list logo