I am doing scRNAseq analysis with Seurat.
I clustered the cells using the FindClusters() function.
What I want to do is to export information about which cells belong to which clusters to a CSV file.
In a Seurat object, we can show the cluster IDs by using Idents(・), but I have no idea how to export this to CSV files.
I would be grateful if you could show this by using the PMBC data (https://satijalab.org/seurat/articles/pbmc3k_tutorial.html) as an example.