Displaying 1 result from an estimated 1 matches for "st_rendite_".
Did you mean:
st_rendite
2009 Jan 22
1
looping over a string
...%m.%Y")
Enddatum<-as.Date("31.03.2009","%d.%m.%Y")
Tage<-difftime(Enddatum, Berechnung)
Tage<-as.numeric(substr(format(Tage),1,2))
#maximal interessierend sind 100 Tage (4 Monate)-Differenzen
max_int<-82
Tage<-max_int
max_bob<-82
varnames<-paste("st_rendite_",seq(max_int),sep="")
analyse<-rnorm(10000)
for(i in 1:min(max_bob,max_int)){
assign(varnames[i],diff(log(analyse),i)*100)
}
#Wurzel_t - Approximation ?berpr?fen
varianzen<-paste("var_",seq(Tage),sep="")
for(i in 1:Tage){
#in this line is the error I cann...