Used to aggregate the sentiment variables to the individual and meeting levels

aggSentiment(inputData, meetingId = NULL, speakerId = NULL, sentMethod)

Arguments

inputData

data.frame that has been output from textSentiment function

meetingId

string that indicates the name of the variable containing the meeting ID

speakerId

string that indicates the name of the variable containing the speaker identity

sentMethod

string that indicates what type of sentiment analysis to aggregate--must be either 'aws' or 'syuzhet'

Value

A data.frame giving the sentiment metrics aggregated to the requested level. If only meetingId is specified, metrics are aggregated to that level. If only speakerId is specified, metrics are aggregated to the individual level across any meetings. If both meetingId and speakerId are specified, metrics are aggregated to the level of the individual within meeting.

Examples

agg.out = aggSentiment(inputData=sample_transcript_sentiment_aws, meetingId="batchMeetingId", speakerId = "userId", sentMethod="aws") agg.out = aggSentiment(inputData=sample_chat_sentiment_syu, meetingId="batchMeetingId", speakerId = "userName", sentMethod="syuzhet")