Hello; I'm facing some issues with the following:
- One variable in my data set has several rows with the symbol "?". I want to delete all the rows where this variable = "?". I have tried: data[data$customer_id != "?", ] and data2 <- subset (data, customer_id !="?") but it didn't work.
- The same variable customer_id is composed in some instances with numerical values and some other cases with both numerical and character values. As an example: B32598 and 254879. When I do STR(data), it's accounted for as Factor and I want to change it to character. I have used: data$customer_id_adj <- as.character(data$customer_id.factor) but id didn't work. Any suggestions?