I have a markdown file that I have just finished knitting. The file is discussing what I have done in my R project for a data analytics course. I am receiving so many error messages after the knit within my report however this code all worked before while I was working in r projects. for example here. the error appears at the end.
Cleaning and Filtering Step 1: heartrate_data heartrate_data is a very large data set so I filter ‘heartrate_data’ to contain data for user_6 only
heartrate_data <- filter(heartrate_data, Id == "2022484408")
and then filter for date
heartrate_data <- heartrate_data %>% filter(grepl('4/12/2016', Time))
and then re label Id to user_6
heartrate_data[heartrate_data == "2022484408"] <- "user_6"
## Error in as.POSIXlt.character(x, tz, ...): character string is not in a standard unambiguous format
So, my question is if there is no actual error within this code do I need to go through and give attention to all these error messages showing up? I have many more within my markdown. The errors seem un related though because this is how I coded while in my R projects. Is there a way to refrain R knit from including these error messages? Thank you
Here are a few more examples.
view(sleep_datatwo)
## Error in view(sleep_datatwo): object 'sleep_datatwo' not found
sleep_datatwo <- aggregate(TotalHoursAsleep ~ User, sleep_data, mean)
## Error in eval(predvars, data, env): object 'User' not found
sleep_datatwo <- sleep_datatwo %>%
rename(
avg_hours_asleep = TotalHoursAsleep)
## Error in rename(., avg_hours_asleep = TotalHoursAsleep): object 'sleep_datatwo' not found
sleep_datatwo is in my environment, object User is within my sleep_data data frame.
Thank you!