[R] Transformation of data!

John Kane jrkrideau at yahoo.ca
Thu Jul 16 23:25:10 CEST 2009


That is what you have. It just prints to screen that way. 

If you want you could put it into a one column data.frame, that is,
mydata <- data.frame(myvector) which may give you the layout you want.


--- On Thu, 7/16/09, Andriy Fetsun <fetsun at googlemail.com> wrote:

> From: Andriy Fetsun <fetsun at googlemail.com>
> Subject: [R] Transformation of data!
> To: r-help-request at r-project.org, r-help at r-project.org
> Received: Thursday, July 16, 2009, 4:09 PM
> Hi Colleagues,
> 
> Could you please help?
> 
> I get as the output of my calculations following
> 
>    [1]  0.000000e+00 
> 1.890000e-04  3.933000e-05  1.701501e-04 
> 2.040456e-04
>    [6]  3.119242e-04 
> 2.545665e-04  1.893930e-03  1.303112e-03 
> 9.880183e-04
>   [11]  1.504378e-03  1.549246e-03 
> 5.877690e-04  4.771359e-04  8.528219e-04
> 
> How is it possible to transform the data to get a vector as
> following
> 
> 10   0.017511063
> 11   0.017819918
> 12   0.017944472
> 
> 
> Thank you in advance!
> 
> -- 
> Best regards,
> 
> Andy
> 
>     [[alternative HTML version deleted]]
> 
> ______________________________________________
> 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.
> 


      __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.




More information about the R-help mailing list