{"action":"opened","issue":{"url":"https://api.github.com/repos/hfrick/trackeR/issues/1","repository_url":"https://api.github.com/repos/hfrick/trackeR","labels_url":"https://api.github.com/repos/hfrick/trackeR/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/hfrick/trackeR/issues/1/comments","events_url":"https://api.github.com/repos/hfrick/trackeR/issues/1/events","html_url":"https://github.com/hfrick/trackeR/issues/1","id":158018909,"number":1,"title":"Missing time","user":{"login":"lgatto","id":384198,"avatar_url":"https://avatars.githubusercontent.com/u/384198?v=3","gravatar_id":"","url":"https://api.github.com/users/lgatto","html_url":"https://github.com/lgatto","followers_url":"https://api.github.com/users/lgatto/followers","following_url":"https://api.github.com/users/lgatto/following{/other_user}","gists_url":"https://api.github.com/users/lgatto/gists{/gist_id}","starred_url":"https://api.github.com/users/lgatto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgatto/subscriptions","organizations_url":"https://api.github.com/users/lgatto/orgs","repos_url":"https://api.github.com/users/lgatto/repos","events_url":"https://api.github.com/users/lgatto/events{/privacy}","received_events_url":"https://api.github.com/users/lgatto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-01T22:13:04Z","updated_at":"2016-06-01T22:13:04Z","closed_at":null,"body":"I am trying to read a TCX file (exported from MapMyRun, I believe), but am missing the time and probably speed fields.\r\n\r\n```r\r\n> head(runDF <- readTCX(\"~/Documents/Runs/Ran 10.11 km on 28-04-2016.tcx\"))\r\n  time latitude longitude altitude distance heart.rate speed cadence power\r\n1 <NA> 52.22708 0.1185190       60  0.00000         NA    NA      NA    NA\r\n2 <NA> 52.22716 0.1186463       60 12.24020         NA    NA      NA    NA\r\n3 <NA> 52.22724 0.1187061       61 22.51196         NA    NA      NA    NA\r\n4 <NA> 52.22734 0.1187619       63 33.56483         NA    NA      NA    NA\r\n5 <NA> 52.22744 0.1188195       63 45.60642         NA    NA      NA    NA\r\n6 <NA> 52.22754 0.1188363       64 57.22373         NA    NA      NA    NA\r\n```\r\n\r\nLooking at the file itself, and parsing the time manually, I don't understand why it doesn't work. Here's the first track point:\r\n\r\n```\r\n<Trackpoint>\r\n   <Time>\r\n     2016-04-28T14:32:24.734000+00:00\r\n   </Time>\r\n   <Position>\r\n     <LatitudeDegrees>\r\n     52.2270829\r\n     </LatitudeDegrees>\r\n     <LongitudeDegrees>\r\n     0.11851899\r\n     </LongitudeDegrees>\r\n   </Position>\r\n   <AltitudeMeters>\r\n     60.0\r\n   </AltitudeMeters>\r\n   <DistanceMeters>\r\n     0.0\r\n   </DistanceMeters>\r\n</Trackpoint>\r\n```\r\n\r\nand the time parse manually with `as.POSIXct` (as documented in `?readTCX`)\r\n\r\n```r\r\n> as.POSIXct(\"2016-04-28T14:32:24.734000+00:00\")\r\n[1] \"2016-04-28 BST\"\r\n```\r\n\r\nAny idea?"}}
{"actor":{"display_login":"lgatto"}}