Skip to content

Commit

Permalink
fixed #101
Browse files Browse the repository at this point in the history
  • Loading branch information
schochastics committed May 11, 2024
1 parent 023facb commit 4c1da75
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: webtrackR
Title: Preprocessing and Analyzing Web Tracking Data
Version: 0.3.1
Version: 0.3.1.9000
Authors@R: c(
person("David", "Schoch", email = "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2952-4812")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# webtrackR 0.3.1.9000

* fixed undesired copy of data.table objects #101

# webtrackR 0.3.1

* fixed CRAN problems with tests
Expand Down
3 changes: 2 additions & 1 deletion R/wt_dt.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ as.wt_dt <- function(x, timestamp_format = "%Y-%m-%d %H:%M:%OS", tz = "UTC",
x[, varnames[["timestamp"]] := as.POSIXct(get(varnames[["timestamp"]]), format = timestamp_format)]
data.table::setnames(x, unname(varnames), names(varnames))
data.table::setorder(x, panelist_id, timestamp)
class(x) <- c("wt_dt", class(x))
# class(x) <- c("wt_dt", class(x))
data.table::setattr(x, "class", c("wt_dt", class(x)))
x
}

Expand Down

0 comments on commit 4c1da75

Please sign in to comment.