Displaying 20 results from an estimated 137 matches for "vishwanath".
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 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 Aug 12
7
Between the values
Hi R,
This is a very trivial one....
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
2017 Jan 24
2
Need information to bypass the preauth in openssh
Hi,
I am Vishwanath, I got one requirement from our clients regarding remote
authentication. In which all users info present in remote user database.
Currently using openssh for SSH connections.
To open a new remote session via SSH, the openssh will look into the
/etc/passwd file. If user present then it will allow t...
2010 Jun 16
3
Function argument as string
...column called AGE. Now I call the function c = a_fn(AGE);
When a_fn is called, AGE is received in arg1. My question is, how do I
access the actual name of the argument arg1? i.e, inside the
function, i need to know that the actual name of arg1 is "AGE" in this
case.
Thanks in advance,
Vishwanath
2007 Feb 13
5
Fatigued R
Hi R,
Please solve my problem...........
I am extracting Bloomberg data from R, in a loop. R is getting fatigued
by doing this process and gives some errors. I introduced sleep
function. Doing this sometimes I get the results and sometimes not. I
even noticed that if I give complete rest for R (don't open R window)
for 1 day and then run my code with the sleep function, then the
2008 Jul 23
8
sequential sum of a vector...
Hi R,
Let,
x=1:80
I want to sum up first 8 elements of x, then again next 8 elements of x,
then again another 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
2017 Jan 24
2
Need information to bypass the preauth in openssh
Hi,
Thanks for the replay.
This is the platform which we are using.
Distributor ID: Debian
Description: Debian GNU/Linux 8.2 (jessie)
Release: 8.2
Codename: jessie
Regards,
Vishwanath KC
+918892599848.
On Tue, Jan 24, 2017 at 11:16 AM, Darren Tucker <dtucker at zip.com.au> wrote:
> On Tue, Jan 24, 2017 at 4:17 PM, Vishwanath KC <vicchi.cit at gmail.com>
> wrote:
> [...]
> > But in my case all user info is present in remote database and
> > auth...
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
2008 May 06
2
To preserve the class "Matrix"
Hi,
Suppose
a=matrix(1:9,3,3)
> a
[,1] [,2] [,3]
[1,] 1 4 7
[2,] 2 5 8
[3,] 3 6 9
Now,
> class(a[1:2,])
[1] "matrix"
> class(a[1:3,])
[1] "matrix"
> class(a[,1:2])
[1] "matrix"
> class(a[,1:3])
[1] "matrix"
But,
> class(a[1,])
[1] "integer"
> class(a[,1])
[1]
2007 Jan 23
4
Vector to Matrix transformation
Hi R,
I have a vector V1 of unknown length, say n. I need to convert this into
a matrix C of row size=5, and accordingly the column should be updated.
I tried with:
C=as.matrix(V1,5,n/5)
But it is not working...Could somebody help me on this?
Thanks in advance...
[[alternative HTML version deleted]]
2008 Mar 25
3
Dimensions of a List
Hi R,
I have a list,
l=list(list(c(1,2),c(4,5),c(6,7)),list(c(11,22,33),c(44,55,66)))
> l
[[1]]
[[1]][[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?
2015 Oct 30
2
Re: Creating network interfaces with specific name in LXC
...pecified. I tried setting the "dev"
attribute of source tag, but it doesn't look like that is being parsed and
stored either.
Regards,
Harish
On Fri, Oct 30, 2015 at 8:32 PM, Martin Kletzander <mkletzan@redhat.com>
wrote:
> On Fri, Oct 30, 2015 at 08:16:33PM +0530, Harish Vishwanath wrote:
>
>> Hello
>>
>> I am trying to create interfaces within an LXC container with specific
>> name. I am using the following XML:
>>
>> <interface type='network' name='blah'>
>> <source network='dpbr_n_0'/>...
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.
>
>
2008 Sep 29
3
Cross-tabulation Question
Hi R,
This is a cross tabulation question. Suppose that,
> d=read.table("clipboard",header=F)
> d
V1 V2 V3
A One Apple
A One Cake
A One Cake
B One Apple
B One Apple
B One Apple
> table(d$V2,d$V3)
Apple Cake
One 4 2
But, I don't want the count to be like the above. Here, it is counting
the
2010 Apr 24
4
DICE Coefficient of similarity measure
Hi,
I wanted the DICE coefficient (similarity measure for binary variables)
to be calculated in R and found that the "igraph" package has the option
of "similarity.dice" to do this. But, 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
2015 Mar 20
1
Re: libvirt-python Segfaults
...them will return a functional
virConnect instance.
I'm not sure this segfault is worth to fix since instantiate a virConnect directly
is not an expected usage.
Hope this information will help you.
Best Regards,
Hao Liu
+86-010-62608262
----- Original Message -----
> From: "Harish Vishwanath" <harish.shastry@gmail.com>
> To: "libvirt-users" <libvirt-users@redhat.com>
> Sent: Friday, March 20, 2015 1:11:53 PM
> Subject: Re: [libvirt-users] libvirt-python Segfaults
>
> Trying again.
>
> Is there another mailer list for libvirt-python rela...
2008 Aug 07
3
Downloading Yahoo data
Hi R,
I am trying to download the data from R. I give the below command.
> library(fImport)
> yahooSeries("IBM")
trying URL
'http://chart.yahoo.com/table.csv?s=IBM&a=7&b=08&c=2007&d=7&e=07&f=2008&
g=d&x=.csv'
Error in download.file(url = url, destfile = file, method = method) :
cannot open URL
2008 Jun 04
4
sum of unknown number of matrices
Hi R,
I have a list of matrices. I need to get the sum of all the matrices 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
2007 Aug 20
3
Differentiation
Hi,
Could anyone tell me what is the command used in R to do
1. Differentiation
2. Newton Raphson method (Numerical Analysis in general...)
Are there any packages separately for this?
Thanks for your help!
BR, Shubha
[[alternative HTML version deleted]]