Closed dankelley closed 7 years ago
This is now fixed in the develop
branch, commit 44df9b05db38e2a9c58e4a564c91fd784d03b24a, for this single function (see below). I'll fix the other functions within a week or so.
library(oce)
a <- as.ctd(30:35,c(10,NA,12,13,14,15),10:15)
a[["CT"]]
[1] 10.07951 NA 12.05066 13.03213 14.01094 14.98715
I think I've addressed this in all functions, in the develop
branch, commit 31ae749b1bd810ceae79544a5f877165906b271d (click the link in a webbrowser to see the git-diff).
This is the sort of repetitive editing exercise that is easy to get wrong, but
NA
argument valuesGiven all of this, I'm closing the issue.
This example came up in some work with
oce
, and so I'll illustrate with oce code. I see how to fix this, and have done it for theCT
as a test case (i.e. below is from the OLD code; the 0.00000 will become NA in the NEW code)