[R] Hlep in analysis in RWinBugs

2017-06-03 Thread Shubha Nath Pandit
Hi R User, I was trying to use R for WINBUGS using following model and data (example), but I am new with WINBUGS and don't know how we perform the analysis. I wonder whether I can run the following the example data and Winbugs Model in R. Your help will be highly appreciated. Sincerely, SN

[R] Accessing Havers data from R?

2011-06-09 Thread Shubha Vishwanath Karanth
Hi R, Do we have R package to extract data from Havers data provider? For example, just like we have RBloomberg package to extract data from Bloomberg. If not are there any other mechanisms to extract the data from Havers? Thanks and Regards, Shubha. This e-mail may contain

[R] Dates when transferred from RExcel to R.

2011-01-18 Thread Shubha Vishwanath Karanth
stored in StartDate 4.The output is: StartDate [1] 2010-12-31 23:30:00 IST Please note that this output is 30 minutes less than the actual date. Why is this? Thanks and Regards, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13

[R] how do remove those predictor which have p value greater than 0.05 in GLM?

2010-11-22 Thread shubha
please give your suggestions. It would be really a great help. please see the example of retaining predictors which have p value is greater that 0.05 after stepwise logistic regression. Thank Shubha Pandit, PhD University of Windsor Windsor, ON, Canada summary(step.glm.int.ag1) Call: glm

Re: [R] how do remove those predictor which have p value greater than 0.05 in GLM?

2010-11-22 Thread shubha
Thanks for the response, Frank. I am not saying that I want to delete a variables because of p0.5. But my concern was: I am using backward stepwise logistic regression, it keeps the variables in the final model if the variable significantly contributing in the model. Otherwise, it should not be

Re: [R] KMedians clustering in R

2010-09-17 Thread Shubha Vishwanath Karanth
is the mathematical median calculated separately for each dimension.) Any package which does KMedian clustering algorthm? Many Thanks.   Regards, Shubha. -Original Message- From: Christian Hennig [mailto:chr...@stats.ucl.ac.uk] Sent: Thursday, September 16, 2010 9:32 PM To: Shubha Vishwanath Karanth Cc: r

[R] KMedians clustering in R

2010-09-16 Thread Shubha Vishwanath Karanth
Hi R, Is there a package in R to perform KMedian clustering? Thanks. Shubha This e-mail may contain confidential and/or privileged i...{{dropped:10}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] Robust Regression + Stepwise

2010-08-16 Thread Shubha Vishwanath Karanth
Hi R, Can I perform a stepwise method for robust regression? In other words, how do I combine the methods step and rlm together? Thanks and Regards, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R

[R] Stepwise Regression + entry/exit significance level

2010-08-14 Thread Shubha Vishwanath Karanth
? Thanks. Thanks and Regards, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] Maximum seasonal 'q' parameter

2010-08-04 Thread Shubha Vishwanath Karanth
));tsdiag(fit);fit$aic Error in makeARIMA(trarma[[1L]], trarma[[2L]], Delta, kappa) : maximum supported lag is 350 Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list

[R] as.dendrogram for DICE coefficient.

2010-07-27 Thread Shubha Vishwanath Karanth
and then to the larger, which should not be the case, because, the objects with larger coefficients are closer to each other than the smaller. How do I say the as.dendrogram to group the objects for larger values of the DICE coefficient? Thanks, Shubha This e-mail may contain confidential and/or privileged i

[R] Transformation of Y changes the 'lm' object?

2010-07-20 Thread Shubha Vishwanath Karanth
was wondering, since I have not changed the 'lm_obj', I should get both stepwise results as the same. Or does the transformation of Y, changes the 'lm_obj' without actually specifying? Thanks for the clarifications. Thanks and Regards, Shubha Karanth | Amba Research Ph +91 80 3980 8435

[R] Extreme Value Regression model

2010-07-15 Thread Shubha Vishwanath Karanth
Hi R, Just like a Poisson regression model, is there a package in R to do Extreme Value Regression model? Thanks. Thanks and Regards, Shubha Karanth This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r

Re: [R] Extreme Value Regression model

2010-07-15 Thread Shubha Vishwanath Karanth
Thanks. But they don't speak of the extreme value distribution like Gumbel, Frechet or Weibull Thanks and Regards, Shubha Karanth | Amba Research Ph +91 80 3980 8435 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com

[R] R user interface

