'pulling out sub-columns in a data frame to the same "level" as the others

Apologies if this has already been answered somewhere else. So I have a dataset in R that contains a certain amount of variables. When I preview it some of the variables I need for my analysis are there but outside the count of the variables as if they were in subsections of the dataframe itself.

Now I managed to access some of it using sapply (these were sublists in the dataframe) but there are several others I cannot. I am still unable to access a column that is containing the country information for my data set. It looks as if it is contained in another variable. Any suggestions how to bring this variable on the same plane as the others in the data set and eliminate subfolders?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source