techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.7K
active users

#dplyr

0 posts0 participants0 posts today

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 = c("delta^13*C", "delta^13*C", "delta^18*O", "delta^18*O"),
x = c(1,1, 2, 2),
y = c(1,3, 5, 4))

x <- "delta^13*C"

df %>%
filter(name == x)

# [1] name x y
# <0 rows> (or 0-length row.names)

df %>%
filter(name == "delta^13*C")

# name x y
# delta^13*C 1 1
# delta^13*C 1 3

I remember someone mentioning in this network a #R package that generates flowcharts from #dplyr filter/select statements (in chunks) with observations that were kept and removed. I lost this link, I wonder if I am making this memory, or it actually exists.

Día 25 | Incertidumbre – Riesgo | #30DayChartChallenge | Visualización hecha usando R a partir de los paquetes #ggplot2, #dplyr, #scales, #showtext y #sysfonts. | Fuente: Gannet – Virtual Assitant (app.gannet.ai) desarrollado por Data Friendly Space. La respuesta fue generada usando tres fuentes – 1) State of the Climate in Latin America and the Caribbean, 2) Latin America and the Caribbean Regional Overview of Food Security and Nutrition y 3) Anticipatory Action and Response Plan.