Package: vctrs 0.6.5.9000
vctrs: Vector Helpers
Defines new notions of prototype and size that are used to provide tools for consistent and well-founded type-coercion and size-recycling, and are in turn connected to ideas of type- and size-stability useful for analysing function interfaces.
Authors:
vctrs_0.6.5.9000.tar.gz
vctrs_0.6.5.9000.zip(r-4.5)vctrs_0.6.5.9000.zip(r-4.4)vctrs_0.6.5.9000.zip(r-4.3)
vctrs_0.6.5.9000.tgz(r-4.4-x86_64)vctrs_0.6.5.9000.tgz(r-4.4-arm64)vctrs_0.6.5.9000.tgz(r-4.3-x86_64)vctrs_0.6.5.9000.tgz(r-4.3-arm64)
vctrs_0.6.5.9000.tar.gz(r-4.5-noble)vctrs_0.6.5.9000.tar.gz(r-4.4-noble)
vctrs_0.6.5.9000.tgz(r-4.4-emscripten)vctrs_0.6.5.9000.tgz(r-4.3-emscripten)
vctrs.pdf |vctrs.html✨
vctrs/json (API)
NEWS
# Install 'vctrs' in R: |
install.packages('vctrs', repos = c('https://fastverse.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/r-lib/vctrs/issues
Last updated 24 days agofrom:78d9f2b0b2. Checks:OK: 1 WARNING: 8. Indexed: no.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 28 2024 |
R-4.5-win-x86_64 | WARNING | Oct 28 2024 |
R-4.5-linux-x86_64 | WARNING | Oct 28 2024 |
R-4.4-win-x86_64 | WARNING | Oct 28 2024 |
R-4.4-mac-x86_64 | WARNING | Oct 28 2024 |
R-4.4-mac-aarch64 | WARNING | Oct 28 2024 |
R-4.3-win-x86_64 | WARNING | Oct 28 2024 |
R-4.3-mac-x86_64 | WARNING | Oct 28 2024 |
R-4.3-mac-aarch64 | WARNING | Oct 28 2024 |
Exports:%0%allow_lossy_castas_list_ofdata_framedf_castdf_listdf_ptype2fieldfield<-fieldsis_list_ofis_partiallist_all_sizelist_all_vectorslist_check_all_sizelist_check_all_vectorslist_drop_emptylist_oflist_sizeslist_unchopmaybe_lossy_castMISSINGn_fieldsnew_data_framenew_datenew_datetimenew_durationnew_factornew_list_ofnew_orderednew_partialnew_rcrdnew_vctrnum_as_locationnum_as_location2obj_check_listobj_check_vectorobj_is_listobj_is_vectorobj_printobj_print_dataobj_print_footerobj_print_headerobj_strobj_str_dataobj_str_footerobj_str_headerpartial_factorpartial_frames3_registerstop_incompatible_caststop_incompatible_opstop_incompatible_sizestop_incompatible_typetib_casttib_ptype2unspecifiedvec_any_missingvec_arithvec_arith_basevec_arith.Datevec_arith.difftimevec_arith.logicalvec_arith.numericvec_arith.POSIXctvec_arith.POSIXltvec_as_indexvec_as_locationvec_as_location2vec_as_namesvec_as_names_legacyvec_as_subscriptvec_as_subscript2vec_assertvec_assignvec_cvec_castvec_cast_commonvec_cast.charactervec_cast.complexvec_cast.data.framevec_cast.Datevec_cast.difftimevec_cast.doublevec_cast.factorvec_cast.integervec_cast.integer64vec_cast.listvec_cast.logicalvec_cast.orderedvec_cast.POSIXctvec_cast.POSIXltvec_cast.rawvec_cast.vctrs_list_ofvec_cbindvec_cbind_frame_ptypevec_check_listvec_check_sizevec_chopvec_comparevec_countvec_datavec_default_castvec_default_ptype2vec_detect_completevec_detect_missingvec_duplicate_anyvec_duplicate_detectvec_duplicate_idvec_emptyvec_equalvec_equal_navec_expand_gridvec_fill_missingvec_group_idvec_group_locvec_group_rlevec_identify_runsvec_invec_initvec_init_alongvec_interleavevec_isvec_is_emptyvec_is_listvec_locate_matchesvec_locate_sorted_groupsvec_matchvec_mathvec_math_basevec_namesvec_names2vec_ordervec_proxyvec_proxy_comparevec_proxy_equalvec_proxy_ordervec_ptypevec_ptype_abbrvec_ptype_commonvec_ptype_finalisevec_ptype_fullvec_ptype_showvec_ptype2vec_ptype2.AsIsvec_ptype2.charactervec_ptype2.complexvec_ptype2.data.framevec_ptype2.Datevec_ptype2.difftimevec_ptype2.doublevec_ptype2.factorvec_ptype2.integervec_ptype2.integer64vec_ptype2.listvec_ptype2.logicalvec_ptype2.orderedvec_ptype2.POSIXctvec_ptype2.POSIXltvec_ptype2.rawvec_ptype2.vctrs_list_ofvec_rankvec_rbindvec_recyclevec_recycle_commonvec_repvec_rep_eachvec_repeatvec_restorevec_run_sizesvec_seq_alongvec_set_differencevec_set_intersectvec_set_namesvec_set_symmetric_differencevec_set_unionvec_sizevec_size_commonvec_slicevec_slice<-vec_sortvec_splitvec_typevec_type_commonvec_type2vec_unchopvec_uniquevec_unique_countvec_unique_locvec_unrep
Printing vectors nicely in tibbles
Rendered frompillar.Rmd
usingknitr::rmarkdown
on Oct 28 2024.Last update: 2022-06-08
Started: 2020-03-20
Prototypes and sizes
Rendered fromtype-size.Rmd
usingknitr::rmarkdown
on Oct 28 2024.Last update: 2023-10-10
Started: 2018-10-31
S3 vectors
Rendered froms3-vector.Rmd
usingknitr::rmarkdown
on Oct 28 2024.Last update: 2023-10-10
Started: 2018-08-13
Type and size stability
Rendered fromstability.Rmd
usingknitr::rmarkdown
on Oct 28 2024.Last update: 2023-02-24
Started: 2018-10-30
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Default value for empty vectors | %0% |
Construct a data frame | data_frame |
Collect columns for data frame construction | df_list |
Coercion between two data frames | df_cast df_ptype2 tib_cast tib_ptype2 |
FAQ - How is the compatibility of vector types decided? | faq-compatibility-types |
FAQ - Error/Warning: Some attributes are incompatible | faq-error-incompatible-attributes |
FAQ - Error: Input must be a vector | faq-error-scalar-type |
FAQ - How to implement ptype2 and cast methods? | howto-faq-coercion |
FAQ - How to implement ptype2 and cast methods? (Data frames) | howto-faq-coercion-data-frame |
FAQ - Why isn't my class treated as a vector? | howto-faq-fix-scalar-type-error |
Internal FAQ - Implementation of 'vec_locate_matches()' | internal-faq-matches-algorithm |
Internal FAQ - 'vec_ptype2()', 'NULL', and unspecified vectors | internal-faq-ptype2-identity |
Drop empty elements from a list | list_drop_empty |
'list_of' S3 class for homogenous lists | as_list_of is_list_of list_of vec_cast.vctrs_list_of vec_ptype2.vctrs_list_of |
Missing values | missing vec_any_missing vec_detect_missing |
Name specifications | name_spec |
Assemble attributes for data frame construction | new_data_frame |
List checks | list_all_size list_all_vectors list_check_all_size list_check_all_vectors obj_check_list obj_is_list |
FAQ - Is my class compatible with vctrs? | reference-faq-compatibility |
Runs | runs vec_identify_runs vec_run_sizes |
FAQ - How does coercion work in vctrs? | theory-faq-coercion |
FAQ - How does recycling work in vctrs and the tidyverse? | theory-faq-recycling vector_recycling_rules |
Retrieve and repair names | vec_as_names |
Combine many data frames into one data frame | vec_bind vec_cbind vec_rbind |
Combine many vectors into one vector | vec_c |
Cast a vector to a specified type | vec_cast vec_cast.character vec_cast.complex vec_cast.double vec_cast.integer vec_cast.list vec_cast.logical vec_cast.raw vec_cast_common |
Chopping | list_unchop vec_chop |
Compare two vectors | vec_compare |
Count unique values in a vector | vec_count |
Complete | vec_detect_complete |
Find duplicated values | vec_duplicate vec_duplicate_any vec_duplicate_detect vec_duplicate_id |
Equality | vec_equal |
Create a data frame from all combinations of the inputs | vec_expand_grid |
Fill in missing values with the previous or following value | vec_fill_missing |
Initialize a vector | vec_init |
Interleave many vectors into one vector | vec_interleave |
Locate observations matching specified conditions | vec_locate_matches |
Find matching observations across vectors | vec_in vec_match |
Get or set the names of a vector | vec_names vec_names2 vec_set_names |
Order and sort vectors | vec_order vec_sort |
Find the prototype of a set of vectors | vec_ptype vec_ptype_common vec_ptype_show |
Find the common type for a pair of vectors | vec_ptype2 vec_ptype2.character vec_ptype2.complex vec_ptype2.double vec_ptype2.integer vec_ptype2.list vec_ptype2.logical vec_ptype2.raw |
Compute ranks | vec_rank |
Vector recycling | vec_recycle vec_recycle_common |
Useful sequences | vec_init_along vec_seq_along |
Number of observations | list_sizes vec_is_empty vec_size vec_size_common |
Split a vector into groups | vec_split |
Find and count unique values | vec_unique vec_unique_count vec_unique_loc |
Repeat a vector | vec-rep vec_rep vec_rep_each vec_unrep |
Set operations | vec-set vec_set_difference vec_set_intersect vec_set_symmetric_difference vec_set_union |
Vector checks | obj_check_vector obj_is_vector vector-checks vec_check_size |