tglm: Generalized Linear Model for tweets

Description Usage Arguments Value Author(s) See Also Examples

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

1
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

Author(s)

Pau Aragó Galindo parago@uji.es

See Also

glm, tweet2r

Examples

1
2
3
4
## Not run: 
myglm<-t2glm(tweets, "day", "poisson")

## End(Not run)

tweet2r documentation built on May 2, 2019, 2:34 a.m.