Learn R Programming

abasequence (version 0.1.0)

Coding 'ABA' Patterns for Sequence Data

Description

Provides a suite of functions for analyzing sequences of events. Users can generate and code sequences based on predefined rules, with a special focus on the identification of sequences coded as 'ABA' (when one element appears, followed by a different one, and then followed by the first). Additionally, the package offers the ability to calculate the length of consecutive 'ABA'-coded sequences sharing common elements. The methods implemented in this package are based on the work by Ziembowicz, K., Rychwalska, A., & Nowak, A. (2022). .

Copy Link

Version

Install

install.packages('abasequence')

Monthly Downloads

415

Version

0.1.0

License

GPL-3

Maintainer

Andrew Pilny

Last Published

July 14th, 2023

Functions in abasequence (0.1.0)

create_is_aba

Create a Dummy Variable Indicating Whether a Code Represents 'ABA' (1) or not (0).
generate_codes

Generate Codes for Sequences Based on Certain Rules
generate_sequences

Generate Sequences of a Given Length from a Numeric Vector
count_events

Count the Number of Occurrences of Each Event in a Sequence
generate_length_aba

Generate Length of Consecutive 'ABA'-Coded Sequences