2010-06-17 Thread Shubha Vishwanath Karanth
, taking the data from Excel. Is this possible and which package helps me in doing this? Many thanks in advance. Thanks and Regards, Shubha Karanth This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org

[R] fgev + negative location parameter for positive data?

2010-06-16 Thread Shubha Vishwanath Karanth
are correct. Thanks and Regards, Shubha Karanth This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] F-statistic in ARIMA model

2010-05-12 Thread Shubha Vishwanath Karanth
Hi all, Can I get the F-statistic from the arima() option? Or at least the residual degrees of freedom in the arima()? Or do I have to convert the ARIMA model back to the regression model and then get the F-statistic? Thanks. Thanks, Shubha This e-mail may contain confidential

[R] Creating R exe files

2010-05-11 Thread Shubha Vishwanath Karanth
Hi all, Just like Fortran creates EXE files for a code, can R also do the same? Thanks for the info. Thanks and Regards, Shubha Karanth | Amba Research Ph +91 80 3980 8283 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com

[R] DICE Coefficient of similarity measure

2010-04-24 Thread Shubha Vishwanath Karanth
's and 0's. Can I convert this dataframe into an igraph object, so that the DICE coefficient can be reproduced? Or does any other packages gives the DICE coefficient? Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13

[R] table command

2010-04-24 Thread Shubha Vishwanath Karanth
or NA? Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ 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

Re: [R] DICE Coefficient of similarity measure

2010-04-24 Thread Shubha Vishwanath Karanth
Just wrote a small piece of code to do so. Thanks. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Shubha Vishwanath Karanth Sent: Saturday, April 24, 2010 6:28 PM To: r-help@r-project.org; r-h...@stat.math.ethz.ch Cc: gabor.csa

[R] Time series cross-sectional regression analysis

2010-02-21 Thread Shubha Vishwanath Karanth
Hi all, Is there a package in R to perform time series cross-sectional regression analysis (like the TSCSREG procedure in SAS)? Thanks for the info. Thanks and Regards, Shubha Karanth | Amba Research Ph +91 80 3980 8283 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York

[R] Scores in Dimensions in Correspondence Analysis

2010-01-03 Thread Shubha Vishwanath Karanth
by PCA) of the graphs? Thanks. Thanks and Regards, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Scores in Dimensions in Correspondence Analysis

2010-01-03 Thread Shubha Vishwanath Karanth
Does the $rowcoord and $colcoord help? Thanks and Regards, Shubha Karanth -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Shubha Vishwanath Karanth Sent: Sunday, January 03, 2010 6:25 PM To: r-help@r-project.org Subject: [R

Re: [R] Scores in Dimensions in Correspondence Analysis

2010-01-03 Thread Shubha Vishwanath Karanth
Got that... Thanks and Regards, Shubha Karanth | Amba Research Ph +91 80 3980 8283 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com   -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org

[R] Digitizing the Plot

2009-04-16 Thread Shubha Vishwanath Karanth
in http://www.uniphiz.com/digitizing.htm) Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] Built-in Code behind SVM

2009-04-10 Thread Shubha Vishwanath Karanth
) is doing? Thanks a lot for your help... Thanks and Regards, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Have a function like the _n_ in R ? (Automatic count function)

2009-02-25 Thread Shubha Vishwanath Karanth
temp=data.frame(a=c(4,3,2,6),b=c(7,4,2,4)) temp a b 1 4 7 2 3 4 3 2 2 4 6 4 temp$counter=1:nrow(temp) temp a b counter 1 4 7 1 2 3 4 2 3 2 2 3 4 6 4 4 Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York

[R] Calling R from SAS

2009-01-24 Thread Shubha Vishwanath Karanth
was supposed to be put in SAS mailing list. But thought if someone would have worked with this, can help... Thanks for your help, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing

Re: [R] Calling R from SAS

2009-01-24 Thread Shubha Vishwanath Karanth
Got it working... Just that the R code file's extension was missing in the physical folder... Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From: r-help

Re: [R] Downloading Reuters data from R

2008-12-12 Thread Shubha Vishwanath Karanth
this problem. Where should the 'reuters_ts1.zip' to be stored? And how can I access 'reuters_ts.dll' file for my use? Even checked ?dyn.load, but a bit confused. How do we use this? I am sorry, if this troubles. Mine is a Windows XP Config. Thanks again, Shubha -Original Message- From

