vctrs icon indicating copy to clipboard operation
vctrs copied to clipboard

Generic programming with typed R vectors

Results 204 vctrs issues
Sort by recently updated
recently updated
newest added

From https://github.com/r-spatial/sf/issues/1812

This _could be_ related to https://github.com/r-lib/vctrs/issues/180 and how `anyDuplicated.vctrs_vctr` was original conceived. `vctrs:::anyDuplicated.vctrs_vctr` uses `vec_duplicate_any` which produces results _similar to_ `anyDuplicated()` (as documented) but with the exported S3 method the...

Inspired by the `keep` argument of https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.duplicated.html - `vec_duplicate_detect()` current detects the first and subsequent duplicate values. - `duplicated()` detects only the subsequent duplicate values. - `duplicated(fromLast = TRUE)` detects...

feature
op:equal-compare-hash

See https://github.com/r-lib/vctrs/pull/1428#issuecomment-902130258 - `vec_drop_missing()` would be useful in `vec_interleave()` https://github.com/r-lib/vctrs/pull/1448/files#diff-8cc239533824402ee3430f8e3e98acb4e6c21a0aacad4bd0063b26de583a9e79R43 - `vec_slice_complete()` is a nice `na.omit()` replacement

feature

I noticed a strange issue if `dplyr` is loaded while I implemented a subsetting method for class `pseries` in pkg `plm`. I think I boild it down to `vctrs::vec_c` hence...

This vignette https://vctrs.r-lib.org/reference/howto-faq-coercion.html seems to have the section "Implementing vec_ptype2()" twice, back to back, as well as the section "Implementing vec_cast()"

``` r x This R function is purely indicative and should never be called. ``` Created on 2021-03-03 by the [reprex package](https://reprex.tidyverse.org) (v1.0.0) From https://github.com/tidyverse/dplyr/issues/5779

type:shape
conditions

`vec_assign()` needs less memory and is way faster for lists than `vec_slice()` ``` r library(rlang) library(vctrs) x_org

I recently re-implemented an existing S3 class using vctrs and have noticed that `sapply()` / `lapply()` don't necessarily transfer the names of the input to the output. (I was not...

For extension packages that implement some of `vec_math()`, but not all of it