News

R lets you slice your data sets in various ways, depending on the data type. To select just certain columns from a data frame, you can either refer to the columns by name or by their location (i.e ...
This will find all rows in the mtcars sample data frame that have an mpg greater than 20, ordered from highest to lowest mpg. Examine and edit data with a GUI.
The example here can be interpreted as, "Make a vector of (double) values starting at 1.0 and ending at 3.0, incrementing by 0.5." So the result is (1.0, 1.5, 2.0, 2.5, 3.0). ... Data Frames An R data ...
R data.table code becomes more efficient — and elegant — when you take advantage of its special symbols and functions. With that in mind, we’ll look at some special ways to subset, count ...
R has a number of quick, elegant ways to join data frames by a common column. I’d like to show you three of them: base R’s merge() function; dplyr’s join family of functions; data.table’s ...