Thank you very much to all of you.

I tried the Bret Collier suggestion and it worked.

Best,

Manuel


2013/3/27 Bret Collier <bret@tamu.edu>

> l=data.frame(col1=c(0,1,0), col2=c(1,0,1), col3=c(1, 0, 1), col4=c(0, 0,
> 1), col5=c("a", "a", "b"), col6=c("c", "d", "d"))
> ll=paste(l$col1, l$col2, l$col3, l$col4, sep="")
> data.frame(ll, a=l$col5, b=l$col6)
>
> see ?paste
>
> bret
>
>
> On 3/27/2013 8:15 AM, Manuel Spínola wrote:
>
>> Thank you very much to all that answered my question, some one of you
>> asked
>> me to be more specific, here is my question again:
>>
>> I hava a data frame:
>>
>> col1  col2 col3 col4 col5 col6
>> 0        1      1     0     a    c
>> 1        0      0     0     a    d
>> 0        1      1     1     b    d
>>
>> I want to end with a data frame like this (the first 4 columns without
>> space):
>>
>> 0110     a    c
>> 1000     a    d
>> 0111     b    d
>>
>>
>> Best,
>>
>> Manuel
>>
>>
>>
>> 2013/3/26 Roman LuÅ¡trik <roman.lustrik@gmail.com>
>>
>>  How do you want to remove the space, so that when you print a data frame
>>> that the columns are closer together? Pr perhaps you're trying to merge
>>> column names into a single string? Perhaps something third? Can you
>>> expand
>>> your answer?
>>>
>>> Cheers,
>>> Roman
>>>
>>>
>>>
>>> 2013/3/27 Manuel SpÃ­nola <mspinola10@gmail.com>
>>>
>>>  Dera list members,
>>>>
>>>> How to remove spaces among columns in a data frame.
>>>>
>>>> 1 2 3 4  to become 1234
>>>>
>>>> Best,
>>>>
>>>> Manuel
>>>>
>>>> --
>>>> *Manuel SpÃ­nola, Ph.D.*
>>>>
>>>> Instituto Internacional en ConservaciÃ³n y Manejo de Vida Silvestre
>>>>
>>>> Universidad Nacional
>>>> Apartado 1350-3000
>>>> Heredia
>>>> COSTA RICA
>>>> mspinola@una.ac.cr
>>>> mspinola10@gmail.com
>>>> TelÃ©fono: (506) 2277-3598
>>>> Fax: (506) 2237-7036
>>>> Personal website: Lobito de rÃ­o <
>>>>
>>>> https://sites.google.com/site/**lobitoderio/<https://sites.google.com/site/lobitoderio/>
>>>> >
>>>> Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/**>
>>>>
>>>>          [[alternative HTML version deleted]]
>>>>
>>>>
>>>> ______________________________**_________________
>>>> R-sig-ecology mailing list
>>>> R-sig-ecology@r-project.org
>>>> https://stat.ethz.ch/mailman/**listinfo/r-sig-ecology<https://stat.ethz.ch/mailman/listinfo/r-sig-ecology>
>>>>
>>>>
>>>>
>>>
>>> --
>>> In God we trust, all others bring data.
>>>
>>>
>>
>>
>>
>>
>> ______________________________**_________________
>> R-sig-ecology mailing list
>> R-sig-ecology@r-project.org
>> https://stat.ethz.ch/mailman/**listinfo/r-sig-ecology<https://stat.ethz.ch/mailman/listinfo/r-sig-ecology>
>>
>>
> ______________________________**_________________
> R-sig-ecology mailing list
> R-sig-ecology@r-project.org
> https://stat.ethz.ch/mailman/**listinfo/r-sig-ecology<https://stat.ethz.ch/mailman/listinfo/r-sig-ecology>
>



-- 
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola@una.ac.cr
mspinola10@gmail.com
Teléfono: (506) 2277-3598
Fax: (506) 2237-7036
Personal website: Lobito de río <https://sites.google.com/site/lobitoderio/>
Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>

	[[alternative HTML version deleted]]

