I have downloaded some Tweets from Twitter for analysis in a JSON file. This loads into R fine, but when I turn it into a data frame to do my analysis it seems some of the columns are not in the correct order. For example, for the most part in the ID column, this is filled with the Tweet ID, but in some places the columns have shifter and the Tweet text or date is seen in this column.
I can see this is the case in file before I even load it into R - When I open this file in notebook I can see that the order of the column headings are not always the same.
Any idea how I can fix this?