Skip to content
Back to formatted view

Raw Message

Message-ID: <1374753538.31658.YahooMailNeo@web160101.mail.bf1.yahoo.com>
Date: 2013-07-25T11:58:58Z
From: Fg Nu
Subject: cbind error with check.names
In-Reply-To: <E66794E69CFDE04D9A70842786030B931C328CF0@PA-MBX01.na.tibco.com>

>>  I meant what is the design principle behind check.names being hardcoded to 
> FALSE.
>>  I see no conflict with the purpose of cbind from the ability to specify 
> check.names
>>  at the level of cbind.


> Perhaps data.frame() should throw an error if there are duplicate names,
> or perhaps it should have a separate argument to say what to do about duplicate 
> names,
> but changing that sort of thing now would break a fair bit of code.? Perhaps
> cbind.data.frame should not call data.frame, but copy the work that data.frame
> does or perhaps it should check for duplicate names on the output of 
> data.frame().
> Is it worth the time to do that?
> 



Bill, thanks for your reply. I understand that this is one of things that just are. For me, the ability to check for duplicate names in dataframes is important, and it is surprising that I never realised before that cbind has this limitation.