Thanks a lot :)
It is doing exactly what I want
Naira
David Freedman wrote:
>
> try
>
> newdata=do.call(rbind,l)
>
> David Freedman, Atlanta
>
>
>
>
> Naira wrote:
>>
>> Dear all,
>>
>> I would like to know whether it is possi
:
unlist(l)
Name1 Name2 Age1 Age2 Name1 Name2 Age1 Age2
1 2 1 2 1 2 3 4
Is there a way to at least obtain something like
A 1 B 2 C 3 D 4 as result from the unlist??
Thanks a lot for your replies
Naira
--
View this message in context:
http://www.nabble.com/unlist
l
[[1]]
Name Age
1A 1
2B 2
[[2]]
Name Age
1C 3
2D 4
3E 5
Naira
Naira wrote:
>
> Dear all,
>
> I would like to know whether it is possible to unlist elements and keep
> the original format of the data.
> To make it more clear, let me give an e
Hi Jens,
If the matrix you described is m.
Then, you can do
> unique(as.vector(m))
[1] 0.1 2.0 0.0 3.0 50.0 1.0 100.0
> order(unique(as.vector(m)))
[1] 3 1 6 2 4 5 7
Hope this helps :)
Naira
Jens Oldeland wrote:
Dear All,
a short and maybe simple question:
I have to ra
uot;,"bb","cat","cat","ab")))
which is also doing the right job.
Thx a lot for your fast replies.
Naira
Jim Lemon wrote:
Naira wrote:
Dear all,
I would like to know if there is an easy to transform a vector of
strings to
a vector of integers.
Ex: (&quo
Dear all,
I would like to know if there is an easy to transform a vector of strings to
a vector of integers.
Ex:
("ab","ab","bb","cat","cat","ab") will be
(1, 1, 2, 3, 3, 1)
Thx,
Naira
--
View this message in context:
http://www
functionName(int &var){}
Thanks a lot,
Naira
--
View this message in context:
http://www.nabble.com/R-and-C---variable-by-reference-tp17249053p17249053.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
h
7 matches
Mail list logo