[R] Transformation of data!

Rolf Turner r.turner at auckland.ac.nz
Thu Jul 16 22:46:28 CEST 2009


On 17/07/2009, at 8:09 AM, Andriy Fetsun wrote:

> 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!

Huh?

What about:

foo <- function(x){
y <- matrix(c(0.017511063,0.017819918,0.017944472),ncol=1)
rownames(y) <- 10:12
y
}

(Translation:  Your question makes absolutely no sense at all.)

	cheers,

		Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}




More information about the R-help mailing list