Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,31 +148,31 @@

### New Features

- Function `funique` and `fduplicated` gain an additional argument `fromLast=FALSE` to indicate whether the search should start from the end or beginning [PR#11](https://github.com/2005m/kit/pull/11).
- Function `funique` and `fduplicated` gain an additional argument `fromLast=FALSE` to indicate whether the search should start from the end or beginning [PR#11](https://github.com/fastverse/kit/pull/11).

- Functions `pall`, `pany`, `pmean`, `pprod` and `psum` accept `data.frame` as input [PR#15](https://github.com/2005m/kit/pull/15). Please see documentation for more information.
- Functions `pall`, `pany`, `pmean`, `pprod` and `psum` accept `data.frame` as input [PR#15](https://github.com/fastverse/kit/pull/15). Please see documentation for more information.

- Function `charToFact` is equivalent to to base R `as.factor` but is much quicker and only converts character vector to factor. Note that it is parallelised. For more details and benchmark please see `?kit::charToFact`.

- Function `psort` is experimental and equivalent to to base R `sort` but is only for character vector. It can sort by "C locale" or by "R session locale". For more details and benchmark please see `?kit::psort`.

### Notes

- A few OpenMP directives were missing for functions `vswitch` and `nswitch` for character vectors. These have been added in [PR#12](https://github.com/2005m/kit/pull/12).
- A few OpenMP directives were missing for functions `vswitch` and `nswitch` for character vectors. These have been added in [PR#12](https://github.com/fastverse/kit/pull/12).

- Function `funique` was not preserving attributes for character, logical and complex vectors/data.frames. Thanks to Sebastian Krantz (@SebKrantz) for bringing that to my attention. This has been fixed in [PR#13](https://github.com/2005m/kit/pull/13).
- Function `funique` was not preserving attributes for character, logical and complex vectors/data.frames. Thanks to Sebastian Krantz (@SebKrantz) for bringing that to my attention. This has been fixed in [PR#13](https://github.com/fastverse/kit/pull/13).

- Functions `funique` and `uniqLen` should now be faster for `factor` and `logical` vectors [PR#14](https://github.com/2005m/kit/pull/14).
- Functions `funique` and `uniqLen` should now be faster for `factor` and `logical` vectors [PR#14](https://github.com/fastverse/kit/pull/14).

# kit 0.0.5 <small>(2020-11-21)</small>

### New Features

- Function `uniqLen(x)` is equivalent to base R `length(unique(x))` and `uniqueN` in package [data.table](https://CRAN.R-project.org/package=data.table). Function `uniqLen`, implemented in C, supports vectors, `data.frame` and `matrix`. It should be faster than these functions. For more details and benchmark please see `?kit::uniqLen`.

- Function `vswitch` now supports mixed encoding and gains an additional argument `checkEnc=TRUE`. Thanks to Xianying Tan (@shrektan) for the request and review [PR#7](https://github.com/2005m/kit/pull/7).
- Function `vswitch` now supports mixed encoding and gains an additional argument `checkEnc=TRUE`. Thanks to Xianying Tan (@shrektan) for the request and review [PR#7](https://github.com/fastverse/kit/pull/7).

- Function `nswitch` is a nested version of function `vswitch` and also supports mixed encoding. Please see please see `?kit::nswitch` for further details. Thanks to Xianying Tan (@shrektan) for the request and review [PR#10](https://github.com/2005m/kit/pull/10).
- Function `nswitch` is a nested version of function `vswitch` and also supports mixed encoding. Please see please see `?kit::nswitch` for further details. Thanks to Xianying Tan (@shrektan) for the request and review [PR#10](https://github.com/fastverse/kit/pull/10).

### Notes

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![CRAN](https://badges.cranchecks.info/flavor/release/kit.svg)](https://cran.r-project.org/web/checks/check_results_kit.html)
[![License: GPL v3](https://img.shields.io/github/license/fastverse/kit)](https://www.gnu.org/licenses/gpl-3.0)
[![R-CMD-check.yaml](https://github.com/fastverse/kit/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/fastverse/kit/actions/workflows/R-CMD-check.yaml)
[![Coverage Status](https://codecov.io/gh/2005m/kit/graph/badge.svg)](https://codecov.io/github/2005m/kit?branch=master)
[![Coverage Status](https://codecov.io/gh/fastverse/kit/graph/badge.svg)](https://codecov.io/github/fastverse/kit?branch=master)
[![downloads](https://cranlogs.r-pkg.org/badges/kit)](https://www.r-pkg.org/pkg/kit)
[![kit status badge](https://fastverse.r-universe.dev/badges/kit)](https://fastverse.r-universe.dev)

Expand Down
Loading