Re: [R] Value passing in print option

2015-07-20 Thread David Winsemius
On Jul 19, 2015, at 11:48 PM, 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 With that code we really do not have any assurance that y is 10 (o

Re: [R] Value passing in print option

2015-07-20 Thread Kamil Bartocha
Also: cat("Current value of y is",y,"\n") Cheers, K On Mon, Jul 20, 2015 at 8:24 AM Uwe Ligges 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

Re: [R] Value passing in print option

2015-07-20 Thread Uwe Ligges
?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]] __