Open james-faulkes opened 6 years ago
To be clear, list_sitemaps is returning 2 separate data frames and then I am coercing them into 1, resulting in multiple columns being created
Hi James, sorry I am a bit unclear on the question here - I think perhaps you are looking at seeing the structure of what is returned, which may be better seen via str(obj)
rather than as a data.frame.
Hi guys, I am trying to consolidate sitemaps data from a large list of websites in search console. I am coercing the data into a data frame and then rbind'ing and looping through the profiles.
All is working, except when a search console profile has multiple sitemaps.
When you review the ouput, you can see that the $contents are provided separately to the $sitemap
So whilst every other profile linked to this domain produces 11 columns in the data frame, this one produces 17.
As you can see it is producing contents.submitted.1/2/3 for each profile and repeating the data. I am guessing there must be some method to control this within r than I do not know?