[R] how to used regular expression while reading file

2012-03-06 Thread sagarnikam123
i have file as in txt format @ATTRIBUTE f1996 REAL @ATTRIBUTE f1997 REAL @ATTRIBUTE f1998 REAL @ATTRIBUTE f1999 REAL @ATTRIBUTE f2000 REAL @ATTRIBUTE class {-1,1} @DATA 2.080750,1.099070,0.927763,1.029080,-0.130763,1.265460,-0.43 1.109460,0.786453,0.445560,-0.146323,-0.996316,0.555759,0.29

Re: [R] how to used regular expression while reading file

2012-03-06 Thread Sarah Goslee
You could perhaps set the comment.char argument of read.table() to @. More generally, you can use scan() and process the lines within R. On Tue, Mar 6, 2012 at 8:41 AM, sagarnikam123 sagarnikam...@gmail.com wrote: i have file as in txt format @ATTRIBUTE f1996 REAL @ATTRIBUTE f1997 REAL

Re: [R] How '.' is used?

2009-08-10 Thread Michael Dewey
At 17:06 09/08/2009, Peng Yu wrote: Hi, I know '.' is not a separator in R as in C++. I am wondering where it discusses the detailed usage of '.' in R. Can somebody point me a webpage, a manual or a book that discuss this? It has a special meaning in a formula. ?formula tells you more

[R] How '.' is used?

2009-08-09 Thread Peng Yu
Hi, I know '.' is not a separator in R as in C++. I am wondering where it discusses the detailed usage of '.' in R. Can somebody point me a webpage, a manual or a book that discuss this? Regards, Peng __ R-help@r-project.org mailing list

Re: [R] How '.' is used?

2009-08-09 Thread Ted Harding
On 09-Aug-09 16:06:52, Peng Yu wrote: Hi, I know '.' is not a separator in R as in C++. I am wondering where it discusses the detailed usage of '.' in R. Can somebody point me a webpage, a manual or a book that discuss this? Regards, Peng To the best of my knowledge, apart from its

Re: [R] How '.' is used?

2009-08-09 Thread Douglas Bates
On Sun, Aug 9, 2009 at 11:32 AM, Ted Hardingted.hard...@manchester.ac.uk wrote: On 09-Aug-09 16:06:52, Peng Yu wrote: Hi, I know '.' is not a separator in R as in C++. I am wondering where it discusses the detailed usage of '.' in R. Can somebody point me a webpage, a manual or a book that

Re: [R] How '.' is used?

2009-08-09 Thread Ted Harding
On 09-Aug-09 16:53:32, Douglas Bates wrote: On Sun, Aug 9, 2009 at 11:32 AM, Ted Hardingted.hard...@manchester.ac.uk wrote: On 09-Aug-09 16:06:52, Peng Yu wrote: Hi, I know '.' is not a separator in R as in C++. I am wondering where it discusses the detailed usage of '.' in R. Can somebody

Re: [R] How '.' is used?

2009-08-09 Thread Duncan Murdoch
(Ted Harding) wrote: On 09-Aug-09 16:53:32, Douglas Bates wrote: On Sun, Aug 9, 2009 at 11:32 AM, Ted Hardingted.hard...@manchester.ac.uk wrote: On 09-Aug-09 16:06:52, Peng Yu wrote: Hi, I know '.' is not a separator in R as in C++. I am wondering where it discusses the

Re: [R] How '.' is used?

2009-08-09 Thread Ted Harding
On 09-Aug-09 19:31:47, Duncan Murdoch wrote: (Ted Harding) wrote: [...] Next -- and this is the real question -- how does R parse the name summary.glm? In my naivety, I simply suppose that it looks for an available function whose name is summary.glm in just the same way as it looks for