Displaying 1 result from an estimated 1 matches for "tp1016278p1016278".
2010 Jan 18
2
function to set log(0)=0 not working on tables or vectors
...[1] 0
but if I try whole vectors or tables:
p<-c(4,3,1,0)
q<-c(2,2,2,2)
llog(p/q)
I get this:
[1] 0.6931472 0.4054651 -0.6931472 -Inf
What am I missing?
Thanks!
Maja
--
View this message in context: http://n4.nabble.com/function-to-set-log-0-0-not-working-on-tables-or-vectors-tp1016278p1016278.html
Sent from the R help mailing list archive at Nabble.com.