R/pos.char.R

Defines functions pos.char

Documented in pos.char

pos.char <-
function(string,char)
{  zz <- stringf(as.character(string))
   if (char%in%zz)
     { z <- which (zz==char)}  else
       { z <- NA }
    # returns all occurrences
   return (z[1])
}

Try the Biograph package in your browser

Any scripts or data that you put into this service are public.

Biograph documentation built on May 1, 2019, 8:48 p.m.