similar to: How to make this script ask again

Displaying 20 results from an estimated 40000 matches similar to: "How to make this script ask again"

2011 Jan 06
2
Help with IF operator
Hi, I am with a problem on how to do a comparison of values. My script is as follows: repeat{ cat("How many teams to use? (to end write 0) ") nro<-scan(n=1) if(nro==0)break cat("write the", nro, "teams names \n") teams<-readLines(n=nro) if (teams[1]==teams[2)next else print(teams) } On this example I only compare teams 1 name with teams 2 name, and if they
2011 Jan 06
4
Creating a Matrix from a vector with some conditions
Hi Suppose we have an object with strings: A<-c("a","b","c","d") Now I do: B<-matrix(A,4,4, byrow=F) and I get a a a a b b b b c c c c d d d d But what I really want is: a b c d b c d a c d a b d a b c How can I do this? thank you A. Dias -- View this message in context:
2011 Jan 04
5
Help with "For" instruction
Hi, I am having a problem in doing something similar to this example: Suppose I have this vector a, and from it I wish to create 5 other vector each one with less one value than what object a has So I have "a" a<-c(1,2,3,4,5) and I want a1 that shoud have (2,3,4,5) a2 that should have (1,3,4,5) a3 that should have (1,2,4,5) a4 that should have (1,2,3,5) a5 that should have
2011 Feb 01
3
sum the values in a vector as a complete number
Hi I am trying to create a function that is able to calculate this sum: a<-c(2,3,5) b<-(8,7) with "a" meaning 235 and "b" 87. So the result of this sum would be 235 + 87 = 322. I've searched a function like strsplit but that worked for integers and in reverse - not spliting but combining. Can you give me a hand on this please? thanks AD -- View this message in
2011 Jan 18
4
Relative frequency on a character vector
Hi, I have this character vector: A<-c("Tell me how many different letter this vector has?") Is there a way with R that it can let me know how many different letters I have on this vector? If I use nchar(A) que gives me the number 50. With this function he is counting all the letters present and also spaces between the words. Can we also not count the spaces between words? Then
2011 Feb 02
2
matrix and a function - apply function
Hi I have this function and this matrix: function(x,y) x+y/x m<-matrix(c(1,2,4,2,10,8),3,2) > m [,1] [,2] [1,] 1 2 [2,] 2 10 [3,] 4 8 each row represent a point (x,y) in a chart and I want via my fucntion to calculate the image in order to get this results: for point (1,2) I would get 1+2/1 = 3 for point (2,10) I would get 2+10/2 = 7 for point (4,8) I would get
2008 Jan 26
1
Loosing IAX/SIP user's registration with asterisk as no-root
Hello list, hope some one could help me find the answer. Asterisk 1.4.16.2 installd as no-root user The main issue is that every now and then, cd * box seems to loose the user's registrations, there is nothing in the console, absolutely no messages, only when another friend trys to dial an extension I can see this on messages logs [Jan 26 10:35:46] WARNING[23015] app_dial.c: Unable to
2010 Mar 26
1
image() function
Hello. I would like to know how to set the image() function so that it assigns colors relative to an absolute scale, as opposed to relative to the values present in a particular call to image(). For example: m <- matrix(1:18,3,6) par(mfrow = c(2,1)) image(1:6, 1:3, t(m), col = rainbow(20)) image(1:6, 1:3, t(m+9), col = rainbow(20)) Then the two images are identical. But the right
2010 Dec 31
1
Silhouette function problem
Hi, I am using code below to get a plot that will show me on the X axis the number of clusters and on the Y axis the cluster average widths. However I am getting this error: Error in summary(silhouette(cutree(d, x), dist(iris[, -5])))$si.summary : $ operator is invalid for atomic vectors the code I am using is: avgs<-sapply(1:20,function(x) summary(silhouette(cutree(d,x),
2010 Jan 28
2
How to execute an arbitrary script when a puppetclient ask for a manifest?
Hi, I would like to use Puppet in the cloud (think gogrid) to configure stem images. Virtual machines are created/destroyed on the fly under control of a load monitor. For this reason we cannot sign manually new Puppet clients, instead, we must use Puppet''s autosign feature. At the moment, Puppet just permits to filter client manifest requests with some regex over the hostname of the
2015 Mar 10
1
When I want to open Samba share in Windows OS, It ask me "Username" and "Password" and repeat it. Very Emergency.
Hello all. I can't apply permission to my Samba Share via Windows Active directory. My Samba share is : [Demo] path = /srv/samba/demo/ read only = no valid users = +JASONDOMAINI\linux +JASONDOMAINI\local admins writable = yes #inherrit owner = yes #inherit permissions = yes force group = JASONDOMAINI\linux I created a group in Windows Active Directory with Linux name and add my
2010 Jul 06
1
multiple time series plot with dual 'y' axes
Hello. I would like to know how to generate dual 'y' axes on a multiple time series plot. I am using ts.plot() to get the multiple time series plot, but I would like a second vertical axis on the right to include another time series on a different scale. Thanks for any help. Cheers. Jorge
2011 Jan 28
1
Is this the best place to ask puppet on AIX questions?
Hello. First post. I have been messing around with puppet on AIX a bit recently and have all kinds of questions about how puppet integrates with AIX, specifically regarding how the "service" and "package" resources work with AIX''s native commands (installp/lssrc/etc). Some searches of this group didn''t yield much info on AIX. Is there a better forum out
2000 May 01
1
Is this the right list to ask samba-tng-alpha-2.5 questions?
It seems that nothing else has everything that I need working, so I'm diving in to alpha territory. Chris -- Chris Garrigues virCIO http://www.DeepEddy.Com/~cwg/ http://www.virCIO.Com +1 512 432 4046 +1 512 374 0500 4314 Avenue C O- Austin, TX 78751-3709 My email address is an experiment in SPAM elimination. For
2011 Mar 03
1
[ASK] can't make call
hi, i'm newbie in asterisk n this mailing list i just trying to make this asterisk server for call,n i can't make it.. my asterisk server just respons with REGISTER n SUBSCRIBE method i,m using asterisk 1.4.17 in ubuntu 8.04 with lan connection and just 2 client there.is there a problem with compatible on the series of the ubuntu and the asterisk??? *i'm sorry about my english..:D
2009 Nov 16
1
how can one break or stop or return from a script?
Hi, I am using a script to initialize variables in the global workspace. Based on some condition, I would like to stop evaluation of a script sourced on the command-line, without issuing an error. My current solution is the following hack that uses a repeat { } statement ----------- init.R ----------- #hack to enable setting of breakpoint repeat { ... if (condition) { break; } ... #
2012 Aug 10
3
Trouble with Spatial Data Example Script
Dear All, I need to do something relatively simple: generate a map of Europe and paint the various states with different colors (only 3-4 are needed) according to a rule. I would like to keep it as simple as possible and the script resorting to the sp package that I found at http://bit.ly/Oc71ub is exactly what I am looking for (I need to repeat the exercise with Europe instead of
2018 Jan 15
1
Ask for suggestions about optimizing opus on STM32F407
Hello Thomas and Amit, Thanks for your notice and the detailed decode performance report. I describe the details of my encode/decode test on STM32F407ZG. A. opus version: latest 1.2.1 (TI: opus 1.1.2) B. KEIL 5.23 (TI: ARM compiler tool chain 5.2.7) C. setup the encoder as the below (fs is the sampling frequency) enc = opus_encoder_create(fs, chans, OPUS_APPLICATION_AUDIO, &opus_err);
2004 Aug 06
3
ices 'script' playlist information?
Ok, I've got one more question. I've got my stream largly working... I don't have any of the external, web-based stuff necessary to build lists, ETC... but the streams themselves are working quite well. My question is, using the script playlist option.. how can I tell ices that the playlist is over? I know I can just keep sending the same result over and over, but that seems rather
2015 Jul 29
2
update.packages(checkBuilt=TRUE, ask=FALSE): possible bug
On 7/19/2015 3:50 AM, peter dalgaard wrote: >> For some, but not allI repositories I get the error message below: >> >Error in install.packages(update[instlib == l, "Package"], l, contriburl = >> >contriburl, : >> > specifying 'contriburl' or 'available' requires a single type, not type = >> >"both" >> >