Displaying 1 result from an estimated 1 matches for "regrexpr".
Did you mean:
regexpr
2006 Oct 23
2
character manipulation
...92"
Now, I would like to determine how many " " (space) there are in each
line ...
After to have wipes out the extra spaces (double spaces) with
data1[i]<-gsub(x=data1[i],pattern=" ",replacement="
",fixed=FALSE,extended=FALSE)
I have attempted with regrexpr, sub, strsplit and many other
character fonctions but I could not obtain the number of " " in each
line, in order to further do a test on it.
The answer may be trivial but at this time I gave up!!
Cheers
Nicolas Degallier
UMR 7159 / IRD UR182
Laboratoire d'Oc?anographie et du...