the following commands runs smmooth:
csvfile <- file.path("C:/Users/Jbhanda/Desktop/deseq.csv")
coldata <- read.csv(csvfile, row.names=1, stringsAsFactors=FALSE)
coldata
then I run another command just after that:
coldata <- coldata[1:2,]
coldata$names <- coldata$Run
coldata$files <- file.path(dir, "quants", coldata$names, "quant.sf.gz")
It gives the following error:
Error in
$<-.data.frame
(*tmp*
, files, value = character(0)) : replacement has 0 rows, data has 2
I want to know what is wrong in the data frame and how can i rectify the command