Package: vctrs 0.6.5.9000

Davis Vaughan

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:Hadley Wickham [aut], Lionel Henry [aut], Davis Vaughan [aut, cre], data.table team [cph], Posit Software, PBC [cph, fnd]

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'))

Peer review:

Bug tracker:https://github.com/r-lib/vctrs/issues

On CRAN:

s3-vectors

19.20 score 288 stars 13k packages 904 scripts 1.7M downloads 2 mentions 190 exports 4 dependencies

Last updated 24 days agofrom:78d9f2b0b2. Checks:OK: 1 WARNING: 8. Indexed: no.

TargetResultDate
Doc / VignettesOKOct 28 2024
R-4.5-win-x86_64WARNINGOct 28 2024
R-4.5-linux-x86_64WARNINGOct 28 2024
R-4.4-win-x86_64WARNINGOct 28 2024
R-4.4-mac-x86_64WARNINGOct 28 2024
R-4.4-mac-aarch64WARNINGOct 28 2024
R-4.3-win-x86_64WARNINGOct 28 2024
R-4.3-mac-x86_64WARNINGOct 28 2024
R-4.3-mac-aarch64WARNINGOct 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

Dependencies:cligluelifecyclerlang

Printing vectors nicely in tibbles

Rendered frompillar.Rmdusingknitr::rmarkdownon Oct 28 2024.

Last update: 2022-06-08
Started: 2020-03-20

Prototypes and sizes

Rendered fromtype-size.Rmdusingknitr::rmarkdownon Oct 28 2024.

Last update: 2023-10-10
Started: 2018-10-31

S3 vectors

Rendered froms3-vector.Rmdusingknitr::rmarkdownon Oct 28 2024.

Last update: 2023-10-10
Started: 2018-08-13

Type and size stability

Rendered fromstability.Rmdusingknitr::rmarkdownon Oct 28 2024.

Last update: 2023-02-24
Started: 2018-10-30

Readme and manuals

Help Manual

Help pageTopics
Default value for empty vectors%0%
Construct a data framedata_frame
Collect columns for data frame constructiondf_list
Coercion between two data framesdf_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 incompatiblefaq-error-incompatible-attributes
FAQ - Error: Input must be a vectorfaq-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 vectorsinternal-faq-ptype2-identity
Drop empty elements from a listlist_drop_empty
'list_of' S3 class for homogenous listsas_list_of is_list_of list_of vec_cast.vctrs_list_of vec_ptype2.vctrs_list_of
Missing valuesmissing vec_any_missing vec_detect_missing
Name specificationsname_spec
Assemble attributes for data frame constructionnew_data_frame
List checkslist_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
Runsruns 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 namesvec_as_names
Combine many data frames into one data framevec_bind vec_cbind vec_rbind
Combine many vectors into one vectorvec_c
Cast a vector to a specified typevec_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
Choppinglist_unchop vec_chop
Compare two vectorsvec_compare
Count unique values in a vectorvec_count
Completevec_detect_complete
Find duplicated valuesvec_duplicate vec_duplicate_any vec_duplicate_detect vec_duplicate_id
Equalityvec_equal
Create a data frame from all combinations of the inputsvec_expand_grid
Fill in missing values with the previous or following valuevec_fill_missing
Initialize a vectorvec_init
Interleave many vectors into one vectorvec_interleave
Locate observations matching specified conditionsvec_locate_matches
Find matching observations across vectorsvec_in vec_match
Get or set the names of a vectorvec_names vec_names2 vec_set_names
Order and sort vectorsvec_order vec_sort
Find the prototype of a set of vectorsvec_ptype vec_ptype_common vec_ptype_show
Find the common type for a pair of vectorsvec_ptype2 vec_ptype2.character vec_ptype2.complex vec_ptype2.double vec_ptype2.integer vec_ptype2.list vec_ptype2.logical vec_ptype2.raw
Compute ranksvec_rank
Vector recyclingvec_recycle vec_recycle_common
Useful sequencesvec_init_along vec_seq_along
Number of observationslist_sizes vec_is_empty vec_size vec_size_common
Split a vector into groupsvec_split
Find and count unique valuesvec_unique vec_unique_count vec_unique_loc
Repeat a vectorvec-rep vec_rep vec_rep_each vec_unrep
Set operationsvec-set vec_set_difference vec_set_intersect vec_set_symmetric_difference vec_set_union
Vector checksobj_check_vector obj_is_vector vector-checks vec_check_size