Try this:

Lines <- "2007-12-03 13:50:17 Juan Perez"
read.csv2(textConnection(gsub("(:\\d{2})\\s", "\\1;", Lines)), header =
FALSE)


On Fri, Jun 18, 2010 at 11:58 AM, Sebastian Kruk <residuo.so...@gmail.com>wrote:

> I a have a text file where every line is like that:
>
> "2007-12-03 13:50:17 Juan Perez"
> ("yy-mm-dd hh:mm:ss First Name Second Name")
>
> I would like to make a data frame with two column one for date and the
> other one for name.
>
> When I use read.delim it was transformed in a data frame with 4 colums.
>
> Bye,
>
> Sebastián.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to