Skip to content
Prev 7679 / 29559 Next

problem writing GML file

Hi Barry,
Thanks for the advice! debug() helped me figure it out. If I
understand correctly it was because I did have a logical. As I read it
the file can't have a logical.

...
 dfcls <- sapply(slot(obj, "data"), function(x) class(x)[1])
    known <- c("numeric", "character", "factor", "POSIXt", "integer")
    if (!all(dfcls %in% known))
        stop("unknown data type")
....

When I removed the logical column it worked just fine.
Thanks again for all of your help,

Michael