Top "Magrittr" questions

The magrittr package provides operators for chaining R expressions with forward pipes.

R: use magrittr pipe operator in self written package

I would like to use the pipe-operator %>% introduced in the magrittr package in a package I wrote myself to …

r namespaces magrittr
How to set the row names of a data frame passed on with the pipe %>% operator?

I have a data frame which I am dcasting using the reshape2 package, and I would like to remove the …

r dataframe dplyr magrittr
How to extract / subset an element from a list with the magrittr %>% pipe?

Since the introduction of the %>% operator in the magrittr package (and it's use in dplyr), I have started to …

r magrittr
Dplyr or Magrittr - tolower?

Is it possible to set all column names to upper or lower within a dplyr or magrittr chain? In the …

r dplyr magrittr
how to feed the result of a pipe chain (magrittr) to an object

This is a fairly simply question. But I couldn't find the answer per google/stackexchange and looking at the documentation …

r magrittr
R: Further subset a selection using the pipe %>% and placeholder

I recently discovered the pipe operator %>%, which can make code more readable. Here is my MWE. library(dplyr) # for …

r dplyr magrittr
Get index of a specific element in vector using %>% operator

I want the index of an element in a vector x x <- c("apple", "banana", "peach", "cherry") With …

r dplyr magrittr
Use purrr::map to apply multiple arguments to a function

I have a data frame like this df <- data.frame(tiny = rep(letters[1:3], 20), block = rnorm(60), tray = runif(60, min=0.4, …

r ggplot2 dplyr magrittr purrr
Chain arithmetic operators in dplyr with %>% pipe

I would like to understand why, in the the dplyr or magrittr package, and more specifically the chaining function %>% …

r dplyr piping magrittr
rollmean with dplyr and magrittr

Given the following data: set.seed(1) data <- data.frame(o=c('a','a','a','a','b','b','b',…

r zoo dplyr magrittr