Skip to content

rleid on vector drop names by reference on it's input #1419

Closed

Description

@jangorecki

latest 1.9.7

library(data.table)
x = c("a"=TRUE, "b"=FALSE)
print(x)
#    a     b 
# TRUE FALSE
r = rleid(x)
print(x)
# [1]  TRUE FALSE
R version 3.2.2 (2015-08-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.3 LTS

locale:
 [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C               LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8     LC_MONETARY=en_GB.UTF-8    LC_MESSAGES=en_GB.UTF-8   
 [7] LC_PAPER=en_GB.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] R6_2.1.1         data.table_1.9.7

loaded via a namespace (and not attached):
[1] tools_3.2.2  Rserve_1.7-3 rolap_0.1    chron_2.3-47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions