Re: [R] Where can I get the sweave package ?

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Fri 20 Oct 2006 - 11:20:07 GMT

justin bem wrote:
> Hi,
>
> I want to know where I can get the sweave package
>

Sweave() is a function in the "utils" package which ships with R.

Uwe Ligges

> Justin BEM
> Elève Ingénieur Statisticien Economiste
> BP 294 Yaoundé.
> Tél (00237)9597295.
>
>
>
> ----- Message d'origine ----
> De : Marc Schwartz <MSchwartz@mn.rr.com>
> À : Gabor Grothendieck <ggrothendieck@gmail.com>
> Cc : R-Help <r-help@stat.math.ethz.ch>
> Envoyé le : Vendredi, 20 Octobre 2006, 5h06mn 09s
> Objet : Re: [R] how to replace the second "-"
>
>
> Just another possibility:
>
>> sub("-([0-9])$", "0\\1", c("1-1-1", "1-1-2", "1-2-1"))
> [1] "1-101" "1-102" "1-201"
>
> Regards,
>
> Marc Schwartz
>
> On Thu, 2006-10-19 at 23:38 -0400, Gabor Grothendieck wrote:
>> Try this:
>>
>> sub("(-[^-]*)-", "\\10", c("1-1-1", "1-1-2", "1-2-1"))
>>
>>
>> On 10/19/06, ronggui <ronggui.huang@gmail.com> wrote:
>>> I have a string vector like these:
>>> [1] "1-1-1" "1-1-2" "1-2-1"
>>>
>>> And I wanna replace the second "-" with "0", that is, I wanna get the result
>>> like: [1] "1-101" "1-102" "1-201".
>>>
>>> How should I write the Regular Expressions? Thanks!
>>>
>>> --
>>> »ÆÈÙ¹ó
>>> Department of Sociology
>>> Fudan University
>>>
>>> [[alternative HTML version deleted]]
>>>
>>>
>>> ______________________________________________
>>> R-help@stat.math.ethz.ch mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>>
>>>
>> ______________________________________________
>> R-help@stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
>
>
>
>
> ___________________________________________________________________________
> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
>
>
> [[alternative HTML version deleted]]
>
>
>
> ------------------------------------------------------------------------
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri Oct 20 21:26:24 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 20 Oct 2006 - 12:30:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.