You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm following the script to tidy JSON Twitter data:
Load library
library(tidytweetjson)
You need to designate a directory path where you saved the list of JSON files.
dirpath <- tcltk::tk_choose.dir()
Parallel processing
n_cores <- availableCores() - 1
plan(multiprocess, # multicore, if supported, otherwise multisession
workers = n_cores) # the maximum number of workers
Assign the parsed result to the df_all object
df_all <- jsonl_to_df_all(dirpath)
However, this returns an error reference certain characters that I assume are emojis and other UTF code:
Error: lexical error: invalid char in json text.
ÿþ{
(right here) ------^
In addition: There were 50 or more warnings (use warnings() to see the first 50)
As I can't load the JSON to clean it, do you have any advice for what to do?
The text was updated successfully, but these errors were encountered:
I'm following the script to tidy JSON Twitter data:
Load library
library(tidytweetjson)
You need to designate a directory path where you saved the list of JSON files.
dirpath <- tcltk::tk_choose.dir()
Parallel processing
n_cores <- availableCores() - 1
plan(multiprocess, # multicore, if supported, otherwise multisession
workers = n_cores) # the maximum number of workers
Assign the parsed result to the
df_all
objectdf_all <- jsonl_to_df_all(dirpath)
However, this returns an error reference certain characters that I assume are emojis and other UTF code:
Error: lexical error: invalid char in json text.
ÿþ{
(right here) ------^
In addition: There were 50 or more warnings (use warnings() to see the first 50)
As I can't load the JSON to clean it, do you have any advice for what to do?
The text was updated successfully, but these errors were encountered: