NA, .
:
iv[gsub(" ", "", iv)=="."] <- NA
:
(.. "."),
iv[ iv=="."] <- NA.
, , "." .10, .15 ..,
, , ==.
, R, \., escape R, \\.
Edit: Note that the line above does not permanently remove spaces from iv. Take a look at gsub(" ", "", iv)=="."This returns the T / F vector, which in turn is used for filtering iv. In addition to the values NA, it ivremains unchanged.
EDIT # 2:
If you want the changes to be saved on another vector, you can use the following:
out <- iv
out[gsub(" ", "", iv)=="."] <- NA
source
share