Comments in R studio
Why would one want to add comments to his or her script? A code may be more advanced or less advanced, but as time goes by, and work piles up, naturally, we may forget what we’ve done, or forget our Read more…
Why would one want to add comments to his or her script? A code may be more advanced or less advanced, but as time goes by, and work piles up, naturally, we may forget what we’ve done, or forget our Read more…
The function all() is designed to test a vector or a data frame or a variable within a data frame, and make sure all its values follow a certain rule or rules. If all the values obey to this rule Read more…
Sometimes we want to show separate groups from a single dataset, upon a histogram plot. In R we can do it in several ways. In this article, we’ll discuss how to do it using the ggplot2 package, and the facet_grid Read more…
Working with data (sometimes large number of variables, or large number of observations), requires adding and removal of variables. In this article, we’ll discuss 4 ways: With assigning a new column: Mutate: Using data.frame() command: Using the cbind() command: First, Read more…
Boxplot is a plot shaped as a box, which depicts the distribution of a variable using certain measures in this distribution, such as minimum, maximum, all quarterlies, inter quartile range (IQR) and even outliers of the distribution. In R programming, Read more…