similar to: Bind together two vectors of different length...

Displaying 20 results from an estimated 800 matches similar to: "Bind together two vectors of different length..."

2007 Aug 31
2
memory.size help
I keep getting the 'memory.size' error message when I run a program I have been writing. It always it cannot allocate a vector of a certain size. I believe the error comes in the code fragement below where I have multiple arrays that could be taking up space. Does anyone know a good way around this? w1 <- outer(xk$xk1, data[,x1], function(y,z) abs(z-y)) w2 <- outer(xk$xk2,
2008 Mar 06
2
Clustering large data matrix
Hello, I have a large data matrix (68x13112), each row corresponding to one observation (patients) and each column corresponding to the variables (points within an NMR spectrum). I would like to carry out some kind of clustering on these data to see how many clusters are there. I have tried the function clara() from the package cluster. If I use the matrix as is, I can perform the clara
2007 Oct 16
1
data structure for plsr
All, I am working with NIR spectral data and it was great to find that the example in ?plsr also used spectral data. Unfortunately, I am having difficulty figuring out how the "yarn" dataset is structured to allow for the plsr model to read: library(pls) data(yard) yarn.oscorespls <- mvr(density ~ NIR, 6, data = yarn, validation = "CV", method = "oscorespls")
2007 Mar 23
5
Get "home" directory and simple I/O
Is there any generic function that gets the "home" directory? This should return /home/<user> in Linux and x:/Documents and Settings/<user> (or whatever) in Windows XP. Another (unrelated) question: what is the _simplest_ way to read and write R variables to/from files such that they are stored in a human-readable but R-like form? For example, if (say), x is a vector
2006 Mar 30
1
Question about for loop?
Hello useRs, I can't figure out how can I store a data frame of values of X and D from this loop: Z <- c(1:10) for (i in 1:(length(Z)-2)) {D <- x[1:(2+i)]; X <- paste("x",sep="",i) print (X) print (D) } Thank You, Andris Jankevics
2006 May 26
1
Indexing vector with repeated values
Hi all, I have a vector which contains many repeated values. >Z <- c(1,2,3,4,5,1,2,3,4,5,1,2,3,5,5,2,3,4,5) I need to know how many times each number in this vecetor is repeated. I can use a command like this: > table (cut(Z,seq(1,5,1))) (1,2] (2,3] (3,4] (4,5] 4 4 3 5 But how can I find a break points for vector with random values and random number sequence
2007 Apr 16
1
Greek symbols in xtable rows
Dear R-helpers, I am using xtable package to prepare a Latex code of some R tables. Is this possible to have a greek symbols in xtable cells? How can I get for example a string of : $\Delta$ > "$\Delta$" [1] "$Delta$" And string: > "$\\Delta$" [1] "$\\Delta$" Gives a latex aoutput like: \$$\backslash$Delta\$ Thank You in advance Andris
2014 Oct 01
2
PBX hacked: why hundred of calls to the same number ?
Hi, Someone reported me that from a PBX on which someone gained fraudulent access, he could observe hundreds of calls to the same destination number. For curiosity's sake, I'm wondering why would this happen (dialing the same number over and over) ? Some special numbers generate here and there revenues for callees (and not for callers). Beside sharing interests with the callee that get
2007 Sep 12
2
Callback for unanswered transfers...
Hi, Does anybody know if there is a way for a call goes back to transferer if unanswered ? Thanks Luis A P Barbosa -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070912/1e356013/attachment.htm
2010 Apr 08
2
IVR menu sound processing for AMR and GSM + live test available
Hi! We are in process of setting up an audio guide that will cover notable places of our capital Riga, Latvia. The target audience are tourists that dials a free phone number from a mobile handset to listen to a 3 minute introduction to historic place. All audio, 10+ languages are recorder in studio at 44KHz. The audio is stored on server in A-law 8KHz because we'll be pushing it through E1
2007 Sep 11
3
Prevent multiple sip registrations
Hi all, Is there anyway i can prevent multiple sip registrations from different IPs using single username in asterisk. Does asterisk provide any aid in this respect? As far as my knowledge is concerned i dont think there is any support for this in asterisk, so i think i'll have to makeup a script which sniffs sip packets coming for asterisk and detect for multiple register requests coming from
2007 Sep 14
2
Prompt for extension with standard dial-tone.
Hi, What i want to do - is to give ability for answered call to hear regular dial tone and be able to enter phone number - that i would dial later. I tried to look at WaitExten and PlayTones, but they seem to not work together - WaitExten doesn't interrupt going on PlayTones. Is there any way how i could do that - so that it looks really natural? It would be silly to create long-long-long
2007 Feb 19
3
Start and Restart R over SSH
Hi, I have some big calculations in R to be done. Since I can use R on a server with ssh, i was wondering if I can reopen a R Shell after exiting ssh. I don't want to use the batch mode and nohup doesn't work. I want to use something like ssh user at server R ---do something in R and start calculation --- close ssh but let R remain on the server, doing the calculation ssh user at
2019 Dec 01
2
Mail-crypt won't encrypt emails
Hi, (Reposting as my previous post got zero replies.) We're running Dovecot 2.2.36 and we need to set up the mail-crypt plugin to encrypt all incoming and outgoing emails. Outgoing emails seem to get encrypted fine but the incoming ones don't. We tried everything including this config: mail_attribute_dict = file:%h/Maildir/dovecot-attributes mail_plugins = $mail_plugins mail_crypt
2011 Dec 12
3
For loop indicies
I would like to run a for loop with an index going from 0 to 499 but the following seems to miss out the first value: C <- 499 for (i in 0:C) The alternative is: C <- 500 for (i in 1:C) { #Then every time I use i, I replace it with i-1 } Is this a good way to do it or is tere a better way? Thank you, ThomasThis message and any attachment are intended solely for the addressee and may
2006 Jul 31
4
question about dataframe ("sensory") in PLS package
Dear all, I am trying to my dataframe for the PLS analysis using the PLS package. However I have some trouble generating the correct dataframe. The main problem is how to use one name to represent several columns in the dataframe. The example dataframe in PLS package is called "sensory". I cannot directly read the data file since it's a binary file. If I use
2007 Aug 29
2
Best text-to-speech
Hi! I need to use text to speech, what is the best application? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070829/bc69eb9d/attachment.htm
2007 Aug 28
1
deadagi and billsec or answeredtime
Hello, I want to create php rate script and I'm using Deadagi. But I allways get billsec 0 , or nothing. Can you help me to solve this problem... My extension.conf: exten => _123,1,DeadAgi(rate.php) exten => _123,2,hangup And my simple test php script rate.php #!/usr/local/bin/php -q <?php include_once (dirname(__FILE__)."/phpagi.php"); $AGI = new AGI();
2007 Aug 30
1
dialed peer number
I am trying to retrieve the "dialed peer number" but it seems that ${DIALEDPEERNUMBER} is "broken". Also, I know that I could extract the dialed number from the ${CHANNEL} variable but this only works for SIP and maybe IAX (untested). However, it doesn't work for ZAP. All I get when using ZAP is something like "Zap/1-1" (for SIP I would get
2007 Aug 22
1
How do I configure asterisk?
Hi: Which one is better and easier for configure asterisk,directly or by GUI ? I'd appreciate any idea. Regards. --------------------------------- Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. -------------- next part -------------- An HTML attachment was scrubbed... URL: