Excluding missing or bad data in R: not as easy as it should be!
www.emilkirkegaard.com
On-going series of posts about functions in my R package (https://github.com/Deleetdk/kirkegaard ). Suppose you have a list or a simple vector (lists are vectors) with some data. However, some of it is missing or bad in various ways: NA, NULL, NaN, Inf (or -Inf). Usually, we want to get rid of these datapoints, but it can be difficult with the built-in functions. R's built-in functions for handling missing (or bad) data are:
Excluding missing or bad data in R: not as easy as it should be!
Excluding missing or bad data in R: not as…
Excluding missing or bad data in R: not as easy as it should be!
On-going series of posts about functions in my R package (https://github.com/Deleetdk/kirkegaard ). Suppose you have a list or a simple vector (lists are vectors) with some data. However, some of it is missing or bad in various ways: NA, NULL, NaN, Inf (or -Inf). Usually, we want to get rid of these datapoints, but it can be difficult with the built-in functions. R's built-in functions for handling missing (or bad) data are: