Re: [R] newbie: closing unused connection + readline

2009-05-18 Thread Aval Sarri
> I don't understand why read.table would have a problem reading > directly from a socket instead of a textConnection.  Is this a bug? > Some subtlety in the semantics of socketConnection as opposed to > textConnection?  Incorrect parameters when opening the > socketConnection? No problem with soc

Re: [R] newbie: closing unused connection + readline

2009-05-16 Thread Aval Sarri
sly opened when running code - since getConnection() requires a number and for that I need to know the number of my previously opened connection. So how do I get the number of textConnection that I open? Sir any pointers would greatly help. Thanks and regards -Aval > > On Sat, May 16, 2009 at 8:

[R] newbie: closing unused connection + readline

2009-05-16 Thread Aval Sarri
Hello; I am new to R and trying to read a line from socket connection at a time but at the end of script I am getting "closing unused connection" warning. I am not able to understand how to solve this. I want to read a line from socket and then use read.table/scan on that line but it looks like I a

Re: [R] append string to a string

2008-12-16 Thread Aval Sarri
On Wed, Dec 17, 2008 at 9:09 AM, Jörg Groß wrote: > hi, > > > I want to append a string to a string like; > > x <- c("abc") > append(x, "def") paste (x, "def", sep="") see ?paste HTH Aval __ R-help@r-project.org mailing list https://stat.ethz.ch/mail

Re: [R] How to use different title in a loop

2008-12-08 Thread Aval Sarri
see ?paste main = paste ("Main effect of ", variable) > par(mfrow = c(n/2, 2)) > for ( i in 1:n) > { >plot(1:J, y[i, 1: J], main = 'Main effect of X_i') > } > __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] best material for programmers?

2008-09-28 Thread Aval Sarri
On Sun, Sep 28, 2008 at 12:55 PM, June Kim <[EMAIL PROTECTED]> wrote: > Thanks for the reply, but RCurl looks like an interface to curl, which > might be useful but it's not what I'm looking for. I am looking for a > text to learn R. I also had the same problem, I am new to R but not to programmin

Re: [R] basic dataframe question

2008-09-02 Thread Aval Sarri
Does ?I() help? See ? I() Regards Aval On Wed, Sep 3, 2008 at 9:30 AM, <[EMAIL PROTECTED]> wrote: > R Users: > > I'm wondering: > > Why does my logical vector becomes a numeric vector when stuffed into a data > frame? How do I change this so that it's retained as a logical data type? > I

[R] R Newbie: quantmod and zoo: Warning in rbind.zoo(...) : column names differ

2008-09-02 Thread Aval Sarri
Hello; I am trying following but getting a warning message : Warning in rbind.zoo(...) : column names differ, no matter whatever I do. Also I do not want to specify column names manually, since I am just writing a wrapper function around getSymbols to get chunks of data from various sources - oa

Re: [R] read.csv : double quoted numbers

2008-08-22 Thread Aval Sarri
tasets methods base Thanks and Regards Aval S. >> Lines.raw <- '"1,001.23""1,008,000.456"' >> Lines <- readLines(textConnection(Lines.raw)) >> Lines <- gsub(",", "", Lines) >> read.table(textConnection(Lines)) &g

[R] read.csv : double quoted numbers

2008-08-20 Thread Aval Sarri
Hello; I am new user of R; so pardon me. I am reading a .txt file that has around 50+ numeric columns with '\t' as separator. I am using read.csv function along with colClasses but that fails to recognize double quoted numeric values. (My numeric values are something like "1,001.23"; "1,008,000.4