Displaying 1 result from an estimated 1 matches for "ida4".
Did you mean:
ida
2009 Aug 25
1
Filling in empty arrays/lists from using "paste" function
Dear R users,
I am trying to fill in arrays (5 different according to distinct "id")
from objects produced from arbitrary data set below.
a <-
data.frame(id=rep(c("idA1","idA2","idA3","idA4","idA5"),2),pro=c("bb","uu","ee","tt","uu","gg","tt","bb","gg","ee"),sal=rpois(10,2))
id pro sal
1 idA1 bb 2
2 idA2 uu 0
3 idA3 ee 3
4 idA4 tt 2
5 idA5 uu...