Re: [R] Replicate Excel's LOGEST worksheet function in R

2010-11-15 Thread cran . 30 . miller_2555
On Sat, Nov 13, 2010 at 10:37 PM, Jeff Newmiller - jdnew...@dcn.davis.ca.us <+cran+miller_2555+a7f4a7aeab.jdnewmil#dcn.davis.ca...@spamgourmet.com>wrote: > > Anyway, I recommend you learn from David before criticizing his assistance. > > >On Fri, Nov 12, 2010 at 5:28

Re: [R] Replicate Excel's LOGEST worksheet function in R

2010-11-13 Thread cran . 30 . miller_2555
On Nov 13, 2010, at 10:12 PM, cran.30.miller_2...@spamgourmet.com wrote: > On Fri, Nov 12, 2010 at 5:28 PM, David Winsemius - > cran.30.miller_2...@spamgourmet.com > <+cran > +miller_2555+c0e7477398.dwinsemius#comcast@spamgourmet.com> wrote: > > On Nov 12,

Re: [R] Replicate Excel's LOGEST worksheet function in R

2010-11-13 Thread cran . 30 . miller_2555
On Fri, Nov 12, 2010 at 5:28 PM, David Winsemius - dwinsem...@comcast.net <+cran+miller_2555+c0e7477398.dwinsemius#comcast@spamgourmet.com> wrote: > > On Nov 12, 2010, at 5:07 PM, David Winsemius wrote: > > >> On Nov 12, 2010, at 4:22 PM, cran.30.miller_2...@spamgour

[R] Replicate Excel's LOGEST worksheet function in R

2010-11-12 Thread cran . 30 . miller_2555
Hi - I have a dataframe of (x,y) values. I'd like to fit an exponential curve to the data for further statistical analysis (pretty much the same functionality provided by Excel's LOGEST worksheet array function). Can someone point me to the (set of) functions/ package that is best suited to p

Re: [R] Memory usage in read.csv()

2010-01-20 Thread nabble . 30 . miller_2555
+nabble+miller_2555+9dc9649aca.jholtman#gmail@spamgourmet.com> wrote: > I read vmstat data in just fine without any problems.  Here is an > example of how I do it: > > VMstat <- read.table('vmstat.txt', header=TRUE, as.is=TRUE) > > vmstat.txt looks like this: >

[R] Memory usage in read.csv()

2010-01-19 Thread nabble . 30 . miller_2555
I'm sure this has gotten some attention before, but I have two CSV files generated from vmstat and free that are roughly 6-8 Mb (about 80,000 lines) each. When I try to use read.csv(), R allocates all available memory (about 4.9 Gb) when loading the files, which is over 300 times the size of the ra

[R] [Lattice] panel.levelplot - shrink argument to highlight absolute z-values

2010-01-09 Thread nabble . 30 . miller_2555
Hi - I have a levelplot with positive and negative z-values. I'd like to scale the levelplot rectangles proportional to the *absolute* z-values to highlight the z-value extremes (while retaining the color difference to track the positive/negative attribute). I've likely missed something in the

Re: [R] Feature request for as.Date() function

2009-11-26 Thread nabble . 30 . miller_2555
On Thu, Nov 26, 2009 at 12:08 AM, jim holtman - jholt...@gmail.com <+nabble+miller_2555+9dc9649aca.jholtman#gmail@spamgourmet.com> wrote: > An easy way is just to write your own function that will accept "NA", > convert it to NA and then call as.Date. > I have writt

Re: [R] Feature request for as.Date() function 20)

2009-11-25 Thread nabble . 30 . miller_2555
An easy way is just to write your own function that will accept "NA", convert it to NA and then call as.Date. R is a functional language, so write some functions. Don't try to overload existing functions with new options that may break a lot of existing code. If you have special requirements, th

Re: [R] Feature request for as.Date() function 20)

2009-11-25 Thread nabble . 30 . miller_2555
On Wed, Nov 25, 2009 at 2:56 PM, jim holtman - jholt...@gmail.com <+nabble+miller_2555+9dc9649aca.jholtman#gmail@spamgourmet.com> wrote: > Seems to work fine in my testing: > > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commen

[R] Feature request for as.Date() function

2009-11-25 Thread nabble . 30 . miller_2555
Hello - I have a csv file with a few date columns. Some of the records have an "NA" character string instead of the date. When I attempt to use read.csv() and typecast the columns using colClasses, I receive the following error: Error in charToDate(x) : character string is not in a stand

Re: [R] Applying do.call to a data.frame using function arguments (nabble: message 8 of 20)

2009-08-26 Thread nabble . 30 . miller_2555
On Wed, Aug 26, 2009 at 12:47 PM, hadley wickham - > I think you're missing some quotes: > cat(do.call("paste",c(x2,sep='","'))[1], "\n") Thanks - the strings are actually substrings of larger strings (specifically, SQL statements), which will wrap with the leading and trailing quotes (though I sh

Re: [R] Applying do.call to a data.frame using function arguments

2009-08-26 Thread miller_2555
miller_2555 wrote: > > I'm trying to convert a data.frame to a series of strings (row-wise). > There was a very good discussion awhile back (2002) entitled "[R] string > concatenate across rows of a matrix??" where Tony Plate recommended the > following two alte

[R] Applying do.call to a data.frame using function arguments

2009-08-26 Thread miller_2555
I'm trying to convert a data.frame to a series of strings (row-wise). There was a very good discussion awhile back (2002) entitled "[R] string concatenate across rows of a matrix??" where Tony Plate recommended the following two alternatives (x2 is an R object of type data frame -- a matrix also w

Re: [R] double precision

2009-08-19 Thread miller_2555
Duncan Murdoch-2 wrote: > > I believe the C99 standard doesn't require that a 64 bit signed integer > type exist (only one that is 64 bits or more), so that would likely > cause some headaches. And we may still use some compilers that are not > C99 compliant, which may not have any type that

Re: [R] double precision

2009-08-19 Thread miller_2555
Roger Bivand wrote: > > On Tue, 5 Dec 2006, Yoni Schamroth wrote: > >> Hi, >> >> I am attempting to query a data frame from a mysql database. >> One of the variables is a unique identification number ("numeric") 18 >> digits >> long. >> I am struggling to retrieve this variable exactly without

[R] Accessing list object from within a function as a list element

2009-07-20 Thread nabble . 30 . miller_2555
Hi - I have a list (call it 'mylist') with the following elements: (i) a function (call it 'myfunc' and expressed as 'mylist$myfunc') and (ii) a variable (call it 'myvar' and expressed as 'mylist$myvar'). Since I use mylist as a pseudo-class (I assign mylist to multiple different R objects), I wou

[R] Passing arguments to forked children

2009-07-11 Thread nabble . 30 . miller_2555
Hi - I have attempted to use the fork::fork() function to perform parallel processing. However, the child R function called needs to know a given set of parameters to complete its task. Specifically, I iterate through a vector, and output values based on the elements of that vector to a databa