Displaying 1 result from an estimated 1 matches for "fdax".
Did you mean:
fax
2006 Jul 20
3
Question about functions in R
I tried to make the following function:
function(x, y){
dates<-intersect(x[,1],y[,1])
m<-matrix(NA,length(dates),3)
m[,1]<-dates
j<-1
k<-1
for(i in fdax[,1]){
if(is.element(i,dates)){
m[j,3]<-as.numeric(fdax[k,2])
j<-j+1
}
k<-k+1
}
return(m)
}
When I try to import it into R with edit( file="name.txt",
editor="someeditor") I get the response that there is an error on the
line wh...