Home > database >  Data Importation in R but change the delimiter from comma to semicolon
Data Importation in R but change the delimiter from comma to semicolon

Time:12-15

I want to change the delimiter in my data importation from comma (,) to semicolon (;) when I do that by just opening the file, it works perfectly fine, but when I want to load the data via a code line, an error occurs enter image description here

CodePudding user response:

Try without the delim=";" also avoid before the delim=";"

Example:

library(readr)

    example <- read_delim("example.csv", ";", 
        escape_double = FALSE, trim_ws = TRUE)
  • Related