This is my code for read the csv file generated by Rsubread library.

countData <- read.csv("counts.csv", header = TRUE, sep = "\t")
countData <- subset(countData, select=-c(Length))
colnames(countData) <- gsub("Aligned.sortedByCoord.out.bam","",colnames(countData))

I got the error during execution.

Error in eval(substitute(select), nl, parent.frame()) :
object 'Length' not found

Kindly help me.

  • $\begingroup$ Hi @r-sakshi, could you please provide more information about your input file counts.csv. Showing the top five lines would be very helpful in providing good answers to your question. $\endgroup$
    – gringer
    Jan 27 at 3:17
  • $\begingroup$ This looks like an input error that is tripping the sanity check $\endgroup$
    – M__
    Jan 27 at 14:15


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.