Description Usage Arguments Value Author(s) Examples
Build an sf
Object of Tweets
1 2 3 4 5 6 7 8 | as_tweet_sf(
tweet_df,
geom_col = c("bbox_coords", "quoted_bbox_coords", "retweet_bbox_coords", "geo_coords",
"all"),
combine = TRUE,
as_tibble = tweetio_as_tibble(),
...
)
|
tweet_df |
A data frame of tweets, as obtained by |
geom_col |
Which column to use as the active |
combine |
logical(1L), Default: |
as_tibble |
|
... |
Arguments passed to or from other methods. |
sf::st_sf()
, or list()
of sf::st_sf()
objects if combine = FALSE
Brendan Knapp brendan.g.knapp@nps.edu
1 2 3 4 5 6 7 8 9 10 11 | path_to_tweet_file <- example_tweet_file()
tweet_df <- read_tweets(file_path = path_to_tweet_file)
bbox_coords <- as_tweet_sf(tweet_df)
rwtweet_bbox_cooords <- as_tweet_sf(tweet_df, geom_col = "retweet_bbox_coords")
tweet_sf <- as_tweet_sf(tweet_df, geom_col = "all", as_tibble = TRUE)
tweet_sf[, c("created_at", "text", "which_geom", "geometry")]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.