Skip to content

Releases: NicChr/cheapr

cheapr 0.9.9

14 Oct 17:59
Compare
Choose a tag to compare
  • New functions cheapr_var and cheapr_rev.

  • get_breaks has been improved and a few small bugs have been fixed.

  • as_discrete gains a new argument inf_label.

  • Safety improvements to as_discrete.

  • Removed internal C++ functions as package installation was failing for
    some machines.

cheapr 0.9.3

29 Jul 16:29
Compare
Choose a tag to compare
  • Range based subsetting, e.g. sset(x, 1:10) should now be faster.

  • New functions val_count and which_val for common scalar operations.

  • Some functions gain a 'names' argument.

  • Replaced calls to STRING_PTR with STRING_PTR_RO to satisfy R package check results.

  • lag_ should now be somewhat faster.

  • Fixed a small bug in lag2_ that would produce incorrect results when supplying a vector of lags and an order vector.

cheapr 0.9.2

11 May 06:57
Compare
Choose a tag to compare
  • A signed integer overflow bug in lag2_ has been fixed. This occurred when
    supplying NA lags.

  • lag2_ no longer fills the names of named vectors when the fill value is supplied.

cheapr 0.9.1

07 May 07:50
Compare
Choose a tag to compare
  • New function recycle to help recycle R objects to a common size.

  • The set functions that update by reference are now ALTREP aware and
    take a copy when the input is an ALTREP object.

  • New function lag2_ as a generalised solution for complex lags. It supports
    dynamic lag vectors, lags using an order vector, and custom run lengths.
    It doesn't support updating by reference or long vectors.

cheapr 0.9.0

23 Apr 05:09
Compare
Choose a tag to compare
  • New function lag_ for very fast lags and leads on vectors and data frames.
    It includes a set argument allowing users to create a lagged vector
    by reference without copies.

  • set_round has been amended to improve floating point accuracy.

cheapr 0.8.0

14 Apr 08:26
Compare
Choose a tag to compare
  • New 'set' Math operations inspired by 'data.table' and 'collapse'
    that transform data by reference.

  • Fixed an inconsistency of when sequence_() would error when supplied with
    a zero-length size argument.

  • Fixed a protection stack imbalance in count_val(x) when x is NULL.

  • sset has been optimised for wide data frames with many variables.
    It is also faster when applied to a data frame with dates, date-times and factors.

  • In sset, when i is a logical vector it must match the length of x.

  • sset can now handle 'ALTREP' compact real sequences as well.