v0.1.0
##New features
record_group()-strataargument. Perform record grouping separately within subsets of a dataset.overlap(),compress_number_line(),fixed_sepisodes(),rolling_episodes()andepisode_group()-overlap_methodsandmethodsarguments replacesoverlap_methodandmethodrespectively. Use different sets of methods within the same dataset when grouping episodes or collapsingnumber_lineobjects.overlap_methodandmethodonly permits 1 method per per dataset.epidobjects -win_nmslot. Shows the type of window each event belongs to i.e. case or recurrence windowepidobjects -win_idslot. Unique ID for each window. The ID is thesnof the reference event for each window- Format of
epidobjects updated to reflect this
- Format of
epidobjects -dist_from_windslot. Shows the duration of each event from its window's reference eventepidobjects -dist_from_epidslot. Shows the duration of each event from its episode's reference eventepisode_group()androlling_episodes()-recurrence_from_lastargument. Determine if reference events should be the first or last event from the previous window.episode_group()androlling_episodes()-case_for_recurrenceargument. Determine if recurrent events should have their own case windows or not.episode_group(),fixed_episodes()androlling_episodes()-data_linksargument. Ungroup episodes that do not include records from certaindata_source(s).episode_group(),fixed_episodes()androlling_episodes()-case_lengthandrecurrence_lengtharguments. You can now use a range (number_lineobject).episode_group(),fixed_episodes()androlling_episodes()-case_lengthandrecurrence_lengtharguments. You can now use a range (number_lineobject).episode_group(),fixed_episodes()androlling_episodes()-include_index_periodargument. IfTRUE, overlaps with the index event or period are groupped together even if they are outside the cut-off range (case_lengthorrecurrence_length).pidobjects -link_idslot. Shows the record (snslot) to which every record in the dataset has matched to.invert_number_line()- Invert theleftand/orrightpoints to the opposite end of the number lineleft_point(x)<-,right_point(x)<-,start_point(x)<-andend_point(x)<-accessor functions
##Changes
overlap()renamed tooverlaps().overlap()is now a convenienceoverlap_methodfor ANY kind of overlap"none"is another convenienceoverlap_methodfor NO kind of overlapexpand_number_line()- new options forpoint;"left"and"right"compress_number_line()- compressednumber_lineobject inherits the direction of the widestnumber_lineamong overlapping group ofnumber_lineobjectsoverlap_methods- have been changed such that each pair ofnumber_lineobjects can only overlap in one way. E.g."chain"and"aligns_end"used to be possible but this is now considered a"chain"overlap only"aligns_start"and"aligns_end"use to be possible but this is now considered an"exact"overlap
number_line_sequence()- Output is now alist.number_line_sequence()- now works across multiplenumber_lineobjects.to_df()- can now changenumber_lineobjects to data.frames.to_s4()can do the reverse.
epidobjects are the default outputs forfixed_episodes(),rolling_episodes()andepisode_group()pidobjects are the default outputs forrecord_group()- In episode grouping, the
case_nmfor events that were skipped due torolls_maxorepisodes_maxis now"Skipped". - In
episode_group()andrecord_group(),sncan be negative numbers but must still be unique - Optimised
episode_group()andrecord_group(). Runs just a little bit faster ... - Relaxed the requirement for
xandyto have the same lengths in overlap functions.- The behaviour of overlap functions will now be the same as that of standard R logical tests
episode_group-case_lengthandrecurrence_lengtharguments. Now accepts negative numbers.- negative "lengths" will collapse two periods into one, if the second one is within some days before the
end_point()of the first period.- if the "lengths" are larger than the
number_line_width(), both will be collapsed if the second one is within some days (or any otherepisode_unit) before thestart_point()of the first period.
- if the "lengths" are larger than the
- negative "lengths" will collapse two periods into one, if the second one is within some days before the
- cheat sheet updated