powered by
Load data from excel.
carga.datos.excel( ruta, sheet = 1, header = TRUE, startRow = 0, startCol = 0, endRow = 0, endCol = 0, row_names = TRUE, deleteNA = TRUE, preview = FALSE )
A data.frame object with the information of a file on excel.
the name of the file which the data are to be read from.
The name or index of the worksheet to read from.
a logical value indicating whether the file contains the names of the variables as its first line.
The index of the first row to read from. Defaults to 0 meaning that the start row is determined automatically.
The index of the first column to read from. Defaults to 0 meaning that the start column is determined automatically.
The index of the last row to read from. Defaults to 0 meaning that the end row is determined automatically.
The index of the last column to read from. Defaults to 0 meaning that the end column is determined automatically.
a logical value indicating whether the file contains the names of the rows as its first column.
a logical value indicating if rows with NA should be removed.
a logical value indicating if only load the first 10 rows.
Diego Jimenez <diego.jimenez@promidat.com>
# \donttest{ tf <- tempfile() writexl::write_xlsx(iris, paste0(tf, ".xlsx"), TRUE) carga.datos.excel(ruta = paste0(tf, ".xlsx"), row_names = FALSE, preview = TRUE) # }
Run the code above in your browser using DataLab