Get good data out of bad spreadsheets
With tidy tools
Duncan Garmonsway
@nacnudus
Uh oh
@sharlagelfand https://twitter.com/sharlagelfand/status/996739127562391552
filter(row == 3, col == 1)$character
readr::melt_csv()
googlesheets4::sheets_cells()
tidyxl::xlsx_cells()
tidyxl
readr
googlesheets4
tidyxl
readr
googlesheets4
tidyxl
readr
googlesheets4
unpivotr
Via David Robinson and Jenny Bryan https://rpubs.com/dgrtwo/tidying-enron
((IF((103-B$89)=103,0,(103-B$89)))+(IF((200-B$95)=200,0,(200-B$95)))+(IF((196-B$98)=196,0,(196-B$98)))+(IF((200-B$101)=200,0,(200-B$101)))+(IF((70-B$104)=70,0,(MIN(40,(70-B$104))))+(IF((78-B$109)=78,0,(MIN(50,(78-B$109)))))+(IF((103-B$114)=103,0,(MIN(66,(103-B$114)))))+(IF((195-B$119-B$124-B$129-B$134-B$139)=195,0,(MIN(70,(195-B$119-B$124-B$129-B$134-B$139)))))+(IF((64-B$144)=64,0,(MIN(50,(64-B$144)))))+(IF((48-B$149)=48,0,(MIN(20,(48-B$149)))))+(IF((44-B$154)=44,0,(MIN(20,(44-B$154)))))+(IF((130-B$159)=130,0,(MIN(20,(130-B$159)))))))
Get good data out of bad spreadsheets
My stuff:
https://github.com/nacnudus/tidyxl
https://github.com/nacnudus/unpivotr
https://nacnudus.github.io/spreadsheet-munging-strategies/
https://rstudio.cloud/project/269487
Related:
https://github.com/luisDVA/unheadr
Duncan Garmonsway
@nacnudus