Displaying 2 results from an estimated 2 matches for "circumlocuitous".
2010 Aug 20
4
Regex exercise
..."8" "5:7" "10"
Finally, parse() the vector, eval() each element, and unlist() the
resulting list of numeric vectors:
> unlist(lapply(parse(text=x2),eval)) #giving, as desired,
[1] 1 2 3 4 5 3 4 5 6 4 8 5 6 7 10
This seems far too clumsy and circumlocuitous not to have a more
elegant solution from a true regex expert.
(Special note to Thomas Lumley: This seems one of the few instances
where eval(parse..)) may actually be appropriate.)
Cheers to all,
Bert
--
Bert Gunter
Genentech Nonclinical Biostatistics
2010 Aug 24
0
mlm for within subject design
...t;10"
>
> Finally, parse() the vector, eval() each element, and unlist() the
> resulting list of numeric vectors:
>
>> unlist(lapply(parse(text=x2),eval)) #giving, as desired,
> [1] 1 2 3 4 5 3 4 5 6 4 8 5 6 7 10
>
>
> This seems far too clumsy and circumlocuitous not to have a more
> elegant solution from a true regex expert.
>
> (Special note to Thomas Lumley: This seems one of the few instances
> where eval(parse..)) may actually be appropriate.)
>
> Cheers to all,
>
> Bert
>
> --
> Bert Gunter
> Genentech Nonclinical B...