[R] Pesky homemade function code
    Sebastian Gibb 
    lists at sebastiangibb.de
       
    Thu Sep 16 11:40:49 CEST 2010
    
    
  
Hello,
why you don't use the last 3 arguments?
>semivario=function(data,ids,times,resids){
> id=unique(data$ids)
...
It seems "data" be a list. In that case the last 3 arguments are useless.
Could you please send us a runable code example. That means some example data 
and your all neede functions (e.g. combinations, because there is the error 
you looking for.)
> Error in combinations(length(data$times[data$ids == id[1]]), 2) :
>   bad value of n
Kind regards,
Sebastian
    
    
More information about the R-help
mailing list