categorized var by default will be treated as factor, which will be treated as non-character variables in alpha diversity test (this will trigger an error as being not numeric). We need to add an as.character() to make this new variable being character in the sample dataframe.
categorized var by default will be treated as factor, which will be treated as non-character variables in alpha diversity test (this will trigger an error as being not numeric). We need to add an as.character() to make this new variable being character in the sample dataframe.