[R] concatenate data frame

Don MacQueen macq at llnl.gov
Thu Dec 8 17:17:00 CET 2005

Having no idea what the object "no" is, or what the object "off_set" 
is, it is difficult to understand what you are trying to do. Perhaps 
if you substituted simple numbers in the example, such as

    tab[ 1:5, 15]

it would be easier to understand.

Perhaps what you really want is cbind() or rbind(), not c().

Probably, it would be better to use ncol(tab) rather than length(tab).


At 6:38 PM +0100 12/7/05, herodote at oreka.com wrote:
>hi all
>Here is a small part of my code:
>Here is the output:
>Error in attach(tab) : attach only works for lists and data frames
>Execution halted
>How do i concatenate them in order to keep the data frame structure?
>thks for your help
>R-help at stat.math.ethz.ch mailing list
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA

More information about the R-help mailing list