Error while reading csv file in R

Donbeo

I am having some problems in reading a csv file with R.

 x=read.csv("LorenzoFerrone.csv",header=T)

Error in make.names(col.names, unique = TRUE) : 
      invalid multibyte string at '<ff><fe>N'

I can read the file using libre office with no problems.

I can not upload the file because it is full of sensible information.

What can I do?


Setting encoding seem like the solution to the problem.

> x=read.csv("LorenzoFerrone.csv",fileEncoding = "UCS-2LE")
> x[2,1]
[1] Adriano Caruso
100 Levels:  Ada Adriano Caruso adriano diaz Adriano Diaz alberto ferrone Alexey ... Zia Tina
Sanjay Kulkarni

You need to specify the correct delimiter in the sep argument.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Error while reading csv file in R

분류에서Dev

Reading in a CSV file

분류에서Dev

Error in Java with file reading

분류에서Dev

How can I skip even/odd rows while reading a csv file?

분류에서Dev

Detect empty lines while reading from file

분류에서Dev

Random UnauthorizedAccessException while reading a file in %temp%

분류에서Dev

Wrong file path while reading from UI

분류에서Dev

Infinity loop while reading data from file

분류에서Dev

bash: Prompting for user input while reading file

분류에서Dev

.csv file reading from a specified URL

분류에서Dev

Reading a csv file into csh using awk

분류에서Dev

How to not read the header row while reading csv using Scanner?

분류에서Dev

File read and write while reading the file line by line

분류에서Dev

Unicode error reading Python log file (logging)

분류에서Dev

Python reading file, error recognizing dot character

분류에서Dev

Error while compiling a file in ubuntu

분류에서Dev

R - partial match in reading lines from file

분류에서Dev

Error handling reading ints from Scanner in while loop

분류에서Dev

Getting error while accessing obb file

분류에서Dev

Error while editing json file with python

분류에서Dev

why error occur when write csv in the file?

분류에서Dev

Check csv file while content is created through a for loop

분류에서Dev

Reading excel file into R and Merging all the sheets in it into a single dataframe

분류에서Dev

while reading json file in python some additional unicode symbols appear in the data

분류에서Dev

Reading thru CSV file, finding columns with same value and appending their other column values

분류에서Dev

"No root file system defined" error while installing ubuntu

분류에서Dev

Getting 'permgen error' while deploying war file on AWS

분류에서Dev

Trouble with while loops reading strings

분류에서Dev

Reading file with POSIX read

Related 관련 기사

  1. 1

    Error while reading csv file in R

  2. 2

    Reading in a CSV file

  3. 3

    Error in Java with file reading

  4. 4

    How can I skip even/odd rows while reading a csv file?

  5. 5

    Detect empty lines while reading from file

  6. 6

    Random UnauthorizedAccessException while reading a file in %temp%

  7. 7

    Wrong file path while reading from UI

  8. 8

    Infinity loop while reading data from file

  9. 9

    bash: Prompting for user input while reading file

  10. 10

    .csv file reading from a specified URL

  11. 11

    Reading a csv file into csh using awk

  12. 12

    How to not read the header row while reading csv using Scanner?

  13. 13

    File read and write while reading the file line by line

  14. 14

    Unicode error reading Python log file (logging)

  15. 15

    Python reading file, error recognizing dot character

  16. 16

    Error while compiling a file in ubuntu

  17. 17

    R - partial match in reading lines from file

  18. 18

    Error handling reading ints from Scanner in while loop

  19. 19

    Getting error while accessing obb file

  20. 20

    Error while editing json file with python

  21. 21

    why error occur when write csv in the file?

  22. 22

    Check csv file while content is created through a for loop

  23. 23

    Reading excel file into R and Merging all the sheets in it into a single dataframe

  24. 24

    while reading json file in python some additional unicode symbols appear in the data

  25. 25

    Reading thru CSV file, finding columns with same value and appending their other column values

  26. 26

    "No root file system defined" error while installing ubuntu

  27. 27

    Getting 'permgen error' while deploying war file on AWS

  28. 28

    Trouble with while loops reading strings

  29. 29

    Reading file with POSIX read

뜨겁다태그

보관