Skip to content

subset data #46

Answered by cafferychen777
emihoe asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @emihoe ,

You can use the following code similar.

sub_metadata <- metadata %>% filter(your_group_column != "water")
sub_abundance <- abundance[, sub_metadata$your_sample_id_column]

Best regards,

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cafferychen777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants