Re: [Rd] strsplit and the empty string

From: Wacek Kusnierczyk <Waclaw.Marcin.Kusnierczyk_at_idi.ntnu.no>
Date: Thu, 21 Aug 2008 10:18:12 +0200

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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 21 Aug 2008 - 08:21:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Aug 2008 - 08:37:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive