Re: [R] The KJV

2010-02-06 Thread Jim Lemon
On 02/06/2010 06:57 PM, Charlotte Maia wrote: Hey all, Does anyone know if there are any R packages with a copy of the KJV? I'm guessing the answer is no... So the next question, and the more important one is: Does anyone think it would be useful (e.g. for text-mining purposes)? I know almost

Re: [R] Memory Problem

2010-02-06 Thread Meenakshi
Hi, I am using R 10.2.1 version. Before run any statement/functions the gc report is: used (Mb) gc trigger (Mb) max used (Mb) Ncells 124352 3.4 35 9.4 35 9.4 Vcells 81237 0.7 786432 6.0 310883 2.4 After I run the repeat statement, I got the following error

Re: [R] Random number quality

2010-02-06 Thread Patrick Burns
A couple comments. Although pseudo-random numbers were originally used because of necessity rather than choice, there is a definite upside to using them. That upside is that the computations become reproducible if you set the seed first (see 'set.seed'). I tend to encourage skepticism at

Re: [R] Memory Problem

2010-02-06 Thread Meenakshi
Hi, After get error message, My main file size is 1.05MB. Other objects are within 400bytes only. Thanks. -- View this message in context: http://n4.nabble.com/Memory-Problem-tp1459740p1471153.html Sent from the R help mailing list archive at Nabble.com.

[R] SimpleR and UsingR

