Hello, how can I check if the data in the data frame contains the right type of data to make sure that the quality of the data is correct? Forgive me as, I'm new to using R so I'm not quite sure how to describe the problem right.
id <- c(1:5)
name <- c("Carl", "Kelly", "John", "Peter", "Tanya")
department <- c("IT", "Marketing", "Sales", "Tony", "Operations")
dataset <- data.frame(id, name, department)
In the department option, there is a name 'Tony' instead of the department name. How can I find differences similar to this one, especially in large dataframes?