search for: totaldif

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

Did you mean: total_in
2012 Mar 05
1
Error in file(fname, "r") : invalid 'description' argument when running maptools' readAsciiGrid on a dataframe
...t;) B <- readAsciiGrid(surfB, colname="b") sum(A$a - B$b) } attach(mydataframe) difcount(surfA[1],surfB[1]) #this test part works fine and gives me the correct result #But when I try to do a batch job by running the function against each row of the table it fails mydataframe["TotalDif"] <- difcount(surfA,surfB) Error in file(fname, "r") : invalid 'description' argument This error seems to be coming from the readAsciiGrid function, but its being given the same entry so I don't understand why it fails. Any ideas? Thanks, Colin