search for: ymiss

Displaying 1 result from an estimated 1 matches for "ymiss".

Did you mean: miss
2005 Jun 06
1
Missing values in argument of .Fortran.
...an subroutine which I am dynamically loading and calling by means of .Fortran(). The subroutine runs through the vector entry by entry; obviously I want to have it do one thing if y[i] is present and a different thing if it is missing. The way I am thinking of proceeding is along the xlines of: ymiss <- is.na(y) rslt <- .Fortran( "foo", NAOK=TRUE, as.double(y), as.logical(ymiss), etc, etc ) and inside ``foo'' have a logical branch based on the value of xmiss(i). Questions: (1) Is there a sexier way to proceed? E.g. is it possible within (g77) fortran...