0

I was told to use read_excel to import CSV file instead of read.csv, but it is giving me an error

"Error: Can't establish that the input is either xls or xlsx"

3
  • Why? If the file is already a csv why not use 'read.csv' Commented Feb 28, 2021 at 7:28
  • Are you sure you weren't told to use read_csv (note the _, not the .)? Commented Feb 28, 2021 at 7:29
  • Yes I am sure and I was confused, I asked a r programmer to help with some work, and they used read_excel instead of read.csv and they insisted on it. They included "in" after the file name. Not sure what that does. But I'll change it to read.csv after he turns his back :) Commented Feb 28, 2021 at 9:15

1 Answer 1

2

You can use read_csv (importing data as a tibble) or read.csv (importing data as a dataframe) for a csv file. Or you can save your CSV file as an excel file, then use read_excel.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.