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