[R] generic functions question in building a new package

2012-07-20 Thread zgu9
Hi all, I'm trying to build a package 'Thiele', but run into problems with generic functions. I have a class Benefit, and defined the function print.Benefit. When I try R CMD check Thiele in X11, this warning came out --- Functions/methods with usage in documentation object 'Benefit' but

Re: [R] Exporting data from R into an Excel File on Mac

2012-06-21 Thread zgu9
You can try the following line. write.csv(x,file=x.csv) Eric Maureen Hayden wrote Dear R Professionals, I am currently an intern at the University of Rhode Island and I need to know how to export data from R into an Excel file. As it is my understanding, xlsReadWrite is not available for

[R] How to read a function from keyboard?

2012-05-22 Thread zgu9
Hi everyone, I have an R problem about Input. I want to read an arbitrage function from keyboard. But I don't know how. I tried scan(), readLines() but fail to make the output as a function, or a list that I can use as.function to transform. Is it possible for R to do so? Thank you. Eric --