Displaying 1 result from an estimated 1 matches for "hadock".
Did you mean:
haddock
2004 Aug 13
2
lapply problem
...n sd
36.61490 11.50365
$ling
mean sd
86.17949 20.43587
$saithe
mean sd
50.275847 5.453606
$whiting
NULL
$"norway pout"
mean sd
13.739623 1.393104
$"great silver smelt"
mean sd
25.600000 1.549193
$"norway hadock"
mean sd
24.685225 3.902989
If I use
lapply(z2,function(x) ifelse(is.null(x),0,as.numeric(x)))
I get
> z2
$cod
[1] 62.5619
$haddock
[1] 36.6149
$ling
[1] 86.17949
$saithe
[1] 50.27585
$whiting
[1] 0
$"norway pout"
[1] 13.73962
$"great silver smelt&qu...