I am trying to import a large number of Excel files into R. The irritating thing about it is that some information is contained in whether or not the text in the cell is indented. Below is an example (I apologize for having to use a screenshot), where the entries "Main" and "Secondary" are indented because they belong to the "Space heating" category in the row above. The indented rows have a left indent set to 1, while the non-indented rows have left indent set to 0.
I see from this question that getCellStyle
in the XLConnect package might be able to extract this information but it seems like that can only be used to retrieve named cell styles. Is it possible to extract this information within R even if there is no named style?
The Excel file in the screenshot (20 KB) can be found at https://www.eia.gov/consumption/residential/data/2015/hc/hc1.1.xlsx (Residential Energy Consumption Survey from the U.S. Energy Information Administration).