From beissbarth at wehi.edu.au  Tue Nov  1 18:36:04 2005
From: beissbarth at wehi.edu.au (beissbarth@wehi.edu.au)
Date: Tue,  1 Nov 2005 18:36:04 +0100 (CET)
Subject: [Rd] strsplit ignores empty fields (PR#8271)
Message-ID: <20051101173604.5D89D23D14@slim.kubism.ku.dk>

Full_Name: Tim Beissbarth
Version: 2.2.0
OS: Windows
Submission from: (NULL) (193.174.58.254)


strsplit ignores empty strings at the end. 

> strsplit(paste(c("", "a", ""), collapse="#"), split="#", fixed=TRUE)
[[1]]
[1] ""  "a"

This should really give:
[1] ""  "a"  ""

Some might say this is a feature, but strsplit should be the reverse of paste, I
think.



[Rd] strsplit ignores empty fields (PR#8271)
beissbarth@wehi.edu.au