Resolved: Reading csv files.
What's the difference between read.csv and read_csv ?
2 answers ( 1 marked as helpful)
Hi Packiarajan,
thanks for reaching out!
The read.csv
function reads a file into a data frame object. The read_csv
function reads the file into a tibble object. The tibble objects have some advantages over regular data frames, such as the fact that they load faster and allow non-standard naming of columns.
Nevertheless, both are valid ways to read a csv in R, so you're welcome to use either of the two functions.
Best,
365 Eli
Thank you :-)