View source: R/lipidome_comparison_dataTransformaions.R
'generate_categorical_table' takes a categorical column of a data frame and generates a table where the categorical strings are assigned to a numeric code. This way the information of additional catecorical variabes is not lost when performing an aggregate function.
1 | generate_categorical_table(categorical_col)
|
categorical_col |
column of data frame containing categorical values (i.e. strings). Format = df$colname |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.