Correction in video of 'Data Frames' in Module 2 of course R101
The video of 'Data Frames' in Module 2 of course R101 (https://courses.cognitiveclass.ai/courses/course-v1:BigDataUniversity+RP0101EN+2016/courseware/76d637cbe8024e509dc445df847e6c3a/87a6f38e1c6f407b86a1aabbb5e326c2/) is having the incorrect syntax of using Data Frames(it is missing stringsAsFactors=F) which gives warning for adding a new row in R 3.4.1 on Windows(Warning message: In [<-.factor
(*tmp*
, ri, value = "Dr. StrangeLove") : invalid factor level, NA generated) and adds a row like this to the data frame( <NA> 1964 94)
The command should be as below, which is correctly mentioned in the lab:
movies <- data.frame(name = c("Toy Story", "Akira", "The Breakfast Club", "The Artist", "Modern Times", "Fight Club", "City of God", "The Untouchables"), year = c(1995, 1998, 1985, 2011, 1936, 1999, 2002, 1987), stringsAsFactors=F)
-
Luntu Magwebu commented
its still not working