autompg = read.table( "http://archive.ics.uci.edu/ml/machine-learning-databases/auto-mpg/auto-mpg.data", quote = "\"", comment.char = "", stringsAsFactors = FALSE)`
`head(autompg,20)`
`colnames(autompg) = c("mpg", "cyl", "disp", "hp", "wt", "acc", "year", "origin", "name")
Complete the code segment below to remove samples with the name “plymouth reliant”
I've tried executing the statement
autompg = autompg %>%select(-'plymouth reliant')
However, it says that "Can't subset columns that don't exist." So, I realised that the function is used to remove columns and not samples or rows. Then, I tried executing
rlang::last_trace()
As per its suggestion, I tried executing the code
autompg = autompg %>%dplyr::select(,-"plymouth reliant")
And yet, it says "Can't subset columns that don't exist."