[R] Fw: Re: Default Working directory on windows 7?

2011-01-04 Thread Amy Milano
Suppose your working R directory is C:\My Working Directory I hope now that you have installed the R, you must be having R ICON on your desktop. Right click on this icon, then click on Properties. Once that box is opened, you will find a tab called Start in. There within the type C:\My

[R] RSQLite to input dataframe

2011-01-04 Thread Amy Milano
Dear r helpers, At first, I apologize for raising a query which seems to be a stupid interpretation on my part. I am trying to learn SQLite. Following is an example given in the RSQLite.zip file (Page # 4) drv - dbDriver(SQLite) tfile - tempfile() con - dbConnect(drv, dbname = tfile)

Re: [R] RSQLite to input dataframe

2011-01-04 Thread Amy Milano
to input dataframe To: Amy Milano milano_...@yahoo.com, Rhelp r-help@r-project.org Date: Tuesday, January 4, 2011, 11:32 AM Hi Amy, I'm not sure if I understand your question correctly so let me know if the following is off track. Starting with your example, here is how to create a data.frame

Re: [R] Changing column names

2010-12-31 Thread Amy Milano
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. # Suppose df1 = read.csv('result.csv') where (say e.g.) result.csv is as follows result.csv var1  

Re: [R] Writing a single output file

2010-12-29 Thread Amy Milano
apologize for reverting so late. Regards Amy --- On Thu, 12/23/10, jim holtman jholt...@gmail.com wrote: From: jim holtman jholt...@gmail.com Subject: Re: [R] Writing a single output file To: Amy Milano milano_...@yahoo.com Cc: r-help@r-project.org Date: Thursday, December 23, 2010, 1:39 PM

[R] Writing a single output file

2010-12-23 Thread Amy Milano
Dear R helpers! Let me first wish all of you Merry Christmas and Very Happy New year 2011 Christmas day is a day of Joy and Charity, May God make you rich in both - Phillips Brooks ##

[R] How to arrange the data

2010-12-17 Thread Amy Milano
-2010  value1    11 14-Sep-2010  value2 180 14-Sep-2010      value3      56 I have presented here a small part of large data. I tried to convert the data into matrix, then transpose etc. but things are not working for me. Please guide Thanking in advance Amy Milano

[R] Finding root of quadratic equation

2010-11-28 Thread Amy Milano
Dear R Helpers, I need to find the root of following equation. 0.0016^2 = (0.001*x)^2 + (0.002 * (1-x))^2 + 2 * 0.7 *0.001*0.002 * x * (1-x). I had tried using animation package as follows. # My Code library(animation) ani.options(nmax = 500) solu = newton.method(function(x) 0.0016^2 -

Re: [R] Finding root of quadratic equation

2010-11-28 Thread Amy Milano
To: Amy Milano milano_...@yahoo.com Cc: R mailing list r-help@r-project.org Date: Sunday, November 28, 2010, 8:49 AM Hi Amy, Not using animation, but this seems to work: f - function(x) 0.0016^2 - 0.001^2*x^2 - 0.002^2*(1-x)^2 - 2*0.7*0.001*0.002*x*(1-x) curve(f, -1, 1)abline(h = 0, lty = 2

[R] Using tapply?

2010-10-25 Thread Amy Milano
Dear R helpers, I am trying to calculate the Annualized Percent Rate using following R - Code. # ## R Code library(animation) # INPUT C = 25    # Loan Amount E = 2500  # Other Cost R = 6 # Interest rate r =

Re: [R] Using tapply?

2010-10-25 Thread Amy Milano
. Thanks in advance Sir. Regards Amy --- On Mon, 10/25/10, Dennis Murphy djmu...@gmail.com wrote: From: Dennis Murphy djmu...@gmail.com Subject: Re: [R] Using tapply? To: Amy Milano milano_...@yahoo.com Cc: r-help@r-project.org Date: Monday, October 25, 2010, 10:47 AM Hi: I'm pretty sure