read.table: read.table

Description Usage Arguments Value See Also Examples

Description

read.table

Usage

1

Arguments

...

additional arguments passed to utils::read.table

file

the file or connection to read the table from

Value

data frame.

If a character column can be interpreted as dates, then it translates the value into POSIXct objects. Otherwise, it acts as utils::read.table

See Also

as.POSIXct

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
name <- c("bob", "fred", "sally")
  birthday <- c("01/22/1993", "02/25/1980", "03/31/1970")
  birthday <- as.factor(birthday)
  table <- data.frame(name,birthday)

  conn <- textConnection("read.table.txt", 'w')
  write.table(table, file=conn, quote=FALSE, sep="\t", row.names=FALSE)

  conn <- textConnection(read.table.txt)
  table.new <- read.table(conn, header=TRUE, sep="\t")

decisionpatterns/date.reader documentation built on May 15, 2019, 1:55 a.m.