You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to have a function that selects all data columns (excluding index and any columns created by index_by).
For example, I am converting some tibble based code into tsibble based code. My current code looks like this
data|>
mutate(across(-dtm, ~ log(.x/ lag(.x))))
But I have to know what the index column is called. Would be nice to be able to write generic code that takes a tsibble and knows what to do with it without knowing what the index is called. It's been a while since I used xts but I seem to recall that the index is not a normal column in xts and so such generic code is natural.
It would be useful to have a function that selects all data columns (excluding index and any columns created by index_by).
For example, I am converting some tibble based code into tsibble based code. My current code looks like this
But I have to know what the index column is called. Would be nice to be able to write generic code that takes a tsibble and knows what to do with it without knowing what the index is called. It's been a while since I used xts but I seem to recall that the index is not a normal column in xts and so such generic code is natural.
The following does not work
because
everything()
includes the index column.What I am proposing is one or both of the following options
with perhaps more thought given to the actual names of these functions.
The text was updated successfully, but these errors were encountered: