I created a function that will fill a data frame but I forgot to write return df1 at the end of the function. and the script takes too long to finish. so it’s not feasible to rerun it again.
the function does something like that:
df <- function(df1){
…. some operations on df1
return df1
}
Is there any way that I can access this dataframe from inside the function and then apply more tests on it normally as a global one?
Maybe something like this: myfunc.df1
I do not think it is possible to ‘break-into’ a running R process like that. If your script has already finished, the objects not
returnedare discarded, and thus no longer accessible. Always test your scripts on small datasets if your script takes weeks to finish…