Error importing. csv files

Asked

Viewed 33 times

0

I get the following error message:

Cannot change Working driectory?

This message is always appearing when I try to insert in my console the file csv.

diretorio <-"C:/Users/Leonardo Bergamo/Desktop/notasMac113.csv"

setwd(diretorio)

planilha<-read.csv(notasMac113.csv)

print(notasMac113.csv)

1 answer

0

You could do it that way:

setwd("C:/Users/Leonardo Bergamo/Desktop") planilha = read.csv("notasMac113.csv", header = TRUE) print(planilha)

You can also consult this code for more details.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.