[R] NaN in Scoring Sentiment

Shivi Bhatia @hivipmp82 @ending from gm@il@com
Sat Aug 25 16:00:47 CEST 2018


Hi All- I am running a sentiment scoring model and the code is as below:
sentiments_per_Category <- aggregate(relative_sentiment_frequencies,
                                     by = list(Category =
df$Case.Category), mean)

while i run the head command most of the values are NaN. i then used
complete.cases on my data frame
df[complete.cases(df),]
 but it does not seems to work. Please advice if there is a way to handle
NaN.

Regards, Shivi

	[[alternative HTML version deleted]]



More information about the R-help mailing list