Hello all,
I am trying to use the tapply function to sum some values and change the
column names of the resulting vector.
I input
Emp Et
1 10565 ACC
2 7515 ADM
3625 AGF
4 6243 CNS
5 12721 EDU
6 3924 FIN
7 18140 HLH
8 3686 INF
9 15841 MFG
10 243 MIN
11 1864 MNG
12
I think the problem is that there is no value for RST in Emp.Et.Em.
-Ista
On Mon, Jan 25, 2010 at 6:57 PM, LCOG1 jr...@lcog.org wrote:
Hello all,
I am trying to use the tapply function to sum some values and change the
column names of the resulting vector.
I input
Emp Et
1 10565
Try this:
tapply(Emp.Et.Em[EtToEm..$Et], EtToEm..$Em, sum, na.rm = TRUE)
On Mon, Jan 25, 2010 at 4:57 PM, LCOG1 jr...@lcog.org wrote:
Hello all,
I am trying to use the tapply function to sum some values and change the
column names of the resulting vector.
I input
Emp Et
1 10565
Ista you have suggested the correct solution, i didnt htink it would matter
not having that value but it did. Things work as they should now, thankyou
--
View this message in context:
http://n4.nabble.com/Issue-using-tapply-tp1289681p1289764.html
Sent from the R help mailing list archive at
4 matches
Mail list logo