[R] add text to the first line of an output file

2014-10-21 Thread YIHSU CHEN
Hi guys; I want to write some text at the first line of an output file. The output file will be used for other software. In particular, the following text "ampl.tab 2 1" needs to be added to the first line of an df output file. As a hypothetic example, the output in text file should be like: a

[R] how to plot implicit functions

2008-12-11 Thread YIHSU CHEN
Dear R users -- I think this question was asked before but there was no reply to it. I would appreciate any suggestion any of you might have. I am interested in plotting several "implicit functions" (F(x,y,z)=0) on the same fig. Is there anyone who has an example code of how to do this? Than

[R] plot multivariate function with known coefficient.

2008-12-10 Thread YIHSU CHEN
nown. Can "curve" do this? So far, I have only seen univariate case. Thank you. Yihsu Chen __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-

[R] calculation fraction/ratio

2008-02-02 Thread YIHSU CHEN
Dear R users I wonder if there is a quick way to calculate the ratio/fraction of a list/data frame. For example, if I have a data frame with two fields: "Index" and "A". I would like to know the fractions of A's within the same "Index". That is, for Index =1, three fractions will be "1/(1+2+3)

[R] editor under MAC system

2007-12-10 Thread YIHSU CHEN
Dear R-user; I recently switched from PC to MAC. Is there a compatible editor as Win-editor with package RWinEdit for MAC? Thanks Yihsu Chen [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch