Re: [R] time attribute from a file

2009-07-21 Thread Erin Hodgess
- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Peter Alspach > Sent: Tuesday, July 21, 2009 4:03 PM > To: Erin Hodgess; R help > Subject: Re: [R] time attribute from a file > > Tena koe Erin > > You could write a wee wrappe

Re: [R] time attribute from a file

2009-07-21 Thread Steve Lianoglou
Hi, On Jul 21, 2009, at 4:54 PM, Erin Hodgess wrote: Dear R People: I am reading in a file via read.table. Is there a way to bring in the time that the file was created, please? See: ?file.info and the mtime, ctime, atime attributes it returns. -steve -- Steve Lianoglou Graduate Student

Re: [R] time attribute from a file

2009-07-21 Thread Erik Iverson
21, 2009 4:03 PM To: Erin Hodgess; R help Subject: Re: [R] time attribute from a file Tena koe Erin You could write a wee wrapper and give the file an attribute. For example, copy <- function (file = "clipboard", sep = "\t", na.strings = c("NA",

Re: [R] time attribute from a file

2009-07-21 Thread Tobias Verbeke
Erin Hodgess wrote: Dear R People: I am reading in a file via read.table. Is there a way to bring in the time that the file was created, please? Use file.info on the same file ? HTH, Tobias __ R-help@r-project.org mailing list https://stat.ethz.c

Re: [R] time attribute from a file

2009-07-21 Thread Peter Alspach
Tena koe Erin You could write a wee wrapper and give the file an attribute. For example, copy <- function (file = "clipboard", sep = "\t", na.strings = c("NA", "*"), as.is = T, ...) { myX <- read.table(file, sep = sep, na.strings = na.strings, as.is = as.is, ...) attr(myX,