jsonl_to_df: Parse a Tweet JSON file into a dataframe

View source: R/jsonl_to_df.R

jsonl_to_dfR Documentation

Parse a Tweet JSON file into a dataframe

Description

Parse a Tweet JSON file into a dataframe

Usage

jsonl_to_df(file_path, simplify = FALSE)

Arguments

file_path

A file path which indicates a Tweet JSON file. This input should be a string vector.

Value

A dataframe with nine columns (if simplify = FALSE): "id", "country_code", "location", "created_at", "full_text", "retweet_count", "favorite_count", "user.followers_count", "user.friends_count." A dataframe with three columns (if simplify = TRUE): "id", "created_at", "full_text"


jaeyk/tidytweetjson documentation built on June 24, 2024, 10:56 p.m.