Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 206316

Replace missed values with NA [duplicate]

$
0
0

I have a dataset but some of the values has ? rather than a valid value.

I would like to replace the ? with real NA so I can omit them easily omit them with

na.rm = TRUE 

to do this I used openrefine, and

Edit cell -> Transform ->value.replace("?","NA")

Although, it changes the ? To NA but the type of NA is string, so it is not useful

How can I convert it too a real NA?


Viewing all articles
Browse latest Browse all 206316

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>