powered by
Replaces special characters in your data frame to NA
removeSpecial(df, vec)
name of your data frame
vector containing the special characters you want to replace with NA
Returns the modified data frame
# NOT RUN { data(iris) iris[1,2]<-"?" iris[2,2]<-"@" iris[3,2]<-"???" iris<-removeSpecial(iris,c("@","???")) head(iris) # }
Run the code above in your browser using DataLab