Skip to content

Instantly share code, notes, and snippets.

@rahulbhadani
Created August 2, 2020 08:24
Show Gist options
  • Save rahulbhadani/7f871f054e1e632a5a9f61c31d1de258 to your computer and use it in GitHub Desktop.
Save rahulbhadani/7f871f054e1e632a5a9f61c31d1de258 to your computer and use it in GitHub Desktop.
Reading CSV file with header and rownames in R.
folder = "/home/ivory/VersionControl/scRNASeq/python-notebook/"
file = "FilteredCount.csv"
filepath = paste(folder, file, sep="")
csv = read.csv(filepath, sep=",", row.names = 1, header= TRUE)
mat = as.matrix(csv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment