Hi!

I have a data frame and I'm passing the column names and the df name itself 
into the function.  Here is my code:


> str(coal2)
'data.frame':    5006 obs. of  5 variables:
 $ x1        : num  3.99 4.2 4.41 4.62 4.83 ...
 $ x2        : num  1.13 1.13 1.13 1.13 1.13 ...
 $ var1.pred : num  9.91 9.87 9.83 9.79 9.77 ...
 $ var1.var  : num  1.26 1.25 1.25 1.25 1.24 ...
 $ var1.stdev: num  1.12 1.12 1.12 1.12 1.11 ...
> buzz
function(x,y,u) {
    coordinates(u) <- ~x+y
    print(str(u))
    }
> buzz(x=coal2$x1,y=coal2$x2,u=coal2)


Shouldn't I get a print statement, please?

Thanks,
Erin



        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to