[Rd] strsplit and the empty string

Wacek Kusnierczyk Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Thu Aug 21 10:18:12 CEST 2008


Christian Brechbühler wrote:
>
> I checked Perl, and it does exactly the same:
>   print join "==", split / /, " hello dolly "
> ==hello==dolly
> (that's 3 elements: "", "hello",  and "dolly").
>   
try

perl -e 'print join "==", split " ", " hello dolly "'

;)
vQ



More information about the R-devel mailing list