search for: shubha

Displaying 20 results from an estimated 110 matches for "shubha".

2008 Jul 23
18
Simple... but...
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}}
2008 Aug 12
7
Between the values
...... C=0.1 I want to check whether my value of C is between 0 and 1 exclusively.... I don't want to use (C>0 & C<1). And I can't use a single statement like (0<C<1). Is there a between function? Or how do we specify from 0 to 1? Does %in% help me? Many Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}}
2008 Jul 08
8
Sum(Random Numbers)=100
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}}
2008 Jul 23
8
sequential sum of a vector...
...nother 8 elements..... So, my new vector should look like: c(36,100,164,228,292,356,420,484,548,612) I used: aggregate(x,list(rep(1:10,each=8)),sum)[-1] or rowsum(x,group=rep(1:10,each=8)) But without grouping, can I achieve the required? Any other ways of doing this? Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}}
2008 Apr 09
11
Number of words in a string
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 * London * New York * San José * Singapore * www.ambaresearch.com This e-mail may contain confidential and/or privileged i...{{dropped:13}}
2006 Dec 02
4
Fwd: Urgent Help in Paste Command
...n "paste("'C:","\","Program" >paste("'C:","Program Files","R","R-2.4.0","bin","Rgui.exe'",sep="\") + I need to only use the \ symbol and not / or \\. Please help me… Thank you, Shubha. [[alternative HTML version deleted]]
2007 Feb 13
5
Fatigued R
...code with the sleep function, then the program works. But if I keep on doing this with on R, repeatedly I get errors. Please can anyone do something for this? Is there any function of refreshing R completely.....Or any other techniques?...I am really getting bugged with this....... Thanks, Shubha [[alternative HTML version deleted]]
2008 May 06
2
To preserve the class "Matrix"
..."matrix" > class(a[,1:2]) [1] "matrix" > class(a[,1:3]) [1] "matrix" But, > class(a[1,]) [1] "integer" > class(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 confidential and/or privileged i...{{dropped:13}}
2010 Jan 03
2
Scores in Dimensions in Correspondence Analysis
...respondence analysis. data(author) ca(author) plot(ca(author)) How can I get the values used by the plot for the two axis for biplot? In other words, how will I be able to obtain the scores in the dimensions (which are obtained by PCA) of the graphs? Thanks. Thanks and Regards, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}}
2010 Apr 24
4
DICE Coefficient of similarity measure
..., for this command, the input object should be an igraph object. But, I have a dataframe of columns containing 1'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}}
2008 Dec 11
3
Downloading Reuters data from R
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}}
2008 May 14
2
dataframes to a list
Hi R, I have the data frames, data1, data2....data50. 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}}
2008 May 13
9
A Very Simple Question
On 5/13/2008 10:27 AM, Yukihiro Ishii wrote: > Hi Rusers! > > I am ashed of asking such a simple question. > > X<-matrix(rnorm(24), 4) > X0<-apply(X,2,mean) > > What I want is a matrix which consists of colums such as X[,1]--X0[1]. > > X-X0 doesn't work. > > Perhaps apply function? scale(X, scale=FALSE) ?scale > Thanks in advance. > >
2006 Nov 16
5
<RBloomberg Package Problem>
Hi R-Experts, I'm currently using R 2.4.0 in Windows XP. I'm trying to download data from Bloomberg using the package "RBloomberg", but it fails to install the three needed packages "zoo", "chron" and 'Rbloomberg". Moreover I am not able to find "RBloomberg" package as windows binary in CRAN site as only for MAC it's given. Please
2007 Aug 29
5
Month end calculations
Hi R users, Is there a function in R, which does some calculation only for the month end in a daily data?... In other words, is there a command in R, equivalent to "last." function in SAS? BR, Shubha [[alternative HTML version deleted]]
2008 Nov 07
2
Mismatch in logical result?
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 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}}
2008 May 24
1
Solving 100th order equation
Hi R, I have a 100th order equation for which I need to solve the value for x. Is there a package to do this? For example my equation is: (x^100 )- (2*x^99) +(10*x^50)+.............. +(6*x ) = 4000 I have only one unknown value and that is x. How do I solve for this? 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}}
2008 Mar 25
3
Dimensions of a List
...][[1]] [1] 1 2 [[1]][[2]] [1] 4 5 [[1]][[3]] [1] 6 7 [[2]] [[2]][[1]] [1] 11 22 33 [[2]][[2]] [1] 44 55 66 How do I know the dimensions of this list?... 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}}
2008 Aug 07
3
Downloading Yahoo data
...ect of a basic class ("character") with no slots The problem is related with connection of R with the internet. But my port 80 is opened. Then also the error persists. And also, the link is accessible in my PC via the direct internet. How do I make this work? Many Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}}
2008 Jun 04
4
sum of unknown number of matrices
...es in the list. Example: a=b=c=d=matrix(1:4,2,2) l=list(a,b,c,d) I need: > a+b+c+d [,1] [,2] [1,] 4 12 [2,] 8 16 Something like do.call("+",l) is not working...why is this? I may not be knowing the number of matrices in the list... Thanks, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}}