Skip to contents

This function takes a data frame and reshapes it to long form based on the strain-percentage pairs in the 'unique_id' column. It separates each strain-percentage pair into two new columns: 'strain' and 'percentage'.

Usage

reshape_identifier_to_long_form(data)

Arguments

data

A data frame containing a 'unique_id' column with strain-percentage pairs, separated by semicolons (';') and hyphens ('-').

Value

A data frame reshaped to long form, containing new 'strain' and 'percentage' columns.