#lapply
📝 "Apply Family Notebook"

Master R's "Apply" family functions with this quick guide.

👤 Meghan Harris

🔗 https://www.thetidytrekker.com/post/applyfamilynotes/apply-family.html

#rladies#rstats#oldiebutgoodie#r#rprogramming#baser#apply#lapply#sapply#functionalprogramming
November 8, 2026 at 1:56 PM
i am going to reward myself with the dumb clever function name here. (152 iterations per second -> 2727 iterations per second)
October 26, 2026 at 7:13 PM
Hit em with two syllable 'lapply"
October 23, 2026 at 11:44 AM
again, the NYT Spelling Bee is wrong. #RStats
October 21, 2026 at 10:39 AM
No curso de Programação em R, traduzi as lições Olhando os Dados, lapply e sapply, vapply e tapply. Também corrigi o caminho dos dados que impedia três lições de abrir depois de instaladas.
September 17, 2026 at 3:27 PM
With futurize(), you can pipe your code and parallelize it as-is, no rewrites needed. The same script runs seamlessly on a laptop, a cluster, or the cloud.

📍 Compute! Paris 2026 — Nov 25–26

futurize.futureverse.org

👉 compute.events/paris2026%22
Parallelize Common Functions via One Magic Function
The futurize() function <doi:10.48550/arXiv.2601.17578> turns sequential map-reduce functions such as base::lapply(), purrr::map(), foreach::foreach() %do% { ... } into concurrent alternatives,…
futurize.futureverse.org
September 14, 2026 at 3:40 PM
d <- lme4::toenail
ids <- unique(d$patientID)
b <- 200
assignment <- ids |>
rep(b) |>
sample() |>
split(rep(seq_len(b), each = length(ids))) |>
unname() |>
# if you want separate cluster ids for each resample
lapply(function(xs) data.frame(patientID = xs, resample_id = seq_along(xs)))
August 25, 2026 at 9:13 PM
TIL what the heck grepl does in R. I suspect this is another embarrassing thing I have been coding “around” for years.

My previous horrors were grep(TRUE, …) because I didn’t know about which and lapply(as.list(), …) because I didn’t know about sapply.

Am I the only one who does this?
June 11, 2025 at 3:14 PM
i WAS considering hiring some new henchmen
April 27, 2026 at 4:59 PM
Navigating quadruple-nested lapply()s in R got me like
January 21, 2025 at 6:41 PM
The {batchLLM} #RStats 📦 can batch process your #LLM requests by “looping across rows of a data frame column.” Results are generated in a new column.
Supports OpenAI, Claude & Gemini. Includes a Shiny add-in. By @dylanpieper.bsky.social
#GenAI #R

github.com/dylanpieper/...
December 4, 2024 at 1:22 PM
Forget about Excel @lapply
, Use these R Shiny Packages Instead https://www.r-bloggers.com/forget-about-excel-use-these-r-shiny-packages-instead/ via @Rbloggers
Forget about Excel, Use these R Shiny Packages Instead
www.r-bloggers.com
January 22, 2025 at 4:09 PM
explor 0.3.1 an efficient tool that make multidimensional data analysis and their interpretation intelligible. thank's @lapply #rstats https://twitter.com/lapply/status/809704427489808385
January 22, 2025 at 3:58 PM
Not really. Students were using it and I felt that I should know how it works. I have to say it’s very fast for big data, though I hear that data.table is just as good. Still gotta bring out the for loops and lapply often.
July 12, 2025 at 4:45 PM
Learn how to generate, operate on, and modify lists in R programming. Complete guide covering list creation, element updates, deletion methods, and practical examples for efficient data management.
#statisticsmcqs #Rlanguage #RProgramming #learnR #Rdataanalysis #Rquiz #RlanguageMCQs #RBasics #Rwork
Lists in R Programming
Learn how to generate, operate on, and modify lists in R programming. Complete guide covering list creation, element updates, deletion methods, and practical examples for efficient data management. Explain how to generate lists in R Programming? Using Colon Operator Using the list() function Using lapply() to generate lists Explain how to operate on lists in R Programming? Checking list properties&hellip;
rfaqs.com
October 8, 2025 at 2:18 AM
A year ago I didn't use lapply... now using it regularly! #rstats lapply(as.character(seedset[,10]), function(x) which(grid==x), arr.ind=T)
May 23, 2025 at 3:50 PM
Resisting the urge to enter lapply, tapply, and rapply.
November 3, 2024 at 1:03 PM
Hey #rstats crew, I found a weird bug in ggsave, concerning for those of us who batch plot things...

https://github.com/tidyverse/ggplot2/issues/6539

I think it's an actual bug and not just me being clueless, but happy to be told otherwise :)
ggsave in lapply - erroneously renaming plots on save · Issue #6539 · tidyverse/ggplot2
Hi all, I have found a weird problem when saving lists of plots with ggsave and lapply. I have a large dataframe of elemental data for different samples which I typically plot in batches using lapp...
github.com
July 2, 2025 at 3:29 PM
Hey #rstats hivemind, can someone sanity check me?

for some reason filtering with a value assigned to 'x' isn't working here (I was trying to make a dummy dataset for an lapply + ggplot problem I'm having, and instrad have bumped into this weird inconcistency).

df <- data.frame(name = […]
Original post on fediscience.org
fediscience.org
June 25, 2025 at 2:37 PM
I'm assuming there's `n` columns that start with "CHI" but only some are the appropriate numeric type.

I love `across`, it's far better then the only "stop and use lapply/map to apply some logic to certain columns".
May 17, 2025 at 2:06 AM
They say I'm old for doing the <- thing , and for using lapply everywhere
April 14, 2025 at 8:14 PM
Here's a quick way using #rstats to create a copy of a data frame where all the variables have the same distributions but no relationships to other variables, useful for checking that your modeling code works while also helping you resist the temptation to tweak the model, overfitting the data:
February 8, 2026 at 1:58 AM
Best I can do is an inscrutable message about lapply().
October 29, 2024 at 2:34 AM
I myself use lapply etc. a lot, though for a different reason: laziness :-) . Writing a loop requires a lot of extra typing, and I also hate to write the code that initializes memory space for the output. And yes, *apply code often is more readable. But when it isn't so, why use it? 4/4
April 4, 2025 at 1:49 AM