[R] conditional output of string to file n times...

Eric Berger er|cjberger @end|ng |rom gm@||@com
Wed Jul 7 10:01:13 CEST 2021


much nicer

On Wed, Jul 7, 2021 at 10:58 AM Ivan Krylov <krylov.r00t using gmail.com> wrote:

> On Tue, 6 Jul 2021 09:27:20 -0400
> Evan Cooch <evan.cooch using gmail.com> wrote:
>
> > I was wondering if there was an elegant/simple way to do this?
>
> rep(label, times = count) should give you a character vector with the
> answer ready for writeLines().
>
> --
> Best regards,
> Ivan
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list