[R] Length problem
bcarvalh at jhsph.edu
Mon Feb 11 16:56:12 CET 2008
if "data" was your data.frame, data[4:length(data)] was also a
but, c(data[4:length(data)] ) coerces it to a list.
therefore coppie is a list.
coppie is also a list of length 1...
compare that to: coppie[]
On Feb 11, 2008, at 10:38 AM, milton ruser wrote:
> Ciao Paolo,
> How about you show some row of your data?
> How many columns have your data.frame? One?
> By the way "data" is not a so good name for your data frame.
> We will be very happy to help you
> On 2/11/08, Paolo Grillo <paolo.grillo at guest.unimi.it> wrote:
>> Hi all
>> I have this problem:
>> In my database .dta, called "data" I have five rows
>> # From this database I wuold like to create another
>> but I find this
>> # Length of original data
>> 5 RIGHT!!
>> # Length of new data
>> 1 WHY??
>> Thank you all for your help
>> Paolo Grillo
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help