Jump to content
Ornithology Exchange (brought to you by the Ornithological Council)

Sami

Invited Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Sami

  1. Hi all, 

    I am writing to you because I have a problem with the .deg files from Migration technology geolocators. When I ran this lines:

    ## Immersion temperature and tag data
    aux <- read.table(glue::glue("RawData/{Species}/{tag}.deg"), skip = 20) %>%
      setNames(c("Date", "Time", "Tmin", "Tmax", "Tmean", "wetdry", "Cond")) %>%
      unite(col = "Datetime", c(Date, Time), sep = "", remove = TRUE) %>%
      mutate(Datetime = as.POSIXct(Datetime, format = "%d/%m/%Y %H:%M:%S", tz = "GMT")) %>%
      filter(wetdry >= 2)

    I received this issue: 

    Error in `[.data.frame`(out, setdiff(names(out), names(from_vars))) : undefined columns selected

    Also, I tried this:

    raw.deg<- readMTdeg(paste0(wd, "/RawData/", Species, "/", tag, ".deg"))

    But didn't work either:

    Error in read.table(file, header = FALSE, skip = skip, sep = "\t", col.names = c("Date", : more columns than column names

    Does anyone have an idea how I can fix it?

    Many thanks in advance!

    Best,

    Sami

×
×
  • Create New...