search for: strail

Displaying 2 results from an estimated 2 matches for "strail".

Did you mean: strain
2009 Nov 21
2
how to ignore NA when using cumsum?
...matrix, in which each row has 1 NA value. The usual "na.rm=TRUE" does not seem to work with the command cumsum. Is there another way to ignore the NAs or do I need to figure out a different way to do this? Here's an example matrix of title "proportion": Ntrail Strail NFJD Baldy Onion Crane [1,] NA 0.2944937 0.1779969 0.1808015 0.2296511 0.11705683 [2,] 0.2882713 NA 0.1795668 0.1823961 0.2316766 0.11808925 [3,] 0.1716890 0.1769419 NA 0.3518116 0.2025204 0.09703714 [4,] 0.1726311 0.1779128 0.3482548 NA 0.2036317 0.097...
2009 Nov 21
1
how to ignore NA when using cumsum WHILE retaining NAs?
...ly no data, which is not the same as a 0. The usual "na.rm=TRUE" does not seem to work with the command cumsum. Is there another way to ignore the NAs or do I need to figure out a different way to do this? Here's an example matrix of title "proportion": Ntrail Strail NFJD Baldy Onion Crane [1,] NA 0.2944937 0.1779969 0.1808015 0.2296511 0.11705683 [2,] 0.2882713 NA 0.1795668 0.1823961 0.2316766 0.11808925 [3,] 0.1716890 0.1769419 NA 0.3518116 0.2025204 0.09703714 [4,] 0.1726311 0.1779128 0.3482548 NA 0.2036317 0.097...