Saves tweets and users data as CSV files.
save_as_csv(x, file_name, prepend_ids = TRUE, na = "", fileEncoding = "UTF-8")
Data table to be saved (tweets or user object) generated
via rtweet function like
Path/file name where object(s) is to be saved. If object includes both tweets and users data then provided file_name will be used as base for the two saved files. For example, file_name = "election", would save files as "election.tweets.csv" and "election.users.csv".
Logical indicating whether to prepend an "x" before all Twitter IDs (for users, statuses, lists, etc.). It's recommended when saving to CSV as these values otherwise get treated as numeric and as a result the values are often less precise due to rounding or other class-related quirks. Defaults to true.
Value to be used for missing (NA)s. Defaults to empty character, "".
Encoding to be used when saving to CSV. defaults to "UTF-8".