Closed eepoor closed 5 years ago
It looks like the error comes from the timestamp. Could either create a small reproducible data set, or send me a small subset of the data that reproduces the error?
Hi,
I'm not sure if responding to this email works, but attached is a subset of the data I'm working with. I've tried importing the csv with the native timestamp field, and also creating a timestamp field with lubridate. I've also tried including the row labels (bear ID), and removing them to see if that was an issue.
Any help is appreciated!
Erin
On Thu, Mar 28, 2019 at 2:55 AM jmsigner notifications@github.com wrote:
It looks like the error comes from the timestamp. Could either create a small reproducible data set, or send me a small subset of the data that reproduces the error?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jmsigner/amt/issues/3#issuecomment-477472171, or mute the thread https://github.com/notifications/unsubscribe-auth/AuvGlBvG53gTIrMCMZQTLqr834qMlm_xks5vbGdagaJpZM4cO5Dt .
-- Erin E. Poor, PhD
Post-Doctoral Associate 1433 Animal Sciences Environmental Science & Technology University of Maryland College Park, MD 20740 USA Ph. +1 301 405 8373 Skype. erinpoor
Hi Erin,
I am affraid the attachment did not make it through, just send it to: jmsigner@gmail.com.
Best, Johannes
On Thu, Mar 28, 2019 at 8:20 PM eepoor notifications@github.com wrote:
Hi,
I'm not sure if responding to this email works, but attached is a subset of the data I'm working with. I've tried importing the csv with the native timestamp field, and also creating a timestamp field with lubridate. I've also tried including the row labels (bear ID), and removing them to see if that was an issue.
Any help is appreciated!
Erin
On Thu, Mar 28, 2019 at 2:55 AM jmsigner notifications@github.com wrote:
It looks like the error comes from the timestamp. Could either create a small reproducible data set, or send me a small subset of the data that reproduces the error?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jmsigner/amt/issues/3#issuecomment-477472171, or mute the thread < https://github.com/notifications/unsubscribe-auth/AuvGlBvG53gTIrMCMZQTLqr834qMlm_xks5vbGdagaJpZM4cO5Dt
.
-- Erin E. Poor, PhD
Post-Doctoral Associate 1433 Animal Sciences Environmental Science & Technology University of Maryland College Park, MD 20740 USA Ph. +1 301 405 8373 Skype. erinpoor
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/jmsigner/amt/issues/3#issuecomment-477735951, or mute the thread https://github.com/notifications/unsubscribe-auth/AAxoA_AuF3fw-o2AGWjXmkjntCLi_uF8ks5vbRXhgaJpZM4cO5Dt .
Hello, I've been trying to make a track with some gps data. My columns are time, date, longitude, latitude and a datetime column I've created. I keep getting an error as follows:
Error: invalid column index : NA for variable: 't1' = 'NA'
Here's the code I've been using
ap<-read.csv("bear602.csv", header=T) ap summary(ap)
ap$datetime<-as.POSIXct(lubridate::mdy(ap$GMT_DATE) + lubridate::hms(ap$GMT_TIME)) projt <- CRS("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs")
tbl<-as.tbl(ap) .x<-as.numeric(tbl$LONGITUDE) .y<-as.numeric(tbl$LATITUDE) .t<-as_datetime(tbl$datetime)
tr2<-make_track(tbl, .x, .y, .t, crs = projt)
and the error: .t found, creating
track_xyt
. Error: invalid column index : NA for variable: 't1' = 'NA'I've tried transforming the coordinates, changing column names, using only the necessary columns, etc to no avail. Could you provide guidance?