Entering edit mode
3.3 years ago
AbsaR
•
0
dc.markers %>% group_by(cluster) %>% top_n(2, wt = avg_logFC)
the above code is giving error even after using dplyr and matrix libraries in seurat analysis in rstudio
Error: Problem with `filter()` input `..1`.
i Input `..1` is `top_n_rank(2, avg_logFC)`.
x object 'avg_logFC' not found
i The error occurred in group 1: cluster = 0.
Run `rlang::last_error()` to see where the error occurred.