Suppose these are the contents of a cell in the column of a dataframe:
TOMATOE..cdfg.abce.POTATOE......L...All.Counts..numbers.Text..
1 \ <NA>
2 \ <NA>
3 \ <NA>
4 <NA>
Is may be the problem that the <NA>\ are not in a single row but in rows 1, 2, 3, 4?
Nothing seems to work. However df <- mutate_all(df,
funs(str_replace_all(., "\[|\]", ""))) works very well to remove the brackets
df <- mutate_all(df, funs(str_replace(.,"\<|N|A|\>", ""))) does not work.
The only difference is that in the data frame column for the case of the brackets, there is only 1 row\ [34.5][23.4]....., but in the <NA> column there are several rows.
1 <NA>
2 <NA>
3 <NA> and so own. I wonder if the is the reason why replace function does not work for <NA>.