tbl_df
df$<column>
ordf[["<column>"]]
df[1, 3]
: row 1, column 3df[1, ]
: All columns for row 1df[, 3]
: All rows for column 3dplyr
and tidyr
are packages for manipulating and tidying dataggplot2
they form the backbone of the tidyverse
harp
is designed to integrate with the tidyverse and harnesses many methodsselect(df, col, col, col)
starts_with
ends_with
contains
matches
num_range
where
pull(df, col)
df$col
, but useful in pipelinesmutate(df, col = f(col))
across
, col names or a selection helper and a function or formulafilter(df, condition)
group_by
to define groupssummarize
to get a single value for groups%>%
to send result to the next functiongeolist
) are lists of 2d fields of gridded data (geofield
)list()
list()
or as.list()
(they work a bit differently…)c()
lapply
can be used to apply a function to all elements of a listpurrr
package is great for working with listslapply
, or a map
function from the purrr
packageTroubleshooting harp Installation