Description Usage Arguments Details
If each unique treatment and concentration was treated as a separate
treatment in calc_mp
, the "tx" column of the output would contain the
treatment and concentration concatenated together. This function takes the
dataframe output by calc_mp
and outputs the dataframe with two extra
columns; 'conc' which contains just the concentration and 'compound', which
contains just the compound name.
1 | clean_mp(mp_df, sep, tx_col = "tx")
|
mp_df |
Dataframe output from |
sep |
Symbol separating the treatment and concentration in the concatenated column, as string. |
tx_col |
Name of the column containing the concatenated treatment and concentration data. |
Note that this function assumes that each concatenated string has the treatment first and then the concentration. It also assumes that the concentration is numerical (does not contain any non-numerical characters) and does not contain the 'sep' symbol.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.