[R] Generating sequence of dates

2009-10-28 Thread Vadlamani, Satish {FLNA}
Hello All: I have the following question # instantiate a date current = as.Date(2009/10/25) #generate a sequence of dates in the future future_dates = seq(current,by='1 week',length=53) Question: How to generate a sequence of past dates starting one week in the past relative to the current

Re: [R] Generating sequence of dates

2009-10-28 Thread Vadlamani, Satish {FLNA}
Thanks. Please expect more newbie questions!! Satish -Original Message- From: jim holtman [mailto:jholt...@gmail.com] Sent: Wednesday, October 28, 2009 7:05 AM To: Vadlamani, Satish {FLNA} Cc: R-help@r-project.org Subject: Re: [R] Generating sequence of dates try this: current

[R] Question on Bias calculations and question on read.fwf

2009-10-28 Thread Vadlamani, Satish {FLNA}
Hi All: Bear with me on this longer e-mail. Questions: 1) Can you share with me on any example code that you may have that calculates bias of a statistical forecast in a time series? 2) Supposed I have the file in the fixed width format (details below). 1-62 character key 63-76 sales data point

[R] Help with read.fwf

2009-10-28 Thread Vadlamani, Satish {FLNA}
Hi All: I am trying to use read.fwf and encountering the following error below. Any ideas on what I can do? I tried to use read.table (and the default for read.table is space) and it works. I am not sure why read.fwf is not working test_data_frame =

[R] Help with creating some loops

2009-10-30 Thread Vadlamani, Satish {FLNA}
Hi All: I have a data frame called all_corn. This has 31 columns. The first column is a character key. The next 15 columns (stat1,stat2,...,stat15) are the statistical forecast. The last 15 columns (sls1,sls2,...,sls5) are actual sales. I want to calculate textbook tracking signal and cuulative

Re: [R] Help with creating some loops

2009-10-30 Thread Vadlamani, Satish {FLNA}
Now df1$new should be ab ef Thanks. Satish _ From: Vadlamani, Satish {FLNA} Sent: Friday, October 30, 2009 8:40 AM To: R-help@r-project.org Subject:Help with creating some loops Hi All: I have a data frame called all_corn. This has

[R] Merge records in the same dataframe

2009-11-05 Thread Vadlamani, Satish {FLNA}
Hi: Suppose that I have a data frame as below x1 x2 x3 ... x10 wk1 wk2 ... Wk208 (these are the column names) For each record, x1, x2, x3 ... x10 are attributes. and wk1, wk2, ..., wk208 are the sales recoreded for this attribute combination. Suppose that now, that I want to do the following

[R] How to read numeric as text

2009-11-05 Thread Vadlamani, Satish {FLNA}
Hi: If I want to read a file with read.table. I want x1 and x2 to be read as character and x3 as numeric. How to do this? Thanks. Satish x1 ,x2,x3 10,20,30 11 ,22,35 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] Installing R and modules on Unix OS

2010-01-27 Thread Vadlamani, Satish {FLNA}
Hi: I have a question about installing R (and modules) on a Unix system (AIX). Can I just gunzip (or the equivalent) the installation files into my home directory or will I need someone with root access to install R? I am hoping that the answer is the former (I can unzip all files to a directory

[R] Reading large files

2010-02-04 Thread Vadlamani, Satish {FLNA}
Folks: I am trying to read in a large file. Definition of large is: Number of lines: 333, 250 Size: 850 MB The maching is a dual core intel, with 4 GB RAM and nothing else running on it. I read the previous threads on read.fwf and did not see any conclusive statements on how to read fast.

Re: [R] Reading large files

2010-02-05 Thread Vadlamani, Satish {FLNA}
know your thoughts on the approach? Satish -Original Message- From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Sent: Friday, February 05, 2010 5:16 PM To: Vadlamani, Satish {FLNA} Cc: r-help@r-project.org Subject: Re: [R] Reading large files If your problem is just how long

Re: [R] Reading large files

2010-02-06 Thread Vadlamani, Satish {FLNA}
again. Saitsh -Original Message- From: jim holtman [mailto:jholt...@gmail.com] Sent: Saturday, February 06, 2010 6:16 AM To: Gabor Grothendieck Cc: Vadlamani, Satish {FLNA}; r-help@r-project.org Subject: Re: [R] Reading large files In perl the 'unpack' command makes it very easy to parse

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 Vadlamani, Satish {FLNA}
in readRegistry(key, maxdepth = 3) : Registry key 'SOFTWARE\R-core' not found -Original Message- From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Sent: Saturday, February 06, 2010 12:14 PM 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 Vadlamani, Satish {FLNA}
: Saturday, February 06, 2010 3:02 PM To: Vadlamani, Satish {FLNA} Cc: r-help@r-project.org Subject: Re: [R] Reading large files 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

Re: [R] Reading large files

2010-02-06 Thread Vadlamani, Satish {FLNA}
4 99 2 A 41 37 99 4925 4925 99 99 4 99 -Original Message- From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Sent: Saturday, February 06, 2010 4:28 PM To: Vadlamani, Satish {FLNA} Cc: r-help@r-project.org Subject: Re: [R] Reading large

Re: [R] Reading large files

2010-02-06 Thread Vadlamani, Satish {FLNA}
To: Vadlamani, Satish {FLNA} Cc: r-help@r-project.org Subject: Re: [R] Reading large files 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

[R] dataframe question

2010-02-07 Thread Vadlamani, Satish {FLNA}
Folks: Good day. Please see the code below. three_wk_out is a dataframe with columns wk1 through wk209. I want to change the format of the columns. I am trying the code below but it does not work. I need $week in the for loop interpreted as wk1, wk2, etc. Could you please help? Thanks. Satish

Re: [R] dataframe question

2010-02-07 Thread Vadlamani, Satish {FLNA}
: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Sunday, February 07, 2010 8:51 PM To: Vadlamani, Satish {FLNA} Cc: r-help@r-project.org help Subject: Re: [R] dataframe question On Feb 7, 2010, at 8:14 PM, David Winsemius wrote: On Feb 7, 2010, at 7:51 PM, Vadlamani, Satish {FLNA} wrote

[R] Contributed packages

2010-02-07 Thread Vadlamani, Satish {FLNA}
Folks: If you wanted to find out about what are the contributed packages and classify them, how would you go about it? For someone new like me, I would like to know what the possibilities are. When I click on install packages on my Windows version of R, it gives me a list but it is hard to

[R] Comparing R and SAs

2009-06-09 Thread Vadlamani, Satish {FLNA}
Hi: For those of you who are adept at both SAS and R, I have the following questions: a) What are some reasons / tasks for which you would use R over SAS and vice versa? b) What are some things for which R is a must have that SAS cannot fulfill the requirements? I am on the ramp up on both of

[R] 64 bit compiled version of R on windows

2009-03-30 Thread Vadlamani, Satish {FLNA}
Hi: 1) Does anyone have experience with 64 bit compiled version of R on windows? Is this available or one has to compile it oneself? 2) If we do compile the source in 64 bit, would we then need to compile any additional modules also in 64 bit? I am just trying to prepare for the time when I

[R] Test mail

2009-03-04 Thread Vadlamani, Satish {FLNA}
Hi: This is a test mail. Thanks. Satish __ 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 commented, minimal, self-contained,

[R] Question about the use of large datasets in R

2009-03-04 Thread Vadlamani, Satish {FLNA}
Hi: Sorry if this is a double post. I posted the same thing this morning and did not see it. I just started using R and am asking the following questions so that I can plan for the future when I may have to analyze volume data. 1) What are the limitations of R when it comes to handling large