I'm trying to import and knit 3 files to a R markdown doc. The code I used is below:
daily_activity <- read_csv("dailyActivity_merged.csv")
sleep_data <- read_csv("sleepDay_merged.csv")
weight_log <- read_csv("weightLogInfo_merged.csv")
When I try to knit it, it comes out like a text and when i try to use the head(), an error message says "no object like daily_activity found".
I used getwd() to find out my working directory and gives me "/cloud/project". I have also used file.choose() to find the correct path of my files. The result is;
"/cloud/project/dailyActivity_merged.csv"
"/cloud/project/sleepDay_merged.csv"
"/cloud/project/weightLogInfo_merged.csv"
I changed the code to;
daily_activity <- read_csv("/cloud/project/dailyActivity_merged.csv")
sleep_data <- read_csv("/cloud/project/sleepDay_merged.csv")
weight_log <- read_csv("/cloud/project/weightLogInfo_merged.csv")
After knitting, the result still shows as a text in my Rmd file. I need help!