having trouble putting excel csv data on R

how do you put excel csv data on R?

a CSV made by excel should be no different from any CSV as it's a simple text standard. There are many many ways to read in such data, in base R and probably a dozen packages. My personal favourite is data.table::fread for speed and convenience.

Another option is read_excel (and similar functions), part of the readxl package.

Run the following code

library("tidyverse")
my_data <- read_csv(file = "path/to/my_data.csv")

If you do not have the tidyverse library, then run this code and try again

install.packages("tidyverse")

Hope it helps :slightly_smiling_face:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.