[R] Value passing in print option

Kamil Bartocha kamil.bartocha at gmail.com
Mon Jul 20 09:27:03 CEST 2015


Also:

cat("Current value of y is",y,"\n")

Cheers,
K

On Mon, Jul 20, 2015 at 8:24 AM Uwe Ligges <ligges at statistik.tu-dortmund.de>
wrote:

> ?paste
>
> Best,
> Uwe Ligges
>
>
> On 20.07.2015 08:48, Partha Sinha wrote:
> > i want to pass a value with print option
> > x<-10
> > y<2*x
> > print("Current value of y is " ) # confused dont know how to pass value
> >
> > i want output as Current value of y is 10
> >
> >       [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help at 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.
> >
>
> ______________________________________________
> R-help at 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