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 3, 2020 in Data Analytics by Juli -
• 120 points

edited Mar 4, 2020 by Gitika 1,329 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,840 points
2,127 views
+1 vote
2 answers

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
74,654 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,840 points
758 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,840 points
18,821 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,840 points
2,800 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,840 points
2,715 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,840 points
3,868 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 7, 2018 in Data Analytics by Maverick
• 10,840 points
775 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP