Search code examples
rff

assigning value to row.names of ffdf


I have a ff dataframe variable whose name is created within the code, at each iteration of the loop. I want to set the rownames of this variable to NULL, however the below code doesn't work. Could somebody please suggest a solution?

a="foo"
row.names(eval(parse(text=paste(a, "_USD.ff", sep="")))) <- NULL

Solution

  • I actually found a solution to my problem:

    a="foo"
    eval(parse(text=paste("row.names(", a, "_ATMF_USD.ff)<-NULL", sep="")))
    

    this works.