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
In the below example we see that using str_split(..., simplify = TRUE) |> _[2] within a mutate call requires a rowwise statement to produce the expected output. I assume this is because simplify produces a character matrix rather than vector of strings.
Is this expected behaviour? If so it might be useful to have an unlist argument analogue of simplify which produces a vector of strings rather than a character matrix. I.e. the two would be equivalent: str_split(..., unlist = TRUE) & str_split(...) |> unlist() . As I'm typing this I am realising that this is the latter is actually more succinct 😅, so feel free to close this if this is expected behaviour
.
The text was updated successfully, but these errors were encountered:
In the below example we see that using str_split(..., simplify = TRUE) |> _[2] within a mutate call requires a rowwise statement to produce the expected output. I assume this is because simplify produces a character matrix rather than vector of strings.
Is this expected behaviour? If so it might be useful to have an unlist argument analogue of simplify which produces a vector of strings rather than a character matrix. I.e. the two would be equivalent: str_split(..., unlist = TRUE) & str_split(...) |> unlist() . As I'm typing this I am realising that this is the latter is actually more succinct 😅, so feel free to close this if this is expected behaviour
.
The text was updated successfully, but these errors were encountered: