first of all, there is no problem with the following code, i.e. it does not benefit from the use of all_of
ZND0 <- c(0.16345747, 0.14249414, 0.13196069)
ZND3 <- c(0.104881450, 0.105833764, 0.114355231)
data.frame(zer0 = ZND0,
three = ZND3)
I think your issue here relates to your use of gather. What is your intent ?
You want a longer structure, this would work
ZND0 <- c(0.16345747, 0.14249414, 0.13196069)
ZND3 <- c(0.104881450, 0.105833764, 0.114355231)
data.frame(zer0 = ZND0,
three = ZND3) %>%
gather(key = "day",value = "FvFm")
#or
data.frame(zer0 = ZND0,
three = ZND3) %>%
gather(key = "day",value = "FvFm",zer0,three)