[R] return character

From: Judy Chung <cp3942_at_gmail.com>
Date: Tue 06 Dec 2005 - 17:22:52 EST


Hi All,
I have several lines of commands, and beacuse I will use these many times, so I collected
these commands together using a function to describe it. like the following: my.fun<-function(){

   .........
   entertitle()
   xaxis<-A
   yaxis<-B
   plot(....,xlab=xaxis,ylab=yaxis)
   .......
}

entertitle<-function() {

   cat("enter the name of A\n")
   A<-readline()
   cat("enter the name of B\n")
   B<-readline()
   return(A,B)
}

I hope the A and B generate form function " entertitle " can return to my.fun, and
do the following processing. Am I missing something? Any help as to where to start would be welcome. Thanks in advanced !!



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 Received on Tue Dec 06 17:29:28 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:29 EST