search for: tsdem16

Displaying 1 result from an estimated 1 matches for "tsdem16".

Did you mean: dem16
2008 Jun 04
0
for loop or "by" group in EF function
...fit test between predicted (ts2) and observed (Tw) values in the qualV package) to each of the Sites in my data frame. However, when I try the following script, R gives an error message that lists unused arguments, which include the Tw and ts2 that are explicitly in the function: nsc = by(tsdem16, tsdem16['Site'], function(x) EF(Tw, ts2, data = x)) Error in EF(Tw, ts1, data = x) : unused argument(s) (data = list(ts2 = c(11.9967554700039, ... I tried a for loop, but it didn't perform the function on each Site, rather it performed one calculation for the entire data set. Ar...