create_tweet_features | R Documentation |
Given a data frame of tweets data, create_tweet_features()
creates tweet features.
create_tweet_features(
x,
.req.columns.mapping = required.tweets.df.cols,
.as.data.table = TRUE
)
x |
a |
.req.columns.mapping |
a two-column |
... |
Additional arguments passed to |
A data.table
.
If, in addition, you pass the parameter-argument mapping .as.data.table = FALSE
(e.g. create_tweet_features(df, .as.data.table = FALSE)
),
the return object is a tibble
instead.
rtweet
packageThe column naming and typing conventions (see required.tweets.df.cols
)
conform with the data returned by rtweet
functions
lookup_statuses
and lookup_tweets
if called with parse = TRUE
(the default behavior).
Names and types/classes of x
are expected to match the values mapped in
required.tweets.df.cols
(for an example, see tweets.df.prototype
).
An error will be raised if
(a) any required column is missing (column name-based check),
or (b) any the class of any required column does not match any of the accepted classes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.