search for: replcing

Displaying 3 results from an estimated 3 matches for "replcing".

Did you mean: replacing
2004 Mar 02
3
using object reference
...39;) <- 'some new text' } So that when I call f(x) attr(x,'a') gives 'some new text' I went by the example below g <- function(z) eval(eval(substitute(expression(z[1] <<- z[1]+1)))) a <- 1:5 g(a) # increments first element of a by 1 a # c(2,2,3,4,5) replcing the innermost bracket with attr(z,'a') <- 'some new text' but the the after returning from the function the attribute of x does not get changed. Could anybody point out how I could achieve this? Do I need to use the R.oo package or can this be done without external packages? Th...
2003 Feb 17
4
inserting elements in a list
I've searched the doc for insert and could not find the way to do the following, hope someone can help: Let's say we have a vector: > a [1] "1" "2" "3" "5" "6" "3" and we want to insert a "7" after any given "3", i.e., we want vector a to become: [1] "1" "2" "3"
2006 Mar 20
5
Numbered Voicemails even with delete option!
Hello, Thought people might be interested in this. I want my voicemails emailed to a person and not stored on my asterisk server. However, I want them to have a sequential number. I found that if I set the option delete=1 in my voicemail.conf file for the mailbox, then the numbering would keep being restarted. I wrote this shell script to fool Asterisk into numbering my voicemails sequentially