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
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
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
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
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
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
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
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
? 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
));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
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
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
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
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
, 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
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
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
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
'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
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
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
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
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
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
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
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
) 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
...
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
,
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
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
...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
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
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
))
{
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
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
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
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
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
, 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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
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
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
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
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:
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
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
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
(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
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
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
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
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
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
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
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
?... 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
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
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
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
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
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
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
. 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
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 - 100 of 110 matches
Mail list logo