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: enter image description here

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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -