[R] problem with data

R. Michael Weylandt michael.weylandt at gmail.com
Thu Mar 8 14:45:47 CET 2012


dput(x.sub) so we can see what you really have.


Michael

On Thu, Mar 8, 2012 at 4:35 AM, RMSOPS <ricardosousa2000 at clix.pt> wrote:
> Hello
>
>   In the variable x.sub$Time i have the many dates in format  2006-10-31
> 20:10:35 EST, for example when
> print (x.sub$Time) give this
>
> [1] "2006-10-31 20:10:35 EST" "2006-10-31 20:11:08 EST" "2006-10-31 20:11:21
> EST" "2006-10-31 20:12:16 EST"
>  [5] "2006-10-31 20:13:20 EST" "2006-10-31 20:13:28 EST" "2006-10-31
> 20:15:18 EST" "2006-10-31 20:16:06 EST"
>
> but when put in variable start the result in first position with code
> sart<-x.sub$Time[[1]], my goal by this code is save the
> result [1] "2006-10-31 20:10:35 EST".
>   The problem is the variable start give me  "[1]  35  8 21 16 20 28 18  6
> 40 17 52 15 13 12 23 10 39 40" when the goal is is to keep the original
> format  2006-10-31 20:10:35 EST.
>
>  How solve this problem.
>
>
>   Thanks
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/problem-with-data-tp4453510p4455978.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list