censors) and all the vectors have short labels, then the list names are the levels and the short labels become the labels.
censors) and any of the vectors are missing short labels, then the list names become the levels and the labels.
as.character(1:length(x))become the levels and labels, where
length(x)is the number of list elements.
v_rcensoredto catch invalid inputs and provide more helpful error messages.
stypeunder which a
stypevector was created as an attribute. This is included for future compatibility checking when comparing vectors in the case they were created under different versions of
stypethat don’t play nice together.
new_stype_vctrfunction to streamline the creation of new stype vectors, ensuring they all share a common set of attributes.
v_proportiontypes with values in
[0. 1], which inherits from
v_rcensoredtype now takes
v_continuous_nonnegvectors instead of
v_event_time. More importantly,
NAvalues are no longer accepted as inputs to
v_rcensored. To indicate that an observation has not yet been observed use
auto_compute_summaryargument to stype
TRUE, data summaries are automatically computed when a vector is created or restored (e.g. on subset or
FALSE, data summaries are only computed when the user asks for a data summary. The default is
TRUE, though this may change in the future.
v_count. See the
stype mathvignette for a complete list of all available functions and the respective domains/codomains of the functions.
categoricalDescriptorswhich summarizes a table excluding
as_Survto take a new formal argument
multiple_endpointwhich defaults to
FALSE. Previous versions always returned data in a multiple endpoints format (see the object documentation for
survival::Survfor a definition) when
FALSE, so this is a breaking change.
pmin_v_rcensoredthat can be used to combine multiple
v_rcensoredobjects into a new
v_binary(c(FALSE, TRUE, FALSE, TRUE)) + c(1, 3, 3, 5)now returns an error.
tbl_analysistype, which includes the basic utilities of a
stypesuch as a
data_summary. It also includes a
modifiersargument which is a
listof functions sequentially modify the table. These functions are applied whenever the table is subset, and thus can act to define analytic workflows that should be run whenever a table is modified. This feature is experimental and will be tested internally at NoviSci before being further developed.
stypes have an
extra_descriptorsargument for passing a
purposeclass now has a
stypevectors can be tagged with arbitrary
is_taggedfunction can be used to check if a vector is tagged with a string; e.g.
is_tagged(x, tags = c("tag1", "tag2"))checks if
lenses! See the lenses vignette for examples of getting/setting parts of
stypevector or getting/setting several
stypes within a list-like structure.
weightfunction is available for updating the
stypes with vector of weights. See the weighting vignette for example of usage.
get_data_summariesfunction to access the
data_summaryfrom multiple stypes in a