How do you import dataframe cvs into r markdown from a macbook air is says error

crime<- read.csv(file"/Users/gabrielacastro/Desktop/Campus_Crime.cvs")

Welcome to the community!

The argument to your function is not right. Remove the file part, and try again. Also, the file extension is likely to be csv and not cvs, check once.

crime <- read.csv("/Users/gabrielacastro/Desktop/Campus_Crime.csv")

If it doesn't solve, share the full error message, and preferably a reproducible example.


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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.