Re: [R] read.delim skips first column (why?)

2009-07-15 Thread Paolo Sonego
This should work: junk <-read.table("fd0edfab.txt", sep="", header=T, fill=F,quote=" ") HIH Paolo Sonego __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posti

[R] vector and NA

2009-06-23 Thread Paolo Sonego
as.vector(na.omit(inc[,5]) ?na.omit Paolo Hi, I've a vector like this: -- > inc[,5] [1]NANANANANANANA [8]NANANANANANANA

Re: [R] Get user system name

2009-03-17 Thread Paolo Sonego
UNIX only (At least it works under Linux and Mac OS X): (user <- system("users", intern=T)) Paolo __ 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-guide

Re: [R] Sweave, Bibtex, package references

2008-10-29 Thread Paolo Sonego
aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey -Oorspronkelijk bericht- Van: Paolo Sonego [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 28 oktober 2008 18:08 Aan: ONKELINX, Thierry CC: R-List Help - use this to post

Re: [R] Sweave, Bibtex, package references

2008-10-28 Thread Paolo Sonego
ral of anecdote is not data. ~ Roger Brinner The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Pao

[R] Sweave, Bibtex, package references

2008-10-28 Thread Paolo Sonego
Dear all, I'm a big fan and happy user of the Sweave package for routine reporting. From inside a .Rnw script, I'd like to produce the references in bibtex format for each package loaded in the environment, write them in a .bib file and load them back from the \bibliography{bibliography} state

Re: [R] Parsing

2008-07-10 Thread Paolo Sonego
Thank you Martin! This code is amazing! SO fast! Exactly what i was looking for! Parsing ~8M lines (~ 600M file size) took about 45s on a Xeon 3,4 Ghz (8 Gb). Thank you so much! Sincerely, Paolo Martin Morgan ha scritto: Paolo Sonego <[EMAIL PROTECTED]> writes: I apologiz

Re: [R] Parsing

2008-07-09 Thread Paolo Sonego
I apologize for giving wrong information again ... :-[ The number of files is not a problem (30/40). The real deal is that some of my files have ~10^6 lines (file size ~ 300/400M) :'( Thanks again for your help and advices! Regards, Paolo jim holtman ha scritto: How much time is it takin

Re: [R] Parsing

2008-07-09 Thread Paolo Sonego
g1 y_string1 w_string1 3 x_string2 y_string2 id1_string1 id2_string1 w_string2 On Wed, Jul 9, 2008 at 5:33 AM, Paolo Sonego <[EMAIL PROTECTED]> wrote: Dear R users, I have a big text file formatted like this: x x_string y y_string id1id1_string id2id

[R] Parsing

2008-07-09 Thread Paolo Sonego
Dear R users, I have a big text file formatted like this: x x_string y y_string id1id1_string id2id2_string z z_string w w_string stuff stuff stuff stuff stuff stuff stuff stuff stuff // x x_string1 y y_string1 z z_string1 w w_string1 stuff