Monitor: Removing zero values from the data set.

May 17, 2012

(This article was first published on NIR-Quimiometría, and kindly contributed to R-bloggers)

I continue developing the Monitor function. This time a video from  “r twotorials”:
“how to access different records within a data frame by using logical tests in r”, gave me the idea to remove the zero values from a data set.
When somebody give you a table like the one I show, if the laboratory did not analyze a sample for any reason, I write a cero. So cero is not a reference value.
It will be diferent if we have for example: 0,001 or 0,00005, in this case we are managing very low concentrations, but we dont say just 0.
Anyway we can do a similar approach if we prefer “NA” indeed “0”.
So, I prepare a new video with how the function performs right now:
Hope you like.

To leave a comment for the author, please follow the link and comment on their blog: NIR-Quimiometría. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...


Comments are closed.


Mango solutions

plotly webpage

dominolab webpage

Zero Inflated Models and Generalized Linear Mixed Models with R

Quantide: statistical consulting and training




CRC R books series

Six Sigma Online Training

Contact us if you wish to help support R-bloggers, and place your banner here.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)