Show
Why data.table?
Features
Installationinstall.packages("data.table") # latest development version that has passed all tests: data.table::update_dev_pkg() See the Installation wiki for more details. UsageUse library(data.table) DT = as.data.table(iris) # FROM[WHERE, SELECT, GROUP BY] # DT [i, j, by] DT[Petal.Width > 1.0, mean(Petal.Length), by = Species] # Species V1 #1: versicolor 4.362791 #2: virginica 5.5520004 operator the same way you would use data.frame one, but...
library(data.table) DT = as.data.table(iris) # FROM[WHERE, SELECT, GROUP BY] # DT [i, j, by] DT[Petal.Width > 1.0, mean(Petal.Length), by = Species] # Species V1 #1: versicolor 4.362791 #2: virginica 5.552000 Getting started
CheatsheetsCommunity
Which of the following is not true when adding criteria to a data input form?Which of the following is not true when adding criteria to a data input form? The last matching record displays in the form.
When creating a one variable data table with input values in a column where must data table formulas start?Add a formula to a one-variable data table. Formulas that are used in a one-variable data table must refer to the same input cell. Do either of these: If the data table is column-oriented, enter the new formula in a blank cell to the right of an existing formula in the top row of the data table.
Which of the following statements is not true for assigning a macro to a button quizlet?Which of the following is not true when assigning a macro to a button? You can resize a button, but you cannot move the button.
Which is not true of filters in a PivotTable?Which is not true of filters in a PivotTable? Summary statistics do not change to reflect the values selected in the slicer.
|