2010-02-06 Thread Uwe Dippel
Having found the online version of SimpleR, I wanted to to download the respective data: The data sets for these notes are available from the CSI math department (http://www.math.csi.cuny.edu/Statistics/R/simpleR) and must be installed prior to this. There it says: The simpleR package is now

[R] melt on OSX ignores na.rm=T

2010-02-06 Thread Titus von der Malsburg
Hi list, I run R on Linux and OSX. On both systems I use R version 2.9.2 (2009-08-24) and reshape version: 0.8.2 (2008-11-04). When I do a melt with na.rm=T on a data frame I get different results on these systems: library(reshape) x - read.table(textConnection(char trial wn p E10I13D0 4 r

[R] lmer Error message

2010-02-06 Thread Martin Bulla
Does anybody knows what this error message means: Error in object$terms : $ operator not defined for this S4 class I have peformed the following steps: library(lattice) library(Matrix) library(lme4) inkm inkm$Gamie glm.incm drop1(glm.incm,test=Ch) Error in object$terms : $ operator

Re: [R] Memory Problem

2010-02-06 Thread jim holtman
Here is a function I use to get the size of the objects in my workspace. Let us know the output of this command my.object.size - function (pos = 1, sorted = F) { .result - sapply(ls(pos = pos, all.names = TRUE), function(..x) object.size(eval(as.symbol(..x if (sorted) {

Re: [R] Reading large files

2010-02-06 Thread jim holtman
In perl the 'unpack' command makes it very easy to parse fixed fielded data. On Fri, Feb 5, 2010 at 9:09 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: Note that the filter= argument on read.csv.sql can be used to pass the input through a filter written in perl, [g]awk or other language.

Re: [R] SimpleR and UsingR

2010-02-06 Thread j verzani
Uwe Dippel udippel at uniten.edu.my writes: Having found the online version of SimpleR, I wanted to to download the respective data: The data sets for these notes are available from the CSI math department (http://www.math.csi.cuny.edu/Statistics/R/simpleR) and must be installed prior to

[R] Why does smoothScatter clip when xlim and ylim increased?

2010-02-06 Thread Jennifer Lyon
Hi: Is there a way to get smoothScatter to not clip when I increase the xlim and ylim parameters? Consider the following example: set.seed(17) x1-rnorm(100) x2-rnorm(100) smoothScatter(x1,x2) #Now if I increase xlim and ylim notice that the plot seems to be clipped at the former xlim, and ylim

[R] time serie : question about date time class

2010-02-06 Thread Laurent Rhelp
Dear R-List, I have the habit of using R for my data processing and I like to use the power of the lattice package. Presently, I have to manage time series. So, in order to work properly I want to discover the zoo package and the related methods (since lattice can work with zoo class). But

Re: [R] Why does smoothScatter clip when xlim and ylim increased?

2010-02-06 Thread Duncan Murdoch
On 06/02/2010 7:51 AM, Jennifer Lyon wrote: Hi: Is there a way to get smoothScatter to not clip when I increase the xlim and ylim parameters? Consider the following example: set.seed(17) x1-rnorm(100) x2-rnorm(100) smoothScatter(x1,x2) #Now if I increase xlim and ylim notice that

Re: [R] problems with SPC charts in R

2010-02-06 Thread Bart Joosen
It looks like there is an NA created, and then used to calculate stdev. But it's inside function, and these seems all wrapped functions, where one function calls another, which calls another, which calls . I suggest you contact the maintainer of the package, send him the data and your error.

Re: [R] Interactively editing point labels in a graph

2010-02-06 Thread trece por ciento
Many thanks, Felix It worked, simply importing the emf into PowerPoint! By the way, as you are the maintainer of playwith, a question: Why is playwith unable to cope with it? I liked very much the playwith option because it is easy to use, and has all the basic capabilities that I need. Best

Re: [R] Interactively editing point labels in a graph

2010-02-06 Thread trece por ciento
Thanks, Gavin I'll have a look to it Hug --- On Thu, 2/4/10, Gavin Simpson gavin.simp...@ucl.ac.uk wrote: From: Gavin Simpson gavin.simp...@ucl.ac.uk Subject: Re: [R] Interactively editing point labels in a graph To: trece por ciento el13porcie...@yahoo.com Cc: r-help@r-project.org Date:

Re: [R] Memory Problem

2010-02-06 Thread Meenakshi
This is my objects size: Size Mode asa_Condition 912 list asa_GatedCommunity9,912 list asa_Neighbourhood 2,872 list asa_Security832 list asa_Storeys 800 list

[R] How to suppress vector indexes in printout

2010-02-06 Thread zumar
I'm a newbie in R and my question is simple. When I type something like this: x=rnorm(10) x [1] 0.5804216 -1.1537118 -0.335 0.7117290 -1.0918811 0.3992606 [7] -0.1800837 0.4168152 -0.2077298 -0.2595467 1 [1] 1 I'm getting indexes in the first column ([1], [7], etc.) How to suppress

Re: [R] time serie : question about date time class

2010-02-06 Thread Gabor Grothendieck
zoo is independent of time and date class so it does not restrict your choice of index class. POSIXct supports sub-microsecond accuracy. See ?POSIXct . Simply using the number of microseconds since the start of the experiment is another possibility. On Sat, Feb 6, 2010 at 8:25 AM, Laurent Rhelp

Re: [R] How to suppress vector indexes in printout

2010-02-06 Thread Henrique Dallazuanna
Try this: cat(x, '\n') On Sat, Feb 6, 2010 at 12:03 PM, zumar boguin...@yandex.ru wrote: I'm a newbie in R and my question is simple. When I type something like this: x=rnorm(10) x  [1]  0.5804216 -1.1537118 -0.335  0.7117290 -1.0918811  0.3992606  [7] -0.1800837  0.4168152 -0.2077298

Re: [R] time serie : question about date time class

2010-02-06 Thread Laurent Rhelp
Gabor Grothendieck a écrit : zoo is independent of time and date class so it does not restrict your choice of index class. POSIXct supports sub-microsecond accuracy. See ?POSIXct . Simply using the number of microseconds since the start of the experiment is another possibility. On Sat, Feb

Re: [R] Memory Problem

2010-02-06 Thread jim holtman
Have you tried gc() to see if any memory is released? How big was the file that you read in? I don't see any large objects that appear in your workspace. Is there some type of processing that you did after reading in the data? You might want to intersperse the following command in your script

Re: [R] How to suppress vector indexes in printout

2010-02-06 Thread zumar
I tried this, but I've got a printout in single line or with 'fill' option in multiline like this 0.6375758 1.060877 0.2509587 -0.1509616 0.819645 -0.3580455 -0.07430713 -0.3464005 -2.312149 -0.8428289 0.8717265 -0.7302025 -0.5292043 -0.289512 -1.231468 0.01108207 -1.811966 0.03652744 0.1809602

Re: [R] time serie : question about date time class

2010-02-06 Thread jim holtman
Depending on how you are using POSIXct, you accuracy is limited to the microsecond level. It is stored as a floating point number with 54 bit of accuracy (~16 digits) and currently the number of seconds since 1/1/1970 is 10 digits, so with microseconds adding 6 more, you are at the limit: x -

Re: [R] lmer Error message

2010-02-06 Thread David Winsemius
On Feb 6, 2010, at 5:45 AM, Martin Bulla wrote: Does anybody knows what this error message means: Error in object $terms : $ operator not defined for this S4 class I have peformed the following steps: library(lattice) library(Matrix) library(lme4) inkm inkm$Gamie glm.incm

Re: [R] How to suppress vector indexes in printout

2010-02-06 Thread jim holtman
You can always create your own output function. Here one way to do it: x - runif(20) cat(strwrap(paste(x, collapse=' ')), sep='\n') 0.482080115471035 0.599565825425088 0.493541307048872 0.186217601411045 0.827373318606988 0.668466738192365 0.79423986072652 0.107943625887856 0.723710946040228

Re: [R] lmer Error message

2010-02-06 Thread Douglas Bates
On Sat, Feb 6, 2010 at 4:45 AM, Martin Bulla bu...@centrum.cz wrote: Does anybody knows what this error message means: Error in object$terms : $ operator not defined for this S4 class The error message means what it says and it doesn't come from lmer, it comes from the drop1 function being

Re: [R] Reading large files

2010-02-06 Thread Vadlamani, Satish {FLNA}
Jim, Gabor: Thanks so much for the suggestions where I can use read.csv.sql and embed Perl (or gawk). I just want to mention that I am running on Windows. I am going to read the documentation the filter argument and see if it can take a decent sized Perl script and then use its output as input.

[R] How to open gmail accounts

2010-02-06 Thread Velappan Periasamy
How to open two gmail accounts with different log in name and password with in R?. __ 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.html and provide

Re: [R] Reading large files

2010-02-06 Thread Gabor Grothendieck
Its just any Windows batch command string that filters stdin to stdout. What the command consists of should not be important. An invocation of perl that runs a perl script that filters stdin to stdout might look like this: read.csv.sql(myfile.dat, filter = perl myprog.pl) For an actual

Re: [R] time serie : question about date time class

2010-02-06 Thread Laurent Rhelp
jim holtman a écrit : Depending on how you are using POSIXct, you accuracy is limited to the microsecond level. It is stored as a floating point number with 54 bit of accuracy (~16 digits) and currently the number of seconds since 1/1/1970 is 10 digits, so with microseconds adding 6 more, you

[R] limit to p-value using t.test()

2010-02-06 Thread Pete Shepard
Hello, I am using t-test to check if the difference between two poulations is significant. I have a large N=20,000, 10,000 in each population. I compare a few different poulations with eachother and though I get different t-scores, I get the same p-value of 10^-16 which seems like the limit for

Re: [R] limit to p-value using t.test()

2010-02-06 Thread Michael Erickson
On Sat, Feb 6, 2010 at 8:53 AM, Pete Shepard peter.shep...@gmail.com wrote: I am using t-test to check if the difference between two populations is significant. I have a large N=20,000, 10,000 in each population. I compare a few different populations with each other and though I get different

Re: [R] reading csv files

2010-02-06 Thread analys...@hotmail.com
On Feb 5, 7:16 pm, Jim Lemon j...@bitwrit.com.au wrote: On 02/06/2010 09:05 AM, analys...@hotmail.com wrote: On Feb 5, 8:57 am, Barry Rowlingsonb.rowling...@lancaster.ac.uk wrote: On Fri, Feb 5, 2010 at 10:23 AM, analys...@hotmail.com analys...@hotmail.com  wrote: the csv files

Re: [R] Alt carachters in R

2010-02-06 Thread gepeto
Thank you! It has been very helpfull!! On Jan 27, 9:33 pm, Peter Alspach peter.alsp...@plantandfood.co.nz wrote: Tena koe Gepeto Not sure if the following helps since you have not been very specific in your question: plot(1:10) text(3,2,'*') text(5,2,'*5') text(4,2,'5*5')

Re: [R] Reading large files

2010-02-06 Thread Vadlamani, Satish {FLNA}
Gabor: Can I pass colClasses as a vector to read.csv.sql? Thanks. Satish -Original Message- From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Sent: Saturday, February 06, 2010 9:41 AM To: Vadlamani, Satish {FLNA} Cc: r-help@r-project.org Subject: Re: [R] Reading large files

Re: [R] Reading large files

2010-02-06 Thread Gabor Grothendieck
No. On Sat, Feb 6, 2010 at 1:01 PM, Vadlamani, Satish {FLNA} satish.vadlam...@fritolay.com wrote: Gabor: Can I pass colClasses as a vector to read.csv.sql? Thanks. Satish -Original Message- From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Sent: Saturday, February 06, 2010

[R] optimized R-selection and R-replacement inside a matrix need, strings coerced to factors

2010-02-06 Thread Christine SINOQUET
Hello, I encounter two problems : First, I need to modify some huge arrays (2000 individuals x 50 000 variables). To format the data, I think I should benefit from optimized R-selection and R-replacement inside a matrix and prohibite a naive use of loops. Thank you in advance for

[R] Sorting

2010-02-06 Thread David Neu
Hi, I have a list of vectors (of varying lengths). I'd like to sort this list by applying a function to each pair of vectors in the list and returning information to sorting routine that let's it know which one is larger. To solve problems like this in Common Lisp, the sort function accepts a

[R] Plot of odds ratios obtained from a logistic model

2010-02-06 Thread gepeto
Hi all! I am trying to develop a plot a figure in which I would like to show the odds ratios obtained from a logistic model. I have tried with the dotplot option but no success. Could you help me? Is there any option when modelling the logistic model in R? Thank you in advance

Re: [R] melt on OSX ignores na.rm=T

2010-02-06 Thread hadley wickham
Hi Titus, The latest version of reshape is 0.8.3 - perhaps upgrading will fix your problem. Hadley On Sat, Feb 6, 2010 at 4:51 AM, Titus von der Malsburg malsb...@gmail.com wrote: Hi list, I run R on Linux and OSX.  On both systems I use R version 2.9.2 (2009-08-24) and reshape version:

Re: [R] Sorting

2010-02-06 Thread David Winsemius
On Feb 6, 2010, at 1:21 PM, David Neu wrote: Hi, I have a list of vectors (of varying lengths). I'd like to sort this list by applying a function to each pair of vectors in the list and returning information to sorting routine that let's it know which one is larger. To solve problems like

Re: [R] question about bigmemory: releasing RAM from a big.matrix that isn't used anymore

2010-02-06 Thread Matthew Keller
Hi Steve and other R folks, Thanks for the suggestion. No - that doesn't work. I meant to put that into my original email. To recap x - big.matrix(nrow=2,ncol=50,type='short',init=0,dimnames=list(1:2,1:50)) #Gets around the 2^31 issue - yay! #R takes 18 Gb RAM, so says top

Re: [R] Plot of odds ratios obtained from a logistic model

2010-02-06 Thread Steve Lianoglou
Hi, On Sat, Feb 6, 2010 at 1:28 PM, gepeto geppetto...@gmail.com wrote: Hi all! I am trying to develop a plot a figure in which I would like to show the odds ratios obtained from a logistic model. I  have tried with the dotplot option but no success. Could you help me? You can help us help

Re: [R] Sorting

2010-02-06 Thread Don MacQueen
I have trouble making sense of the question, and I wonder if there is a terminology issue. For example, you have a list like this one: mylist - list( v1=1:3, v2=1:4, v3=1:5, v4=1:6) (That is, a list of vectors of varying lengths.) You want to apply a function to each pair of vectors:

[R] EC2 - Amazon

2010-02-06 Thread Brian Wolf
Hi, I was wondering if anyone had any experience or knew if its possible to run R on EC2? Thanks, Brian Wolf __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Sorting

2010-02-06 Thread Hans W Borchers
David Neu david at davidneu.com writes: Hi, I have a list of vectors (of varying lengths). I'd like to sort this list by applying a function to each pair of vectors in the list and returning information to sorting routine that let's it know which one is larger. To solve problems like

[R] R-Help

2010-02-06 Thread Ravi Ramaswamy
Hi - I am not familiar with R. Could I ask you a quick question? When I read a file like this, I get an error. Not sure what I am doing wrong. I use a MAC. How do I specify a full path name for a file in R? Or do files have to reside locally? KoreaAuto - read.table(/Users/

Re: [R] R-Help

2010-02-06 Thread Cedrick W. Johnson
Try: KoreaAuto - read.table('Documents/Rutgers/HW1Data') -or- KoreaAuto - read.table('Users/raviramaswamy/Documents/Rutgers/STT 586/HW1 Data.txt') __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] Sorting

2010-02-06 Thread David Neu
Hi Don, Thanks for your response. Which one is larger, mylist$v1 or mylist$v2? Longer, yes, mylist$v2 is longer. But larger? Sure, given any two vectors the goal is to be able to use any criteria to determine if the first vector is larger than the second one. The key requirement is that

Re: [R] EC2 - Amazon

2010-02-06 Thread Dirk Eddelbuettel
On 6 February 2010 at 12:04, Brian Wolf wrote: | I was wondering if anyone had any experience or knew if its possible to | run R on EC2? Yes, and apparently pretty easily. Ubuntu has a number of pre-build images which have the standard R packages and a number of additional packages already

Re: [R] R-Help

2010-02-06 Thread David Winsemius
On Feb 6, 2010, at 3:29 PM, Ravi Ramaswamy wrote: Hi - I am not familiar with R. Could I ask you a quick question? When I read a file like this, I get an error. Not sure what I am doing wrong. I use a MAC. How do I specify a full path name for a file in R? Or do files have to reside

Re: [R] Sorting

2010-02-06 Thread David Neu
On Sat, Feb 6, 2010 at 3:22 PM, Hans W Borchers hwborch...@googlemail.com wrote: David Neu david at davidneu.com writes: Hi, I have a list of vectors (of varying lengths).  I'd like to sort this list by applying a function to each pair of vectors in the list and returning information to

Re: [R] Reading large files

2010-02-06 Thread Vadlamani, Satish {FLNA}
Gabor: I had success with the following. 1. I created a csv file with a perl script called out.txt. Then ran the following successfully library(sqldf) test_df - read.csv.sql(file=out.txt, sql = select * from file, header = TRUE, sep = ,, dbname = tempfile()) 2. I did not have success with the

Re: [R] Reading large files

2010-02-06 Thread Gabor Grothendieck
Note that you can shorten #1 to read.csv.sql(out.txt) since your other arguments are the default values. For the second one, use read.csv.sql, eliminate the arguments that are defaults anyways (should not cause a problem but its error prone) and add an explicit eol= argument since SQLite can have

Re: [R] Plot of odds ratios obtained from a logistic model

2010-02-06 Thread David Freedman
You might want to look at the plot.Predict function in the rms package - it allows you to plot the logits or probablities vs the predictor variable at specified levels of other covariates (if any) in the model. There are many examples in http://cran.r-project.org/web/packages/rms/rms.pdf David

Re: [R] Plot of odds ratios obtained from a logistic model

2010-02-06 Thread David Winsemius
On Feb 6, 2010, at 4:13 PM, David Freedman wrote: You might want to look at the plot.Predict function in the rms package - it allows you to plot the logits or probablities vs the predictor variable at specified levels of other covariates (if any) in the model. There are many examples

Re: [R] question about bigmemory: releasing RAM from a big.matrix that isn't used anymore

2010-02-06 Thread Benilton Carvalho
Hi Matt, what's your sessionInfo()? Can you try installing bigmemory as follows: install.packages(bigmemory, repos=http://R-Forge.R-project.org;) it'll get you the latest version, in which I cannot reproduce the problem you're reporting (ie, after gc(), I get all the RAM back) b On Sat, Feb

Re: [R] question about bigmemory: releasing RAM from a big.matrix that isn't used anymore

2010-02-06 Thread Jay Emerson
See inline for responses. But people are always welcome to contact us directly. Hi all, I'm on a Linux server with 48Gb RAM. I did the following: x - big.matrix(nrow=2,ncol=50,type='short',init=0,dimnames=list(1:2,1:50)) #Gets around the 2^31 issue - yeah! We strongly

[R] read and process files line by line

2010-02-06 Thread Dick Harray
Hi there, I want to read large files line by line in order to process each line and store the information of each list iin an object. My problem is, that I do not know how to process each line of the file, because I want to avoid to import the whole file. The data file inputdata.csv is a CSV

Re: [R] RBloomberg on Mac Leopard

2010-02-06 Thread christophe ollier
Lucio Intelligente lucio.intel at gmail.com writes: Hi, I'm running R 2.10.1 GUI 1.31 Leopard build 64-bit (5537). I cannot install RBloomberg on my Mac. After I type: install.packages(RBloomberg, repos=http://R-Forge.R-project.org;) I get the following message: Warning in

Re: [R] read and process files line by line

2010-02-06 Thread Gabor Grothendieck
Check this: https://stat.ethz.ch/pipermail/r-help/2009-March/192942.html On Sat, Feb 6, 2010 at 4:57 PM, Dick Harray tomdhar...@gmail.com wrote: Hi there, I want to read large files line by line in order to process each line and store the information of each list iin an object. My problem

Re: [R] Reading large files

2010-02-06 Thread Vadlamani, Satish {FLNA}
Gabor: Here is the update. As you can see, I got the same error as below in 1. 1. Error test_df - read.csv.sql(file=out_small.txt, sql = select * from file, header = TRUE, sep = ,, filter=perl parse_3wkout.pl, eol=\n) Error in readRegistry(key, maxdepth = 3) : Registry key 'SOFTWARE\R-core'

Re: [R] Reading large files

2010-02-06 Thread Gabor Grothendieck
The software attempts to read the registry and temporarily augment the path in case you have Rtools installed so that the filter can access all the tools that Rtools provides. I am not sure why its failing on your system but there is evidently some differences between systems here and I have

Re: [R] Random number quality

2010-02-06 Thread Thomas Lumley
On Sat, 6 Feb 2010, Patrick Burns wrote: A couple comments. Although pseudo-random numbers were originally used because of necessity rather than choice, there is a definite upside to using them. That upside is that the computations become reproducible if you set the seed first (see

Re: [R] Reading large files

2010-02-06 Thread Vadlamani, Satish {FLNA}
Gabor: Please see the results below. Sourcing your new R script worked (although with the same error message). If I put eol=\n option, it is adding a \r to the last column. I took out the eol option below. This is just some more feedback to you. I am thinking that I will just do an inline edit

Re: [R] Reading large files

2010-02-06 Thread Gabor Grothendieck
I have uploaded another version which suppresses display of the error message but otherwise works the same. Omitting the redundant arguments we have: ibrary(sqldf) # next line is only needed once per session to read in devel version source(http://sqldf.googlecode.com/svn/trunk/R/sqldf.R;)

Re: [R] melt on OSX ignores na.rm=T

2010-02-06 Thread Titus von der Malsburg
On Sat, Feb 6, 2010 at 8:23 PM, hadley wickham h.wick...@gmail.com wrote: The latest version of reshape is 0.8.3 - perhaps upgrading will fix your problem. Thanks for your response, Hadley! I just did the upgrade on the Linux system. On OSX I was already at 0.8.3. Now, I get the same result

Re: [R] Plot of odds ratios obtained from a logistic model

2010-02-06 Thread Frank E Harrell Jr
Also take a look at summary.rms and its plot method which produces odds ratio dot charts directly. Frank David Winsemius wrote: On Feb 6, 2010, at 4:13 PM, David Freedman wrote: You might want to look at the plot.Predict function in the rms package - it allows you to plot the logits or

Re: [R] Sorting

2010-02-06 Thread Hans W Borchers
David Neu david at davidneu.com writes: David Neu david at davidneu.com writes: Hi, I have a list of vectors (of varying lengths).  I'd like to sort this list by applying a function to each pair of vectors in the list and returning information to sorting routine that let's it know which

Re: [R] question about bigmemory: releasing RAM from a big.matrix that isn't used anymore

2010-02-06 Thread Matthew Keller
Hi Jay and Benilton, Thank you both for your help. When I do not use the dimnames argument, everything works fine: x - big.matrix(nrow=2e4,ncol=5e5,type='short',init=0) #18 Gb RAM used rm(x) #18 Gb RAM used gc() #no RAM used However, when I use dimnames, I get this problem, reproducibly: x -

Re: [R] melt on OSX ignores na.rm=T

2010-02-06 Thread Titus von der Malsburg
Ok, I studied the source code of melt.data.frame. With na.rm=T melt operates normally except that it deletes rows from the molten data.frame that have NAs in the value column. NAs in the id.vars are not touched. This could be clearer in the documentation especially as it seems that earlier

Re: [R] Reading large files

2010-02-06 Thread Vadlamani, Satish {FLNA}
Gabor: It did suppress the message now and I was able to load the data. Question. 1. test_df - read.csv.sql(file=3wkoutstatfcst_small.dat, filter=perl parse_3wkout.pl) In the statement above, should the filename in file= and the file name that the perl script uses through the filter= command

Re: [R] The KJV

2010-02-06 Thread Ben Bolker
Jim Lemon jim at bitwrit.com.au writes: On 02/06/2010 06:57 PM, Charlotte Maia wrote: Hey all, Does anyone know if there are any R packages with a copy of the KJV? I'm guessing the answer is no... So the next question, and the more important one is: Does anyone think it would be

Re: [R] Sorting

2010-02-06 Thread David Neu
On Sat, Feb 6, 2010 at 6:30 PM, Hans W Borchers hwborch...@googlemail.com wrote: David Neu david at davidneu.com writes: David Neu david at davidneu.com writes: Hi, I have a list of vectors (of varying lengths).  I'd like to sort this list by applying a function to each pair of vectors in

Re: [R] read and process files line by line

2010-02-06 Thread David Winsemius
On Feb 6, 2010, at 4:57 PM, Dick Harray wrote: Hi there, I want to read large files line by line in order to process each line and store the information of each list iin an object. My problem is, that I do not know how to process each line of the file, because I want to avoid to import the

Re: [R] Reading large files

2010-02-06 Thread Gabor Grothendieck
file= is the input data file. filter= is just a command string that specifies a program to run (not a data file). 1. If Filename.tmp is the name of a temporary file (that it creates) it runs a batch command similar to this: paste(cmd /c, filter, , file, , Filename.tmp) 2. Then it reads

Re: [R] Reading large files

2010-02-06 Thread Gabor Grothendieck
By the way, if you use the H2 database with sqldf then there is a second way to read files in using sqldf. # 1. run your perl program outside of R to create myfile.csv, say. # 2. install java from http://java.sun.com # and then install the RH2 package from CRAN install.packages(RH2) # 3. load

[R] Non-linear regression

2010-02-06 Thread kupz
So I have a data set I would like to model using a non-linear method. I know it should be an exponential decay. However I know what the first derivative of the equation should be at two points, x=0 and x=100. Is there anyway to establish this when inputing the model or how would one go about this

[R] Posting an 'S4-creating Package Problem'...

2010-02-06 Thread Daniel Kosztyla
Hello R-Team, May you help me to post a 'S4-creating Package Problem'? Thanks already now for supporting. The problem sounds like: Hello R forum, while compiling my R-package these 'Warnings' occur: ... Warnung in matchSignature(signature, fdef, where) : in the method signature for function

Re: [R] Non-linear regression

2010-02-06 Thread David Winsemius
On Feb 6, 2010, at 10:33 PM, kupz wrote: So I have a data set I would like to model using a non-linear method. I know it should be an exponential decay. However I know what the first derivative of the equation should be at two points, x=0 and x=100. Is there anyway to establish this

Re: [R] Non-linear regression

2010-02-06 Thread kupz
Agreed, it would be simple to propose the relationship, however the regression is necessary to model the data properly. Unfortunately a simple decay based on those two points does not have the proper shape necessary. This is due to an extreme amount of zero inflation with this fisheries data.

Re: [R] Reading large files

2010-02-06 Thread Saptarshi Guha
Hello, Do you need /all/ the data in memory at one time? Is your goal to divide the data (e.g according to some factor /or/ some function of the columns of data set ) and then analyze the divisions? And then, possibly, combine the results ? If so, you might consider using Rhipe. We have analyzed