I am doing an introductory R assignment for one of my stats classes, and I am having some difficulty with the mutate function from tidyverse. When I first used it to convert my gender variable to a factor it worked fine, but then when I tried to use it to convert my Platform to a factor and remove null values it for some reason converted my Platform variables (Pandora and Spotify) to Male and Female.
This is my first StackOverflow post, so sorry if my question could have been formatted better. If I can provide any additional information please let me know, I am really stuck on this.
I am not sure what the problem is and I have tried rechecking the code and changing things around multiple times. The Platform variable should show the Pandora and Spotify labels that are in the source data.