carga.datos {loadeR}R Documentation

Load data from text file.

Description

Load data from text file.

Usage

carga.datos(
  nombre.filas = TRUE,
  ruta = NULL,
  separador = ";",
  sep.decimal = ",",
  encabezado = TRUE,
  deleteNA = TRUE,
  preview = FALSE
)

Arguments

nombre.filas

a logical value indicating whether the file contains the names of the rows as its first column.

ruta

the name of the file which the data are to be read from.

separador

the field separator character.

sep.decimal

the character used in the file for decimal points.

encabezado

a logical value indicating whether the file contains the names of the variables as its first line.

deleteNA

a logical value indicating if rows with NA should be removed.

preview

a logical value indicating if only load the first 10 rows.

Value

A data.frame object with the information of a file.

Author(s)

Diego Jimenez <diego.jimenez@promidat.com>

Examples

tf <- tempfile()
write.table(iris, tf, sep = ";", dec = ",", row.names = FALSE)
carga.datos(ruta = tf, nombre.filas = FALSE, preview = TRUE)


[Package loadeR version 1.2.0 Index]