First I read in my data with:
gtf <- rtracklayer::readGFF('ref/gencodev25.gtf')
No problem there...then I filtered rows with:
txdb <- dplyr::filter(gtf,type=='transcript')
No problem there either...then I attempted to filter columns with:
> txdb_b <- dplyr::select(transcript_id, gene_name)
Error in dplyr::select(transcript_id, gene_name) :
object 'transcript_id' not found
I googled solutions. Concensus seemed to be that problem might be a conflict with another package that uses 'select' as a function. However, as I point to the package in the code I use (i.e., dplyr::select), guess that is probably not the issue?
RStudio: Version 1.1.453
dplyr: Version 0.8.0.1
P.S. Relatively new to R and coding.