Rstudio "Erreur : unexpected symbol in:"

0 votes
Bonjour, 

I'm new to Rstudio programming. I used a formula that worked very well but I now maintain an error message which appears while my files are the same as those I used before (with the same symbols: ".", ";" and "NA"). 

The message is as follows:

#heatmap
> 
> #import  données fichier csv
> library(dendextend)
> library(gplots)
> library(RColorBrewer)
> 
> setwd("D:\")
+ 
+ getwd()
+ 
+ dat<-read.table("test.csv",header=T,dec=",",sep=";",na.strings = "NA")
Erreur : unexpected symbol in:
"
dat<-read.table("test.csv"

Can you tell me why it no longer works? I noticed that there was a new version of "dendextend" that I installed.

Thank you in advance for your answers,

Julie

Mar 2 in Data Analytics by Juli -
• 120 points

edited Mar 4 by Gitika 295 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Data Analytics

0 votes
1 answer

Error in source("myfunction.R") : myfunction.R:2:3: unexpected symbol 1: 2: R version

Try formatting your code like this: myfunction <- ...READ MORE

answered Oct 30, 2018 in Data Analytics by Maverick
• 10,820 points
865 views
0 votes
1 answer

Which function can I use to clear the console in R and RStudio ?

Description                   Windows & Linux           Mac Clear console                      Ctrl+L ...READ MORE

answered Apr 17, 2018 in Data Analytics by anonymous
17,628 views
0 votes
1 answer

Error saying "Error in source("myfirst.R") : myfirst.R:14:2: unexpected '!' 13: 14: ë! ^"

This is a very common issue that ...READ MORE

answered Oct 30, 2018 in Data Analytics by Maverick
• 10,820 points
133 views
0 votes
1 answer

How do I change background color in Rstudio

Follow this: tools > global options > appearance ...READ MORE

answered Nov 2, 2018 in Data Analytics by Maverick
• 10,820 points
1,150 views
0 votes
1 answer

Errors saying "Error: unexpected '}' in "}"

This is a syntax error: Enclose your if ...READ MORE

answered Nov 8, 2018 in Data Analytics by Maverick
• 10,820 points
1,536 views
0 votes
1 answer

Error saying expected symbol in R

Write the code in the following way: myfunction ...READ MORE

answered Nov 9, 2018 in Data Analytics by Maverick
• 10,820 points
860 views
0 votes
1 answer

I'm trying to start rattle on R Studio and end up with an error

You need the package RGtk2 for rattle to ...READ MORE

answered Nov 26, 2018 in Data Analytics by Maverick
• 10,820 points
1,021 views
0 votes
1 answer
0 votes
1 answer

How do I modify the background grid in ggplot?

You can use the function called background_grid().  This ...READ MORE

answered Dec 6, 2018 in Data Analytics by Maverick
• 10,820 points
220 views
0 votes
1 answer