repeat_table_to_repeats | R Documentation |
This function converts a repeat table data frame into a list of fragments_repeats. class.
repeat_table_to_repeats(df, unique_id, repeat_col, frequency_col)
df |
A data frame containing the repeat data. |
unique_id |
A character string indicating the column name for unique identifiers. |
repeat_col |
A character string indicating the column name for the repeats. |
frequency_col |
A character string indicating the column name for the repeat frequencies. |
This function takes a repeat table data frame and converts it into a list of repeats fragments. The function allows specifying column names for repeats, frequencies, and unique identifiers.
A list of fragments_repeats objects.
repeat_table <- trace::example_data_repeat_table
test_fragments <- repeat_table_to_repeats(
repeat_table,
repeat_col = "repeats",
frequency_col = "height",
unique_id = "unique_id"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.