A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/SebKrantz/collapse/issues/136 below:

Fix internal self-referencing issues when manipulating data.table‘s · Issue #136 · SebKrantz/collapse · GitHub

Thanks for this amazing plugin. I did some very coarse benchmarking about {collapse} and {data.table} and got pretty impressed. Very looking forward to seeing the multi-threaded version as you mentioned by the end of this year. I am trying to replace some of my {data.table} workflow with {collapse}.

Currently settransform() did not work if {collapse} was not attached.

head(collapse::ftransform(airquality, Ozone = -Ozone))
#>   Ozone Solar.R Wind Temp Month Day
#> 1   -41     190  7.4   67     5   1
#> 2   -36     118  8.0   72     5   2
#> 3   -12     149 12.6   74     5   3
#> 4   -18     313 11.5   62     5   4
#> 5    NA      NA 14.3   56     5   5
#> 6   -28      NA 14.9   66     5   6
head(collapse::settransform(airquality, Ozone = -Ozone))
#> Error in ftransform(airquality, Ozone = -Ozone): could not find function "ftransform"

Created on 2021-03-13 by the reprex package (v1.0.0)

BTW, to my understanding, data.table::set* functions are not drop-in replacements for data.table::set*. The latter modifies the passed data internally at the C level which will be memory efficient. But collapse::settransform() did not. In this sense, from a performance perspective, it makes no difference between airquality <- collapse::ftransform(airquality, Ozone = -Ozone) and collapse::settransform(airquality, Ozone = -Ozone) right? Please correct if I am wrong.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4