Displaying 1 result from an estimated 1 matches for "data_fit".
Did you mean:
datafit
2007 Jan 22
1
Query about using try block
Hi
Thanks for your response.
However I seem to be doing something wrong regarding
the try block resulting in yet another error described
below.
I have a function that takes in a file name and
does the fit for the data in that file.
Hence based on your input, I tried
try ( (fit = lm(y~x, data = data_fitting)), silent =
T);
I left the subsequent lines of my code unchanged.
coeffs = as.list(coef(fit);
lambda = exp(coeffs$x)....
After the change using try, when I tried to resume
processing under R as follows
source("fitting.R")
for filename in list { process(filename); }
It says "Ca...