gracias a todos por los repuestas que me han ayudado a resolver el problema



saludos,
Luis


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Luis Ridao Cruz
Faroe Marine Research Institute
Nóatún 1, P.O. Box 3051
FO-110 Tórshavn
Faroe Islands
Tel   : (+298) 353900
Fax: : (+298) 353901
e-mail: luisr@hav.fo
           luridao@gmail.com
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-



2014-01-31 Marcelino de la Cruz <marcelino.delacruz@upm.es>:

> A lo mejor lo que necesitas es esto:
>
> paste("'", paste(unlist(strsplit("98989,121212",",")),
> collapse="','"),"'", sep="")
>
>
>
>
> El 31/01/2014 12:58, Luis Ridao escribió:
>
>  lo que necesito es
>> "98989","121212"
>>
>>   y no :
>>
>> paste(unlist(strsplit(char,",")),collapse=",")
>> [1] "98989,121212"
>>
>>
>> Luis
>>
>>
>> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>> Luis Ridao Cruz
>> Faroe Marine Research Institute
>> Nóatún 1, P.O. Box 3051
>> FO-110 Tórshavn
>> Faroe Islands
>> Tel   : (+298) 353900
>> Fax: : (+298) 353901
>> e-mail: luisr@hav.fo
>>             luridao@gmail.com
>> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>>
>>
>>
>> 2014-01-31 Luis Iván Ortiz Valencia <liov2067@gmail.com>:
>>
>>  paste(unlist(strsplit(char,",")),collapse=",")
>>>>
>>> [1] "98989,121212"
>>>
>>>
>>> 2014-01-31 Luis Ridao <luridao@gmail.com>:
>>>
>>>  esto me convierte la cadena de caracteres en dos y eso no es lo que
>>>> quiero
>>>> además el resultado final de la cadena debe ser:
>>>>
>>>> "98989","121212"
>>>>
>>>> Luis
>>>>
>>>>
>>>>
>>>> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>>>> Luis Ridao Cruz
>>>> Faroe Marine Research Institute
>>>> Nóatún 1, P.O. Box 3051
>>>> FO-110 Tórshavn
>>>> Faroe Islands
>>>> Tel   : (+298) 353900
>>>> Fax: : (+298) 353901
>>>> e-mail: luisr@hav.fo
>>>>             luridao@gmail.com
>>>> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>>>>
>>>>
>>>>
>>>> 2014-01-31 José María Mateos <jmmateos@mce.hggm.es>:
>>>>
>>>>  El día 31 de enero de 2014, 12:15, Luis Ridao <luridao@gmail.com>
>>>>> escribió:
>>>>>
>>>>>> Como se podría transformar una cadena de caracteres:
>>>>>>
>>>>>> "98989,121212"
>>>>>>
>>>>>> en algo como esto:
>>>>>>
>>>>>> "98989","121212"
>>>>>>
>>>>>
>>>>> strsplit("98989,121212", ",")
>>>>>
>>>>>
>>>>          [[alternative HTML version deleted]]
>>>>
>>>>
>>>> _______________________________________________
>>>> R-help-es mailing list
>>>> R-help-es@r-project.org
>>>> https://stat.ethz.ch/mailman/listinfo/r-help-es
>>>>
>>>>
>>>>
>>>
>>> --
>>> Luis Iván Ortiz Valencia
>>> Doutorando Saúde Pública - Epidemiologia, IESC, UFRJ
>>> Estatístico Msc.
>>> Spatial Analyst Msc.
>>>
>>>
>>>
>>         [[alternative HTML version deleted]]
>>
>>
>>
>> _______________________________________________
>> R-help-es mailing list
>> R-help-es@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-help-es
>>
>>
> _______________________________________________
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>

	[[alternative HTML version deleted]]

