I have a function which takes a vector of zeros and ones for example:
foo(c(1,1,1,0,1,1))
But in some cases, there are more then 100 numbers and I have to add all commas manually. Is there any predefined function to convert a string to such a vector? Something like this:
foo(unknown_function("111011"))