{"action":"closed","issue":{"url":"https://api.github.com/repos/ropensci/EML/issues/142","repository_url":"https://api.github.com/repos/ropensci/EML","labels_url":"https://api.github.com/repos/ropensci/EML/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/EML/issues/142/comments","events_url":"https://api.github.com/repos/ropensci/EML/issues/142/events","html_url":"https://github.com/ropensci/EML/issues/142","id":138606700,"number":142,"title":"What are factors related to a spatial dataset? - set_attributes()","user":{"login":"lwasser","id":7649194,"avatar_url":"https://avatars.githubusercontent.com/u/7649194?v=3","gravatar_id":"","url":"https://api.github.com/users/lwasser","html_url":"https://github.com/lwasser","followers_url":"https://api.github.com/users/lwasser/followers","following_url":"https://api.github.com/users/lwasser/following{/other_user}","gists_url":"https://api.github.com/users/lwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/lwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwasser/subscriptions","organizations_url":"https://api.github.com/users/lwasser/orgs","repos_url":"https://api.github.com/users/lwasser/repos","events_url":"https://api.github.com/users/lwasser/events{/privacy}","received_events_url":"https://api.github.com/users/lwasser/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-04T22:35:17Z","updated_at":"2016-03-04T22:36:33Z","closed_at":"2016-03-04T22:36:33Z","body":"Hi @cboettig  -- ok i'm trying to create my own EML file using the package for one of our AOP datasets given that's the IPT i work on now. I'm running into issues with  `set_attributes`. It requires a \r\n\r\n```\r\n# create first raster object\r\nattributes <-\r\ndata.frame(\r\n  attributeName = \"Reflectance\",\r\n   attributeDefinition = \"At sensor reflectance.\",\r\n  measurementScale=\"unitless\",\r\n  accuracy=\".5 meters\",\r\n  stringsAsFactors = FALSE\r\n)\r\n\r\nattributeList <- set_attributes(attributes,\r\n                                factors=NA)\r\n\r\nraster1 <- new(\"spatialRaster\",\r\n               EntityGroup= myEntityGroup)\r\nraster1\r\n```"}}