Learn R Programming

tweet2r (version 1.1)

tglm: Generalized Linear Model for tweets

Description

A fast time analysis. This function was done to get an exploratory time analysis base on a Generalized Linear Model (GLM), The function is based on glm function from. glm performs a GLM counting the tweets by hour, day, or week of the day.The results of this function is a glm object and the count of the tweets.

Usage

tglm(tweets,countby,family)

Arguments

tweets

Tweets harvested using tweet2r as DataFrame

countby

Tweets are count by default by weekday, also can be count by hour.Other options are "days" and "weekdays""

family

AvailableGLM family model in the function glm

Value

tglm

glm object

countout

Tweets count by as the countby option

See Also

glm, tweet2r

Examples

Run this code
# NOT RUN {
myglm<-t2glm(tweets, "day", "poisson")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab