R plotKML google earth object name incorrect -
i trying create kml files in loop r. variable names dynamic have use assign() , get() create , use spatial dataframe. example
assign(paste("gasmetsite", sites[n], sep = ""), stidf(latlon, ...) plotkml(get(paste("gasmetsite", sites[n], sep = "")), file=paste(trial_name, " gasmet site ", sites[n], ".kml", sep=""), labelscale=0, color=gasmet2[[n]]$hit, open.kml = false)
the resulting kml file when opened in google earth uses variable name including get/paste command seen below:
what can correct object name "gasmetsite1" - in output of command rather entire command? actual .kml file names correct, listing on left side in google earth has incorrect name.
Comments
Post a Comment