This is a test version of Biostars. For the public version, visit https://www.biostars.org.
R "object not found"

i am new with R i run these lines they worked perfectly when i run first time but second time this error"object not found" appeared

RNA1_seq <- read.delim("C:\\Users\\hp folio\\Desktop\\files.tsv")
dim(RNA1_seq)

This is just one case but it is happening to me mostly lines are perfectly right but object not found appears

r software error

Please use the formatting bar (especially the code option) to present your post better. I've done it for you this time.
code_formatting

Thank you!

What do you see when you list the objects use: ls()

haven,t got what you want to ask??

In the command line use this ls() It shall give you the objects in your environment.

its saying couldn't find function "Is()"

Can you write down (copy) how did you wrote it in your Rstudio or R environment ?

2 answers

First, it would be helpful if you provide the complete output from your console, since it will help figuring out the details of the problem.

The error you mention can only arise from dim():

> dim(non.existing.variable)
Error: object 'non.existing.variable' not found

This only occurs if the first command, where you declare the RNA1_seq variable, fails. Could it be that you moved those files to another location? Edit: as Medhat suggests, you could find all the variables that are present in your global environment using ls(). If this does not list your variable RNA1_seq, you know that that is the problem.

The obvious answer is that no, the line is not working perfectly, but you have gotten the path to the file wrong, or maybe the file is empty.

Log in to answer this question.