title: C stack limit reached when creating trip object
body: <p>I’m trying to create a trip object in the trip package in order to filter spatial data by speed and angle of turn. However, when I try to create the object I receive the error ‘C stack usage “big number “ is too close to the limit.</p>
  <p>From reading this issue seems to mostly occur due to a syntax error or through creating a recursive function. Looking through my code I can’t find anything that would do this.</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>X</th>
  <th>Y</th>
  <th>Prg.no</th>
  <th>dati</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>343993.3</td>
  <td>478410.9</td>
  <td>5132</td>
  <td>11/06/2016 10:02:00</td>
  </tr>
  <tr>
  <td>344579.8</td>
  <td>478809.7</td>
  <td>5123</td>
  <td>12/06/2016 01:23:00</td>
  </tr>
  <tr>
  <td>344333.2</td>
  <td>478809.6</td>
  <td>5123</td>
  <td>12/06/2016 01:30:00</td>
  </tr>
  <tr>
  <td>344548.9</td>
  <td>478778.5</td>
  <td>5123</td>
  <td>12/06/2016 01:34:00</td>
  </tr>
  <tr>
  <td>344116.5</td>
  <td>478349.3</td>
  <td>5123</td>
  <td>12/06/2016 03:28:00</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>(where X and Y are coordinated in UTM format)</p>
  <pre><code>#import csv
  nash &lt;- read.csv(&quot;Nash.combined.UTM.unique.csv&quot;, header=TRUE, sep = &quot;,&quot;,
                   stringsAsFactors=TRUE)
  
  nashDF&lt;-as.data.frame(nash) #convert csv to dataframe
  nashDF$dati = as.POSIXct(nashDF$dati, format = c(&quot;%d/%m/%Y,%I:%M:%S&quot;)) #change format of time to POSIXct
  sp::coordinates(nashDF) &lt;- ~X+Y #set coordinates
  sp::proj4string(nashDF) &lt;- sp::CRS(&quot;+init=epsg:32643&quot;, doCheckCRSArgs = FALSE)
  
  tr &lt;- trip(nashDF, c(&quot;dati&quot;, &quot;Platform.ID&quot;)) #create trip object
  
  Error: C stack usage  15923184 is too close to the limit
  </code></pre>