ImportRtoot: Import rtoot collected data

View source: R/import_rtoot.R

ImportRtootR Documentation

Import rtoot collected data

Description

Imports rtoot collected data from rda or rds saved object file or from an rtoot dataframe. Ensures datasource and specified socialmedia type are set so data is usable by Create functions. Not required if collected data was collected by vosonSML and saved as an rds file, use readRDS instead.

Usage

ImportRtoot(data)

import_rtoot(data)

Arguments

data

Character string or dataframe. File path to or tibble of collected data from rtoot.

Value

A dataframe suitable for input into mastodon network Create functions.

Note

Only supports rtoot data collected using the get_timeline_hashtag, get_timeline_public, get_status, get_context functions.

Examples

## Not run: 
# import rtoot collected data from dataframe
collect_mast <- ImportRtoot(rtoot_data)

# import rtoot collected data from file
collect_mast <- ImportRtoot("./rtoot_search_n100.rds")

## End(Not run)


vosonlab/vosonSML documentation built on April 28, 2024, 6:26 a.m.