readMultisep: Read in data.frames with separator characters >=1Byte

View source: R/readMultisep.R

readMultisepR Documentation

Read in data.frames with separator characters >=1Byte

Description

Read in character separated data.frames with separator characters >=1Byte.

Usage

readMultisep(file, sep, colnames=TRUE)

Arguments

file

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

sep

the field separator character(s).

colnames

logical. Whether first line in file contains colnames.

Value

A data frame containing a representation of the data in the file.

Examples

filePath <- tempfile(fileext = ".txt")
dat <- data.frame(v1 = c("0","300","e",NA),
                  v2=c("0","90","10000",NA),
                  v3=c("k","kk","kkk",NA),
                  v4=NA,
                  v5=c("0","90","100","1"))
write.table(dat, file = filePath, row.names = FALSE, col.names = FALSE, sep = "]&;")
readMultisep(filePath, sep="]&;")

weirichs/eatTools documentation built on April 3, 2024, 6:11 p.m.