similar to: Creating this vector, any suggetions?

Displaying 20 results from an estimated 2000 matches similar to: "Creating this vector, any suggetions?"

2009 Jun 12
0
R: Creating this vector, any suggetions?
try this > a<-c(1, 6, 8, 9) > 1*(1:10 %in% a) [1] 1 0 0 0 0 1 0 1 1 0 Stefano -----Messaggio originale----- Da: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]Per conto di njhuang86 Inviato: Friday, June 12, 2009 4:45 PM A: r-help at r-project.org Oggetto: [R] Creating this vector, any suggetions? Suppose I have the first vector: c(1, 6, 8, 9) I will
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]]
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
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
2009 Aug 29
3
Sequence generation
Hey guys, I was wondering how to create this sequence: 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3... with the '1, 2, 3' repeated over 10 times. Also, is there a simple method to generate 1, 1, 1, 2, 2, 2, 3, 3, 3? Anyways, any help with be greatly appreciated! -- View this message in context: http://www.nabble.com/Sequence-generation-tp25205593p25205593.html Sent from the R help mailing list
2009 Jun 11
2
need help with strsplit function
Hi, if I have this string: "a.b.c.d" and I use this function: unlist(strsplit("a.b.c.d", "\\.")), I get this as my output: "a", "b", "c", and "d". Is there a way to just split on the first period so I obtain only two pieces like: "a" and "b.c.d"? Anyways, thanks in advance! -- View this message in context:
2009 Jun 23
2
Vector of string
Hi all. Suppose I have a vector of strings ie: ["12384", "TYU123123", "AVC3939", "hhr1919", "TYU0029"] Is there an efficient method that would allow me to return a vector of the position of strings that start with "TYU"? So essentially, I would like to get back in return [2, 5]. Anyways, any help with be greatly appreciated! -- View
2009 Jul 07
1
find duplicates... need help!
Hi all, Suppose I have x = c('a', 't', 'c', 'y', 'g') and also y = c('a', 'a', 'g', 's') If I do something like x%in%y, I obtain a vector like this: [TRUE, FALSE, FALSE, FALSE, TRUE] which I can easily turn into this: [1, 0, 0, 0, 1]. I was wondering is there anyway for me to get a vector back in return in the form of: [2, 0,
2009 Aug 30
1
Re moving the numbers of the X/Y axis
Hi all, Suppose I have some data that I plot using the histogram command - ie. hist(x) Is there an option that will allow me to remove the numbers that appear along the X and Y axis as I'm just interested in the overall distribution of the data and not the actual values? Anyways, any help is greatly appreciated! -- View this message in context:
2009 Jun 18
2
Any method to speed up this problem?
Hi all, Suppose I have a vector like this: [1] "STAT1" "STAT1" "STAT1" "STAT1" "GAPDH" "GAPDH" "GAPDH" "ACTB" "ACTB" [10] "ACTB" "DDR1" "RFC2" "HSPA6" "PAX8" "GUCA1A" "UBE1L" "THRA" "PTPN21" [19]
2009 Jun 16
2
Question regarding dataframes, matrix, frame, etc...
Hi all, As of now, I have a 15x8 matrix (name is "asdf"). The first seven columns contain numbers while the last column contains a string. The class of each column is "character". When I use the plot function to display a scatter plot between any of the two columns, ie. plot(asdf[, 1], asdf[, 2]) everything works fine. However, if I want to use the command "pairs" to
2009 Sep 25
1
Function question
Hi. I was wondering how I can write a function that generates the outcome values for a user specified equation. For example, function(x^2, 4) will return back 16 and function(x^3 - 10, 2) will give back -2... I've been playing around with various lines of code but somehow, I just cannot get R to recognize the equation that I pass to it is just a random variable and doesn't need to be
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
2002 Sep 24
2
Can't access samba from Windows
Dear all, using LinNeighborhood I can view and access all share folders of windows PC. From Network Neighborhood windows Ican see Samba but can't access. Error message is "Network Path was not found". I try using net view \\samba get same error message.
2017 Nov 10
0
Calculating frequencies of multiple values in 200 colomns
Hi, To clarify the default behavior that Boris is referencing below, note the definition of the 'bin' argument to the tabulate() function: bin: a numeric vector ***(of positive integers)***, or a factor. Long vectors are supported. I added the asterisks for emphasis. This is also noted in the examples used for the function in ?tabulate at the bottom of the help page. The second
2017 Nov 10
2
Calculating frequencies of multiple values in 200 colomns
|> x <- sample(0:2, 10, replace = TRUE) |> x [1] 1 0 2 1 0 2 2 0 2 1 |> tabulate(x) [1] 3 4 |> table(x) x 0 1 2 3 3 4 B. > On Nov 10, 2017, at 4:32 AM, Allaisone 1 <allaisone1 at hotmail.com> wrote: > > > > Thank you for your effort Bert.., > > > I knew what is the problem now, the values (1,2,3) were only an example. The values I have are
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
1999 Apr 03
2
tabulate causes segmentation fault (PR#156)
Peter, I thought this one was noted and fixed, but I could be wrong. R : Copyright 1999, The R Development Core Team Version 0.63.3 (March 6, 1999) .... [Previously saved workspace restored] > tabulate(1:10, 5) Process R:1 segmentation fault at Sat Apr 3 17:48:34 1999 -- (The following contact details become official on 1 May 1999, but the email