Re: [R] using a personal template for new R scripts

2013-02-28 Thread Jason Edgecombe
On 02/28/2013 05:40 PM, Steve Taylor wrote: Does anyone know if there's an easy facility to create and specify a template file to be used for new R scripts? I found myself creating this function which works well (in RStudio on Windows). newR =

Re: [R] speeding read.table

2012-10-18 Thread Jason Edgecombe
On 10/18/2012 09:57 AM, Fisher Dennis wrote: R 2.15.1 OS X Colleagues, I am reading a 1 GB file into R using read.table. The file consists of 100 tables, each of which is headed by two lines of characters. The first of these lines is: TABLE NO. 1 The second is a list of column

Re: [R] as.function parameters

2012-05-17 Thread Jason Edgecombe
On 05/17/2012 06:30 AM, jackl wrote: Hi.. Ok here is an example on how I wanted the tree to be implemented in R: - the tree is, as you wrote, saved as a list of different tree levels - each tree level is also saved as a list of different nodes in that specific level - and for the last part,

Re: [R] Building R on RHEL 5

2012-01-20 Thread Jason Edgecombe
Why not use the pre-compiled RPM's from EPEL ( http://fedoraproject.org/wiki/EPEL )? Version 2.14 of R is still in the testing folder here: http://download.fedora.redhat.com/pub/epel/testing/5/ Jason On 01/20/2012 02:34 PM, Erik Wright wrote: Hello, I am trying to upgrade to the latest R

Re: [R] Contour plot on a triangular mesh

2012-01-20 Thread Jason Edgecombe
I'm not sure if this is appropriate. If the sum of your variables is always the same constant, then you might try a Ternary plot ( http://en.wikipedia.org/wiki/Ternary_plot ). The vcd package can make ternary plots. On 01/20/2012 02:56 PM, Roary wrote: I have two observed categorical

Re: [R] The Future of R | API to Public Databases

2012-01-15 Thread Jason Edgecombe
At first, I thought that RDF and SDMX were two competing standards and was disheartened, but it appears that there is collaboration between them, yay! http://groups.google.com/group/publishing-statistical-data/browse_thread/thread/531b1b5a73397c1c?pli=1 On 01/15/2012 08:31 AM, Benjamin Weber

Re: [R] The Future of R | API to Public Databases

2012-01-14 Thread Jason Edgecombe
Web services are only part of the problem. In essence, there are at least two facets: 1. downloading the data using some protocol 2. mapping the data to a common model Having #1 makes the import/download easier, but it really becomes useful when both are included. I think #2 is the harder

Re: [R] The Future of R | API to Public Databases

2012-01-14 Thread Jason Edgecombe
HI, Happy to oblidge: Background: All data is dirty to some degree. A large portion of the time spent in doing data analysis is spent doing data cleaning (removing invalid data, transforming data columns into something useful). When data from multiple sources are used, then some time must be

Re: [R] On-line machine learning packages?

2011-10-02 Thread Jason Edgecombe
Hello Jay, Did you find the answer to your question on incremental machine learning? If not, I found some links that might help: It appears that might be able to do streaming/incremental machine learning in Weka: http://moa.cs.waikato.ac.nz/details/classification/using-weka/ On the above

Re: [R] On-line machine learning packages?

2011-09-12 Thread Jason Edgecombe
I already provided the link to the task view, which provides a list of the more popular machine learning algorithms for R. Do you have a particular algorithm or technique in mind? Does it have a name? How does sequential classification differ form running a one-off classifier for each run?

Re: [R] On-line machine learning packages?

2011-09-11 Thread Jason Edgecombe
Try this: http://cran.r-project.org/web/views/MachineLearning.html On 09/11/2011 12:43 PM, Jay wrote: Hi, I used the rseek search engine to look for suitable solutions, however as I was unable to find anything useful, I'm asking for help. Anybody have experience with these kinds of problems?

Re: [R] Random number generation

2011-07-21 Thread Jason Edgecombe
On 07/21/2011 07:18 PM, karena wrote: Hi, I want to generate multiple sets of random numbers. The requirement is that: 1) each set have 3 random numbers; 2) the sum of the three number is always 1. how to do this? Try this: df-data.frame(a=runif(10),b=runif(10)) df$c=df$a+df$b

Re: [R] Random number generation

2011-07-21 Thread Jason Edgecombe
On 07/21/2011 08:04 PM, Jason Edgecombe wrote: On 07/21/2011 07:18 PM, karena wrote: Hi, I want to generate multiple sets of random numbers. The requirement is that: 1) each set have 3 random numbers; 2) the sum of the three number is always 1. how to do this? Try this: df-data.frame

[R] scaling to multiple data files

2011-01-11 Thread Jason Edgecombe
Hello, I have logging information for multiple machines, which I am trying to summarize and graph. So far, I process each host individually, but I would like to summarize the user count across multiple hosts. I want to answer the question how many unique users logged in on a certain day

Re: [R] scaling to multiple data files

2011-01-11 Thread Jason Edgecombe
is it easy to create a report of the number of unique people over time. On Tue, Jan 11, 2011 at 10:47 AM, Jason Edgecombe ja...@rampaginggeek.com wrote: Hello, I have logging information for multiple machines, which I am trying to summarize and graph. So far, I process each host individually, but I

Re: [R] Shortcut key to get to beginniing of line in R?

2011-01-09 Thread Jason Edgecombe
On 01/09/2011 04:00 PM, casshyr wrote: This is a generalize question: basically, say you are typing a long line of command in R console, and then you realize you forgot to add something in the beginning, is there a way to get to the beginning of the line without pressing the left key on the

Re: [R] Changing column names

2010-12-31 Thread Jason Edgecombe
Try: df1 = read.csv('result.csv', header=TRUE) df1 Jason On 12/31/2010 03:19 AM, Amy Milano wrote: Please read - http://127.0.0.1:24408/library/base/html/colnames.html I am trying to give an example. I am not a programmer and I am sure the R stalwarts will have better ways to do it. #

[R] How to draw a rect() behind a hist() ?

2010-11-30 Thread Jason Edgecombe
Hi, I have the following code: hist(gps$heartpercent, breaks=5) rect(90, par(usr)[3], 100, par(usr)[4], col = red) How do I get the rectangle to appear behind the histogram. Barring that, how can I make certain bars of the histogram to be a certain color? Thanks, Jason

[R] Filling in missing time samples with na.approx

2010-11-29 Thread Jason Edgecombe
Hi Everyone, I have a some data from a sports gps device like the following: time latitude longitude altitude distance heartrate 1 1277648884 0.304048 -0.793819 260 0.0094 2 1277648885 0.304056 -0.793772 262 4.30761595 3 127764 0.304060 -0.793696

Re: [R] Filling in missing time samples with na.approx

2010-11-29 Thread Jason Edgecombe
On 11/29/2010 10:00 AM, Gabor Grothendieck wrote: On Mon, Nov 29, 2010 at 9:45 AM, Jason Edgecombe ja...@rampaginggeek.com wrote: Hi Everyone, I have a some data from a sports gps device like the following: time latitude longitude altitude distance heartrate 1 1277648884