[R] Downloading Reuters data from R

2008-12-11 Thread Shubha Vishwanath Karanth
Hi R, Can we download Reuters (3000 Xtra) data from R? Does ODBC package help me in this? Or otherwise, is there a way to extract daily closing prices data of Reuters from R? Thank you very much, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13

[R] Mismatch in logical result?

2008-11-07 Thread Shubha Vishwanath Karanth
Hi R, I have certain checkings, which gives FALSE, but actually it is true. Why does this happen? Note that the equations that I am checking below are not even the case of recurring decimals... 1.4^2 == 1.96 [1] FALSE 1.2^3==1.728 [1] FALSE Thanks in advance, Shubha

[R] Row and Column positions

2008-10-31 Thread Shubha Vishwanath Karanth
Hi R, m=data.frame(a=c(1,NA,5,5),b=c(4,5,6,7),c=c(NA,NA,NA,5)) I want to know the methods of getting row and column positions of NA in the above dataframe. How do I do this? Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13

Re: [R] SAS Data

2008-10-13 Thread Shubha Vishwanath Karanth
to be read, ' Z:\\MyFolder' is the physical path where 'data1.sas7bdat' is situated and 'sascmd' refers to the path where SAS is installed in your system. Please confirm that your SAS is installed in the same path. Also note that you have to install the 'foreign' package to do this. BR, Shubha Shubha

[R] Cross-tabulation Question

2008-09-29 Thread Shubha Vishwanath Karanth
don't want the count to be like the above. Here, it is counting the number of rows in that particular category. What I need is in each category, the count of unique V1's. So, my output should look like, Apple Cake One 21 Any ideas please... Thanks, Shubha

Re: [R] extracting max row from data matrix

