Re: [R] R in the NY Times

2009-01-08 Thread Rahul-A.Agarwal
I believe R as a package has everything people with little knowledge of programming can handle quite easily. Moreover even if someone has no programming knowledge can learn R without much effort. I also believe if people in corporate world start using R instead of other complex software which are

[R] Dataframe with unequal rows

2009-01-08 Thread Rahul-A.Agarwal
I have a data frame with unequal rows length separated by comma.I have to read the data first and then calculate number of comma in each row...how can I do that Regards Rahul __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] Oja median

2008-11-19 Thread Rahul-A.Agarwal
Apologies Roger, if you find anything wrong with the mail. Thanks for the reference Roger. IS there anything else which I can look at, say something in R itself? Regards and thanks once again Rahul Agarwal Analyst Equities Quantitative Research UBS_ISC, Hyderabad On Net: 19 533 6363 -

[R] Oja median

2008-11-19 Thread Rahul-A.Agarwal
Hi Roger, As we know that The Oja median has (finite) breakdown point 2/n, i.e., is not robust in any reasonable sense, and is quite expensive to compute, so do we have some better methodology to compute multivariate median Rahul Agarwal Analyst Equities Quantitative Research UBS_ISC, Hyder

[R] REXcel problem

2008-11-13 Thread Rahul-A.Agarwal
> Hi, > > I am trying to run a code in Excel using VBA from R, using > Rexcel.but everytime I am getting this error. Error - 2147220502 in module Recel.Rserver Error running expression Eval(parse(text="setwd(\"H:\\ > I am using R-2.8.0 and R.2.7 > Please help. > > > > << OLE Object

Re: [R] Big O, little o

2008-11-12 Thread Rahul-A.Agarwal
Please refer to Introduction to probability and statistics by Rohatgi and Saley -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sohail Sent: Wednesday, November 12, 2008 5:57 PM To: R-help@r-project.org Subject: [R] Big O, little o Sorry for misusing

Re: [R] Debug command-how to use

2008-11-11 Thread Rahul-A.Agarwal
Thanks a lot...I realised where I was going wrongif I declare debug = F then my problem is getting solved. -Original Message- From: jim holtman [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 9:12 AM To: Agarwal, Rahul-A Cc: r-help@r-project.org Subject: Re: [R] Debu

[R] Debug command-how to use

2008-11-11 Thread Rahul-A.Agarwal
I am getting this error could any one tell me why? if(debug) cat("rahul") Error in if (debug) cat("rahul") : argument is not interpretable as logical __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] R D COM Excel Add-Ins

2008-10-24 Thread Rahul-A.Agarwal
Also I wud like to add that in this addin the rput command never works Rahul Agarwal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Seres Sent: Friday, October 24, 2008 2:46 PM To: r-help@r-project.org Subject: [R] R D COM Excel Add-Ins Hell

Re: [R] Problem in Cart

2008-10-22 Thread Rahul-A.Agarwal
Hi, Sorry for the confusion but I am looking to use R for regression trees. My query is stated below and I am not able to understand how can I use tree library in this case Rahul Agarwal Analyst Equities Quantitative Research UBS_ISC, Hyderabad On Net: 19 533 6363 -Original Message-

[R] Problem in Cart

2008-10-22 Thread Rahul-A.Agarwal
Hi, Can some one help me in this project. I would like to initiate a project using CART. For example for NIFTY 50 stocks the first node could be cheap or expensive based on PE (Price Earning) with 2 subsequent nodes for earnings certainty and return on assets. Can anyone tell me how to go ahe

Re: [R] Oja median

2008-10-12 Thread Rahul-A.Agarwal
i have tried the code. The first function (which computes the Oja median) has a slight problem: If you try four points that create a square centred at (2,2) oja.median(cbind(c(1,3,1,3),c(1,1,3,3))) gives (-2,-2) instead of (2,2). Probably just a sign switch somewhere. The second function

[R] FW: Reading Data

2008-10-07 Thread Rahul-A.Agarwal
Rahul Agarwal Analyst Equities Quantitative Research UBS_ISC, Hyderabad On Net: 19 533 6363 hi let me explain you the problem we have a database which is in this format Stocks 30-Jan-08 28-Feb-08 31-Mar-08 30-Apr-08 a1.003.007.003.00

Re: [R] Reading Data

2008-10-07 Thread Rahul-A.Agarwal
Why m I getting this message data=read.table("H:/Rahul/london/david/rexcel/price1.txt",header=T,check.names=F,row.names=1) Error in read.table("H:/Rahul/london/david/rexcel/price1.txt", header = T, : duplicate 'row.names' are not allowed Rahul Agarwal Analyst Equities Quantitative Researc

Re: [R] Reading Data

2008-10-07 Thread Rahul-A.Agarwal
Hi What if I need to take dates and stock names from these table...i mean I need to read in this table and then use if function and extratc the data from FOO Identifier weight Start_Date End_Date a 6.7631Jan06 31Jan07 g 2.8628Feb06 28Feb07 e 22.94 31Mar06 30M

Re: [R] Reading Data

2008-10-07 Thread Rahul-A.Agarwal
Bang on!! Thanks for the help Rahul Agarwal Analyst Equities Quantitative Research UBS_ISC, Hyderabad On Net: 19 533 6363 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Philipp Pagel Sent: Tuesday, October 07, 2008 2:52 PM To: r-help@r-projec

Re: [R] Reading Data

2008-10-07 Thread Rahul-A.Agarwal
Hi I don't want to ignore the date row. See basically my first row is the date column and the 1st column is the stocks name. Now using the if loop I have to find prices of stocks corresponding to a date. I hope the problem is clear to you now For example Stocks 30-Jan-08 28-Feb-08

[R] Reading Data

2008-10-07 Thread Rahul-A.Agarwal
Hi, I have a data in which the first row is in date format and the first column is in text format and rest all the entries are numeric. Whenever I am trying to read the data using read.table, the whole of my data is converted in to the text format. Please suggest what shall I do because

Re: [R] Oja median

2008-09-21 Thread Rahul-A.Agarwal
Hi Could any one help me to code tukey half space depth and directinal quantile regression in R Rahul Agarwal Analyst Equities Quantitative Research UBS_ISC, Hyderabad On Net: 19 533 6363 -Original Message- From: roger [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2008

Re: [R] Oja median

2008-09-18 Thread Rahul-A.Agarwal
Thanks a lot Martin. I would definitely like to know more about calculating multivariate median. It would be better if I can get some method where I can calculate the median using functions in R. Will wait for your reply Thanks Rahul Agarwal Analyst Equities Quantitative Research UBS_ISC, Hyd

Re: [R] Oja median

2008-09-18 Thread Rahul-A.Agarwal
Hi Richard, Thanks for the code.but I already have a code for bivariate data...I want it for data when it is multivariate or its dimension is greater than two...i mean to say if it is trivariate or higher dimensioncan I get a more generalised form of oja median code Thanks and Regards

[R] Oja median

2008-09-18 Thread Rahul-A.Agarwal
Hi, Can we get the code for calculating Oja median for multivariate data Thanks and Regards Rahul Agarwal Analyst Equities Quantitative Research UBS_ISC, Hyderabad On Net: 19 533 6363 [[alternative HTML version deleted]] __ R-he