Displaying 20 results from an estimated 200 matches similar to: "R: Creating this vector, any suggetions?"
2009 Jun 26
0
R: Deleting repeated rows
?unique
as an example
> mat<-matrix(c(1,2,3,1,1,2,1,2,3,4,7,5), ncol=3, byrow=T)
> mat #rows 1 and 3 are identical
[,1] [,2] [,3]
[1,] 1 2 3
[2,] 1 1 2
[3,] 1 2 3
[4,] 4 7 5
> unique(mat)
[,1] [,2] [,3]
[1,] 1 2 3
[2,] 1 1 2
[3,] 4 7 5
Stefano
-----Messaggio originale-----
Da: r-help-bounces at r-project.org
2009 Sep 23
0
R: Function to check if a vector contains a given value?
?any
any(x==2)
Stefano
-----Messaggio originale-----
Da: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org]Per conto di Dimitri Liakhovitski
Inviato: mercoled? 23 settembre 2009 17.38
A: R-Help List
Oggetto: [R] Function to check if a vector contains a given value?
Dear R'rs,
is there a function that checks if a given vector contains a certain value.
E.g.,
2010 Aug 07
2
R: Confidence Intervals for logistic regression
a closer look to the help on predict.glm will reveal that the function
accepts a 'type' argument.
In you case 'type = response' will give you the results in probabilities
(that it seems to be what you are looking for).
There also is an example on use of the 'type' argument at the end of the
page.
Stefano
-----Messaggio originale-----
Da: r-help-bounces at r-project.org
2009 Jun 12
2
Creating this vector, any suggetions?
Suppose I have the first vector: c(1, 6, 8, 9)
I will like to create a second vector of size 10 composed of 0 and 1's. The
second vector will be composed of four 1's and six 0's. The position of the
1's will be specificed by the first vector. So essentially, I want a second
vector in the form:
c(1, 0, 0, 0, 0, 1, 0, 1, 1, 0)
Any help is greatly appreciated!
--
View this message
2004 Dec 14
5
Digium Hardware in Canada
I am looking for a supplier of Digium hardware in Canada. Any suggetions?
Thanks,
Adi
2008 Apr 12
4
HOW TO AVOID LOOPS
> Looking for a simple, effective a minimum execution time solution.
>
> For a vector as:
>
> c(0,0,1,0,1,1,1,0,0,1,1,0,1,0,1,1,1,1,1,1)
>
To transform it to the following vector without using any loops:
> (0,0,1,0,1,2,3,0,0,1,2,0,1,0,1,2,3,4,5,6)
>
Appreciate any suggetions.
[[alternative HTML version deleted]]
2012 Oct 08
1
migrating from Centos 5.8 -> 6.3 LDAP Client Config
Hi,
I run a Centos 5.8 samba server which uses a separate LDAP centos 6.3
server for user and group authentication.
Now we migrate to a new centos 6.3 samba server and I'd like to know how
do 'ldapify' that new server the best way.
I'm a bit confused if I can use the same nss setup like on the current
old server or how and what to configure to go with SSSD?
May be someone can
2005 Dec 31
1
OpenLDAP and Samba - password expiration.
Hi all,
I have a Samba PDC with an LDAP backend. Yesterday, I tried to add a new
machine to the network and received the following message:
The following error occurred attempting to join the domain:
The password of this user has expired
Not a problem I thought, and then ran
smbldap-usermod -e "2010-12-30 00:00:00" root
to extend the password date. If I now try to connect a
2011 Sep 15
3
puppet and kerberos keytabs
Hi,
we use kerberos with keytabs on our clients. We do *not* trust root on
the clients! One client should never have access to any other client''s
keytab. This is my proposed solution to get the keytabs to the clients,
any comments welcome!
1. Use file to get /root/.ssh/authorized_keys
2. Use exported resource to let the client "notify" the server that it
wants a keytab
3. On
2006 Feb 26
0
Routing based on host domain
I''m having some problems getting routes to work based on the incoming
host domain.
Imagine the top level domain for my app is foo.com. If the user comes
in with a request of:
* http://foo.com
* http://www.foo.com
I would like to route them to the public home page
If they come in with anything else I want to route them to their account
home page, i.e.:
* http://apple.foo.com
*
2003 Feb 09
0
to modify a matrix : Summary
I truly thank for evrybody to give me many very
good answers and suggestions.
I like to summarize the replies with their results
when excuted on R and with my comments.
My question is
> x <- matrix(1:10.,5)
> x
[,1] [,2]
[1,] 1 6
[2,] 2 7
[3,] 3 8
[4,] 4 9
[5,] 5 10
there is a matrix. On condition x[? ,1]=3, how to modify the
appropriate location to be
2005 Sep 29
0
strange problem with directories acls
Hi all,
I try to use rsync with acl support. Files with acls were transfered but the acls of direcotries don`t! Is it not possible to transfer acls of diretories?
Any suggetions?
info: rsync-2.6.2-8 (rpm from sles9)
cheers
Stefan
2005 Jun 25
0
Everyone is busy/congested at this time
Hi all,
yesterday afternoon, I called through my provider (teliax). but from the
evening, I get this error. (below). then I checked in My Account page ans
support page in teliax. and I saw that they have given new setting (to
another proxy sever). I followed new settings. my Asterisk server is
connecting to the teliax. but still I con not make called. it shows this
error.
If somebody had this
2006 Dec 18
0
Wait command
Hi
I've got a script like this
exten =>
s,1,SetVar(CALLFILENAME=/var/www/recordings/${TIMESTAMP:0:8:7}/${UNIQUEID})
exten => s,2,AGI(recordstart.py,${ARG1},${CALLERIDNUM},${CALLFILENAME},Ind)
exten => s,3,DIAL(ZAP/g2/${ARG1},70)
exten =>
s,4,AGI(logerror.py,${ARG1},${CALLERIDNUM},${CHANNEL},${DIALSTATUS},${DATETIME},
${CAUSECODE})
exten => s,5,hangup
exten =>
1998 Oct 19
0
SAMBA digest 1847
>Date: Sat, 17 Oct 1998 10:36:33 -0500
>From: afan@www.jeonet.com (Afan Ottenheimer)
>To: samba@samba.anu.edu.au
>Subject: How can I "Map Network Drive" using port 82?
>Message-ID: <3.0.5.32.19981017103633.008eed10@anansi.jeonet.com>
>
>I've been trying to get a Win 95 and/or Win 98 machine to connect to
>a SAMBA server running on a different port than
2000 Mar 31
0
NT network neighbourhood
Hi,
I am a system administrator but new to Samba. We bought new PCs with NT
service pack 4 and I am trying to configure Samba(2.0.x) so that users can
access their UNIX(Solaris/IRIX) files from NT. I have two kinds of
problems.
Things seems to be perfect when I try this with Win98 but with NT, I can't
see the UNIX server from Network Neighbourhood. But "net view" shows all
the
2004 Jan 07
1
Unexpected ISDN hangup on outbound call
We have setup an asterisk box to let everybody call into the university
internal network, but I get unexpected hangups when doing an outbound call
from SIP to the ISDN interface, and it happens from 20 seconds to some minutes into the
call.
----------the dial and the problem-----------
-- Executing Dial("SIP/57966-a19d", "Modem/g1:96121||rt|") in new
stack
--
2008 Apr 01
1
set the lower bound of normal distribution to 0 ?
Tom Cohen <tom.cohen78@yahoo.se> skrev: Thanks Prof Brian for your suggestion.
I should know that for right-skewed data,
one should generate the samples from a lognormal.
My problem is that x and y are two instruments that were thought to
be measured the same thing but somehow show a wide confidence interval
of the difference between the two intruments.This may be true that
these
2004 Aug 09
0
Samba 2.2.7 terrible slow with Windows XP SP1
I have Samba 2.2.7 installed in a FreeBSD 4.7 server acting as a PDC.
Every folder listing in our main shared folders (drive H: mapped during
login script) is terrible slow.
Initially I checked my server disks, partitions and virtual memory
status and verified that everything is okay.
My SMB.CONF is:
; ======= BEGIN SMB.CONF ===========================
[global]
netbios name =
2007 Oct 25
12
MGE Ellipse 800 shutdown problems
Thanks for suggetions and keep me indumb about making of Debian packages:D
I will try this package "nut_2.2.0-2_i386.deb"
One little questionm, shoud I use newmge-shut driver? - my ups is quite
old - more then 3 years, connected through serial cable.
>> PS: Arjen de Korte suspected something was wrong around my "heater" load,
>> for now I have used two 150W lamps