I am having a data frame -"reviews" and from that, I want to eliminate a specific row that comprises of the character "NaN" in the column SentimentGI.
I tried to use the code below but it didn't work.
Sentiment_analyze <- analyzeSentiment(reviews$Review)
reviews$sentiment <-Sentiment_analyze$SentimentGI
for(i in reviews$SentimentGI) {
if(i == "NaN") {
reviews <- reviews[-i]
}
}