read_sheet(x, id_column, start_row = 1, sheet = 1, ext, header = TRUE, verbose = FALSE, ...)write_sheet(x, file, ext, ...)
Read/Write sheets (automatically detect the file type and work accordingly)
Note: for excel sheets:
id_column
is missing, default if first column
sheet
is missing, it automatically reads the first sheet
Some important default values for tsv and csv files:
stringsAsFactors = FALSE,comment.char = '#', strip.white=TRUE, blank.lines.skip=TRUE
## read a excel sheet sheet = read_sheet(system.file("extdata/example.xlsx", package = "params"))Removing extra columns## read a comma seperated sheet csv = read_sheet(system.file("extdata/example.csv", package = "params")) ## read a tab seperate sheet tsv = read_sheet(system.file("extdata/example.tsv", package = "params")) # write sheets ------- ## write a comma seperated sheet write_sheet(sheet, "example.csv") ## write a tab seperated sheet write_sheet(sheet, "example.tsv") ## write an excel seperated sheet write_sheet(sheet, "example.xlsx")