{
  "id": 3449,
  "title": "Duplicate callsigns for given flighthistoryid in ASDI files",
  "url": "/competitions/flight/discussion/3449",
  "author_name": "BarrenWuffet",
  "post_date": "2012-12-23T00:37:27.110000",
  "votes": 0,
  "comment_count": 0,
  "views": 1454,
  "content": "<p>There are several situations where a given flighthistoryid is associated with multiple callsigns.&nbsp; Is this correct or a data problem?</p>\r\n<p>Specifically there are ~10 in file : &quot;InitialTrainingSet_rev1/2012_11_23/ASDI/asdiposition.csv&quot;</p>\r\n<p>I found it using this:</p>\r\n<blockquote>\r\n<p>fp3 &lt;- read.csv(file=&quot;InitialTrainingSet_rev1/2012_11_23/ASDI/asdiposition.csv&quot;, header=T)</p>\r\n<p>ddply(fp3, .(flighthistoryid),function(x){<br>\r\n&nbsp;&nbsp; &nbsp;if(length(unique(paste(x$flighthistoryid,&quot;-&quot;,x$callsign ,sep=&quot;&quot;))) &gt; 1){<br>\r\n&nbsp;&nbsp; &nbsp;length(unique(paste(x$flighthistoryid,&quot;-&quot;,x$callsign ,sep=&quot;&quot;)))<br>\r\n&nbsp;&nbsp; &nbsp;}<br>\r\n})<br>\r\n<br>\r\n<br>\r\n</p>\r\n</blockquote>",
  "messages": [
    {
      "id": 18453,
      "postDate": "2012-12-23T00:37:27.110Z",
      "content": "<p>There are several situations where a given flighthistoryid is associated with multiple callsigns.&nbsp; Is this correct or a data problem?</p>\r\n<p>Specifically there are ~10 in file : &quot;InitialTrainingSet_rev1/2012_11_23/ASDI/asdiposition.csv&quot;</p>\r\n<p>I found it using this:</p>\r\n<blockquote>\r\n<p>fp3 &lt;- read.csv(file=&quot;InitialTrainingSet_rev1/2012_11_23/ASDI/asdiposition.csv&quot;, header=T)</p>\r\n<p>ddply(fp3, .(flighthistoryid),function(x){<br>\r\n&nbsp;&nbsp; &nbsp;if(length(unique(paste(x$flighthistoryid,&quot;-&quot;,x$callsign ,sep=&quot;&quot;))) &gt; 1){<br>\r\n&nbsp;&nbsp; &nbsp;length(unique(paste(x$flighthistoryid,&quot;-&quot;,x$callsign ,sep=&quot;&quot;)))<br>\r\n&nbsp;&nbsp; &nbsp;}<br>\r\n})<br>\r\n<br>\r\n<br>\r\n</p>\r\n</blockquote>"
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "18453": ""
  }
}