Re: [R] NaN in Scoring Sentiment

2018-08-27 Thread Shivi Bhatia
help > Subject: [R] NaN in Scoring Sentiment > > 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) &

Re: [R] NaN in Scoring Sentiment

2018-08-27 Thread PIKAL Petr
pty data frame. Cheers Petr > -Original Message- > From: R-help On Behalf Of Shivi Bhatia > Sent: Saturday, August 25, 2018 4:01 PM > To: R-help > Subject: [R] NaN in Scoring Sentiment > > Hi All- I am running a sentiment scoring model and the code is as below: &

Re: [R] NaN in Scoring Sentiment

2018-08-25 Thread Jeff Newmiller
Did you keep the resulting complete cases version of df? dfc <- df[complete.cases(df),] and then use that as input? On August 25, 2018 7:00:47 AM PDT, Shivi Bhatia wrote: >Hi All- I am running a sentiment scoring model and the code is as >below: >sentiments_per_Category <- aggregate(relative_se

[R] NaN in Scoring Sentiment

2018-08-25 Thread Shivi Bhatia
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 comp