I am attempting to retrieve the index of all instances of a pattern in a String vector with missing values.
E.g. How can I get a vector with the index of all instances containing the pattern "a" from:
x = ["ab", "ca", "bc", missing, "ad"]
The desired outcome would be equal to:
Vector([1, 2, 5])
3-element Vector{Int64}:
1
2
5
As these are the indexes in which the pattern appears.