2008-09-08 Thread Shubha Vishwanath Karanth
aggregate(x$weight,list(x$fruit),max) Group.1 x 1 apple 1.6 2 orange 1.6 Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From: [EMAIL PROTECTED

[R] To find vector X under contraints

2008-09-08 Thread Shubha Vishwanath Karanth
this in R? BR, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com This e-mail may contain confidential and/or privileged i...{{dropped:13

[R] Between the values

2008-08-12 Thread Shubha Vishwanath Karanth
Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ 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

Re: [R] Between the values

2008-08-12 Thread Shubha Vishwanath Karanth
Or at least anyways of defining a vector/(or something like that) which has all values between 0 and 1? For example: C(0,1) is incorrect, seq(0,1,0.2) is also incorrect, seq(0,1,0.1) is also incorrect How does one specify this? Thanks, Shubha -Original Message- From: Dan

Re: [R] Between the values

2008-08-12 Thread Shubha Vishwanath Karanth
Thanks Ravi... But was just wondering if there existed a simple tricky command for that without using the condition Also was thinking on my second question that how do we define an interval between 0 and 1 which contains all the values between 0 and 1. Thanks, Shubha Shubha Karanth | Amba

Re: [R] Between the values

2008-08-12 Thread Shubha Vishwanath Karanth
help, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From: Ravi Varadhan [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 7:34 PM To: Shubha

Re: [R] Between the values

2008-08-12 Thread Shubha Vishwanath Karanth
, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Davison Sent: Tuesday, August 12, 2008

[R] Downloading Yahoo data

2008-08-07 Thread Shubha Vishwanath Karanth
internet. How do I make this work? Many Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] Downloading Yahoo data

2008-08-07 Thread Shubha Vishwanath Karanth
Yes Henrique... we are connecting to the internet through a proxy... Thanks, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From: Henrique

[R] dens function

2008-07-30 Thread Shubha Vishwanath Karanth
Hi R, Is there a function called dens in R? Is it similar to density? I found this function in an RExcel demo... Or is it in a specific other package? The function is used as (=rapply(dens,A11:A1010,100,D8,-5,5)) Thanks, Shubha This e-mail may contain confidential and/or privileged

[R] Simple... but...

2008-07-23 Thread Shubha Vishwanath Karanth
Hi R, If x=c(1,3,5) y=c(2,4,6) I need a vector which is c(1,2,3,4,5,6) from x and y. How do I do it? I mean the best way Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r

Re: [R] Simple... but...

2008-07-23 Thread Shubha Vishwanath Karanth
Guess this should be fine c(rbind(x,y)) Please let me know if there are some better ways... Thanks, Shubha -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shubha Vishwanath Karanth Sent: Wednesday, July 23, 2008 6:25 PM To: [EMAIL PROTECTED

Re: [R] Simple... but...

2008-07-23 Thread Shubha Vishwanath Karanth
OK, Let x=c(4,2,2) y=c(1,5,3) My result should be c(4,1,2,5,2,3) Thanks, Shubha -Original Message- From: Doran, Harold [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 6:47 PM To: Shubha Vishwanath Karanth; [EMAIL PROTECTED] Subject: RE: [R] Simple... but... x - c

Re: [R] sequential sum of a vector...

2008-07-23 Thread Shubha Vishwanath Karanth
... Thanks, shubha From: Jorge Ivan Velez [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 8:59 PM To: Shubha Vishwanath Karanth Cc: [EMAIL PROTECTED] Subject: Re: [R] sequential sum of a vector... Dear Shubha, Try this: x=1:80 tapply(x,rep(1:10

[R] A neural network problem---neuralnet package

2008-07-18 Thread Shubha Vishwanath Karanth
, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ 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

[R] Sum(Random Numbers)=100

2008-07-08 Thread Shubha Vishwanath Karanth
Hi R, I need to generate 50 random numbers (preferably poisson), such that their sum is equal to 100. How do I do this? Thank you, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org

Re: [R] Sum(Random Numbers)=100

2008-07-08 Thread Shubha Vishwanath Karanth
...actually I need to allocate certain amount of money (here I mentioned it as 100) to a randomly selected stocks(50 stocks)... i.e., 100 being divided among 50 stocks and preferably all are integer allocations(i.e., 5 8 56 12 etc without any decimals)... Thank you, Shubha -Original Message

[R] Calling R functions into C# or C++

2008-06-19 Thread Shubha Vishwanath Karanth
Hi R, I have a request... Can I call R functions/routines from C# or C++? If so, how do I do this? Do I need to have some knowledge on DLL to do this? Thanks a lot for your help, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore

[R] Comparison between R and MATLAB

2008-06-19 Thread Shubha Vishwanath Karanth
Hi R, Can I get a comparison between R and MATLAB? How is R efficient than MATLAB? Or what are the weaknesses of R compared to MATLAB? Thank you very much for your help, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London

[R] The log function problem

2008-06-12 Thread Shubha Vishwanath Karanth
)) { UseMethod(log) } log(2) Error in .Internal(log(x)) : no internal function log Many Thanks for your help, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https

[R] Polynomial Goal Programming

2008-06-11 Thread Shubha Vishwanath Karanth
Hello R, Is there a package to perform Polynomial goal programming in R? BR, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com This e-mail may contain confidential

[R] Overlaying the matrices

2008-06-09 Thread Shubha Vishwanath Karanth
What would be the best way to do this? Many Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] sum of unknown number of matrices

2008-06-04 Thread Shubha Vishwanath Karanth
not be knowing the number of matrices in the list... Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] sum of unknown number of matrices

2008-06-04 Thread Shubha Vishwanath Karanth
Thanks all...Reduce() is the new function I learnt today... Thanks... BR, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From: Barry Rowlingson

[R] Solving 100th order equation

2008-05-24 Thread Shubha Vishwanath Karanth
, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R

Re: [R] Solving 100th order equation

2008-05-24 Thread Shubha Vishwanath Karanth
To apply uniroot I don't even know the interval values... Does numerical methods help me? Or any other method? Thanks and Regards, Shubha -Original Message- From: Duncan Murdoch [mailto:[EMAIL PROTECTED] Sent: Saturday, May 24, 2008 5:08 PM To: Shubha Vishwanath Karanth Subject: Re: [R

Re: [R] Solving 100th order equation

2008-05-24 Thread Shubha Vishwanath Karanth
Was also wondering which theoretical method is used to solve this problem? Thanks, Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From: Gabor Grothendieck

Re: [R] Pros and Cons of R

2008-05-22 Thread Shubha Vishwanath Karanth
Completely agreed! BR, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ruben Roa

[R] apply function

2008-05-15 Thread Shubha Vishwanath Karanth
Why is this so? How do I get the actual classes of columns of my dataframe d? Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] Reading SAS data into R

2008-05-15 Thread Shubha Vishwanath Karanth
3 3 4 5 It reads perfect! It reads well for tsubset1,tsubset2,., tsubset9 datasets. But then onwards it gives an error as below: * s=read.ssd(Z:/data,tsubset10,sascmd = C:/Program Files/SAS/SAS 9.1/sas.exe) SAS failed. SAS program at C:\DOCUME~1\SHUBHA~1.AMB\LOCALS~1\Temp\1

Re: [R] Reading SAS data into R

2008-05-15 Thread Shubha Vishwanath Karanth
Seems that it gets deleted But lemme try again by providing the arguments... Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From: Peter Dalgaard

Re: [R] Reading SAS data into R

2008-05-15 Thread Shubha Vishwanath Karanth
Hi Peter, Realized that the log files are generated only when there is an error. Here are my contents of the log file: libname src2rd 'Z:/data'; libname rd xport 'C:\DOCUME~1\SHUBHA~1.AMB\LOCALS~1\Temp\1\RtmpObHuqk\file323b4e45'; proc copy in=src2rd out=rd; select tsubset10 ; Shubha Karanth

Re: [R] Reading SAS data into R

2008-05-15 Thread Shubha Vishwanath Karanth
After running the codes in the log file, I realized that this has something to do with SAS only... Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From

Re: [R] Reading SAS data into R

2008-05-15 Thread Shubha Vishwanath Karanth
, those were not read! Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shubha Vishwanath Karanth

Re: [R] Reading SAS data into R

2008-05-15 Thread Shubha Vishwanath Karanth
By RD library I mean the xport library... Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From: Shubha Vishwanath Karanth Sent: Thursday, May 15, 2008 7

[R] dataframes to a list

2008-05-14 Thread Shubha Vishwanath Karanth
Hi R, I have the data frames, data1, data2data50. Now I want to put all of these in a single list. But, list(data1, data2,.data50) is very big to write. How do I then do it? Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13

Re: [R] dataframes to a list

2008-05-14 Thread Shubha Vishwanath Karanth
How do I proceed from this stage? paste(data,1:10,sep=,collapse=,) Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[R] A very simple question

2008-05-14 Thread Shubha Vishwanath Karanth
Hi R, Suppose l=c(1,1,1,2,2,1,1,1) k[-which(k==1)] [1] 2 2 k[-which(k==2)] [1] 1 1 1 1 1 1 But, k[-which(k==3)] numeric(0) I do not want this numeric(0), instead the whole k itself should be my result... How do I do this? Thanks, Shubha This e-mail may

[R] Regular Expressions

2008-05-13 Thread Shubha Vishwanath Karanth
the regular expression Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com This e-mail may contain confidential and/or privileged i...{{dropped:13

[R] Remove an object by the reference

2008-05-13 Thread Shubha Vishwanath Karanth
Hi R, A simple question, but don't know the answer... x=a a=5 I need to remove the object a by using only x. something like rm(somefunction(x))...Is this possible? Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York

[R] Quadratic Constraints

2008-05-12 Thread Shubha Vishwanath Karanth
Hi R, A quick question How can I optimize the objective function constrained to quadratic constraints? Which function of R is useful for quadratic constraints? Many Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13

Re: [R] Quadratic Constraints

2008-05-12 Thread Shubha Vishwanath Karanth
Hello R, By any chance, Rdonlp2 package of R defined in http://arumat.net/Rdonlp2/tutorial.html#SECTION0002 serves the below purpose? BR, Shubha -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shubha Vishwanath Karanth Sent: Monday, May

[R] orders of the arima model

2008-05-08 Thread Shubha Vishwanath Karanth
the aic's of the models were the least. My question is whether the procedure ?arima can throw the orders (p and q) of the arima model? Many Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r

Re: [R] Re turning variable names with variables (in a function)

2008-05-08 Thread Shubha Vishwanath Karanth
You can just go for a small change in the function as, results - cbind(se, upper, lower, cv) OR results - data.frame(se, upper, lower, cv) -S- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stropharia Sent: Thursday, May 08, 2008 5:51 PM To:

[R] single plot statement, multiple plots

2008-05-06 Thread Shubha Vishwanath Karanth
in the 'plot' statement itself to do this? Thanks in advance, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] single plot statement, multiple plots

2008-05-06 Thread Shubha Vishwanath Karanth
Thank you very much Gabor...Zoo is very powerful... Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From: Gabor Grothendieck [mailto:[EMAIL PROTECTED] Sent

Re: [R] single plot statement, multiple plots

2008-05-06 Thread Shubha Vishwanath Karanth
Shubha Vishwanath Karanth [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Hi R, par(mfrow=c(2,2)) x1=(1:5)^1; x2=(1:5)^2; x3=(1:5)^3; x4=(1:5)^4 I need to write a single plot statement, which creates 4 plots (for x1, x2, x3 and x4) in the graphics window, without using 'for' loop

[R] To preserve the class Matrix

2008-05-06 Thread Shubha Vishwanath Karanth
(a[,1]) [1] integer Can in a general way get class(a[1,]) or class(a[,1]) to be matrix only? Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com This e-mail may contain

Re: [R] To preserve the class Matrix

2008-05-06 Thread Shubha Vishwanath Karanth
Thank you very much Mark! That worked Just a question, ?[ does give an error to me...how do I find it? Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message

[R] Number of words in a string

2008-04-09 Thread Shubha Vishwanath Karanth
Hi R, A quick question: How do we find the number of words in a string? Example: C=Have a nice day And the number of words should be 4. any built in function or?... Thanks, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo

Re: [R] Number of words in a string

2008-04-09 Thread Shubha Vishwanath Karanth
To put in more general, C=c(My Dog, Its really good, Beautiful) And the resultant output should be [1] 2 3 1 ...the number of words Thank you... Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore

Re: [R] Number of words in a string

2008-04-09 Thread Shubha Vishwanath Karanth
Exactly...this is what I wanted... Can we also extract/remove the last word of the strings? Example: C=c(My Dog, Its really good, Beautiful) sapply(strsplit(C, ), length) [1] 2 3 1 Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New

Re: [R] Number of words in a string

2008-04-09 Thread Shubha Vishwanath Karanth
Got all the answers using ?strsplit... Is there any way without using string split?... More specifically... How can I just extract the last word in all the strings without using ?strsplit ? Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London

Re: [R] Number of words in a string

2008-04-09 Thread Shubha Vishwanath Karanth
To put it simple, C=c(My Dog, Its really good, Beautiful) Now, SOMEFUNCTION(C) should give: c(My, Its really, ) Thanks, Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com

Re: [R] Number of words in a string

2008-04-09 Thread Shubha Vishwanath Karanth
So powerful, the gsub... But I really don’t understand the how the regular expressions like *\\S+$, need to be used and how to make best use of it... Any article/material/links that I can go through? BR, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510

[R] Dimensions of a List

2008-03-25 Thread Shubha Vishwanath Karanth
?... In other words, how many sub-lists, sub-sub-lists etc...are there in l? How do I know this? Thanks in advance Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Dimensions of a List

2008-03-25 Thread Shubha Vishwanath Karanth
Thanks a lot for your reply...Exactly...I need the same...But can I store these numbers and hence can access further? In other words how do I extract the numbers/dimensions from this class? Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London

[R] RMysql question

2008-02-27 Thread Shubha Vishwanath Karanth
on this? Many Thanks, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com This e-mail may contain confidential and/or privileged i...{{dropped:13

[R] Transposing by a group variable

2008-02-14 Thread Shubha Vishwanath Karanth
Hi R, Can I transpose a data frame by a particular group variable? For example: d=data.frame(group=c(1,1,2,2,2),val=c(6,4,6,3,5)) And my output should be: data.frame(group=c(1,2),v1=c(6,6),v2=c(4,3),v3=c(NA,5)) Many thanks, Shubha This e-mail may contain confidential

[R] .fortran code

2008-02-07 Thread Shubha Vishwanath Karanth
Hi, I need to look/understand what the .fortran() doing in say, the source code of the eigen command. How do I look into this? Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org

[R] wilderSum

2008-02-06 Thread Shubha Vishwanath Karanth
Hi, Can somebody tell me the formula for ?wilderSum in TTR package? I mean how are these calculated? BR, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com This e

[R] Accessing the elements of a list

2008-02-01 Thread Shubha Vishwanath Karanth
through sapply as: sapply(v,function(x) x[3]) But I need to access this without using 'sapply'. Like in a data frame, we do df[2,3] etc Any ideas? BR, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R

[R] acf lag1 value

2008-01-17 Thread Shubha Vishwanath Karanth
. So, I want to know what the 'acf' function is calculating here Thanks in advance, Shubha Karanth This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] acf lag1 value

2008-01-17 Thread Shubha Vishwanath Karanth
Thank you Professor... Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Thursday, January 17, 2008

  1   2   >