(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**.R-bloggers.com 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...