similar to: dimensions dropped on assignment

Displaying 20 results from an estimated 12000 matches similar to: "dimensions dropped on assignment"

2011 Nov 01
4
building a subscript programatically
Hi, On ocasion, you need to subscript an array that has an arbitrary (ie. not known in advance) number of dimensions. How do you deal with these situations? It appears that it is not possible use a list as an index, for instance this fails: > x <- array(NA, c(2,2,2)) > x[list(TRUE,TRUE,2)] Error in x[list(TRUE, TRUE, 2)] : invalid subscript type 'list' The only way I know is
2011 Feb 03
3
get caller's name
Hi, Suppose a function that checks an object: stop.if.dims <- function(x) { if (! is.null(dim(x))) { stop("cannot handle dimensional data") } } This would be used by other functions that can only work with dimensionless objects. The problem is the error message would need to include the name of the function that called stop.if.dims, so that the user knows which function got
2012 Feb 08
3
R equivalent of Python str()?
Hi, I was wondering if there's a function in R that is meant to return a string representation of an object. Basically, it's like print() but it doesn't print anything, it only returns a string. I know there's a str() function but it's not quite the same. I mean a function that returns the same string that print() would display. -- Bye, Ernest
2011 Jan 28
3
sapply puzzlement
Hi, I have this data.frame with two variables in it, > z V1 V2 1 10 8 2 NA 18 3 9 7 4 3 NA 5 NA 10 6 11 12 7 13 9 8 12 11 and a vector of means, > means <- apply(z, 2, function (col) mean(na.omit(col))) > means V1 V2 9.666667 10.714286 My intention was substracting means from z, so instictively I tried > z-means V1 V2 1 0.3333333
2011 Nov 23
1
how to stack a list of arrays
Hello, I have this list of 2-d arrays: $`0` k d [1,] 0.2011962 4.019537 [2,] 0.2020706 5.722719 [3,] 0.2029451 7.959612 $`1` k d [1,] 0.3148325 2.606903 [2,] 0.3160287 3.806665 [3,] 0.3172249 5.419222 $`2` k d [1,] 0.2332536 4.949390 [2,] 0.2342188 7.115258 [3,] 0.2351840 9.955909 which I need to transform into a data frame like this
2011 Aug 15
1
accumulative grouping of time series
HI there, Consider a data set like this: > x <- data.frame(a=1:10, b=11:20, t=c(1,1,1,2,2,2,3,3,3,3)) > x a b t 1 1 11 1 2 2 12 1 3 3 13 1 4 4 14 2 5 5 15 2 6 6 16 2 7 7 17 3 8 8 18 3 9 9 19 3 10 10 20 3 Here x$t is a vector of integers that represent a moment in time. I would like to calculate a function of a & b at each moment (t0), but using the rows
2003 Sep 16
3
Follow Me
Ernest, I hadn't thought of doing that, though having that added protection would be nice. However, what I'm trying to do it have an incoming call at my home number follow me to my cell phone for selected numbers -- Since I already have three way calling, I'd like get Asterisk to essentially three way my cell phone into the call (or my office number, etc.) I understand the
2003 Dec 08
1
Re: Asterisk-Users digest, Vol 1 #2120 - 14 msgs
In response to the postings by Andrew Kohlsmith and Ernest W. Lessenger: Andrew, I modified the exten line in extensions.conf as you suggested. Unfortunately, It still does not work... Ernest, I spent approx. 4 hours reading list archives (and anything else Google served up) on how to configure iax.conf and extensions.conf to work with Voicepulse. Then, I sent an email to voicepulse
2018 Nov 23
1
[tryExcept] New try Function
Hi Emil, First, thanks for the response. As you mentioned, a lot of times tryCatch does the work, as you can return a value. However, sometimes it is useful to assign several variables when an error occurs. You could do it with <<-, but I prefer to reduce it's usage unless completely necessary. I guess that the attachment was missed in the moderation. Here it is the function:
2003 Sep 15
2
Cisco 7905
Can anyone tell me the features of the Cisco 7905 with SIP? I mean things like number of lines, speakerphone, transfer buttons, etc. I've seen the Cisco material, but all it told me was how nifty it is and how wonderful the XML interface will be ;) Thanks, --Ernest
2011 Mar 12
1
hardware compatibility list
Arnaud Quette <aquette.dev at gmail.com> va escriure (2011-02-28 14:48): > > 2011/2/14 Ernest Sales <ersaloz at gmail.com> > > > Arjen de Korte <nut+users at de-korte.org> va escriure: > > > This is a known problem in nut-2.4.3 and should be solved in > > > nut-2.6.0. We have also dropped the megatec and > megatec_usb drivers, > > >
2003 Oct 01
1
Audiocodes gateway and asterisk
Is anyone on the list using an Audiocodes gateway with asterisk and SIP? I'm looking at that platform, but I have a couple of issues: 1) Echo cancellation. The echo that I'm hearing with an X100P is unacceptable. Does the Audiocodes do better? 2) Line signalling. I'm using Kewlstart with the X100P, but it looks like the audiocodes uses loopstart only. How does this work with
2003 Oct 21
1
SNOM 200 beta build + MOH
I'm using the SNOM 200 latest SIP beta (so that I can have the GSM codec, etc). Everything seems to be working fine, but the music on hold doesn't play when I use the HOLD button on the snom. Any suggestions? Thanks, --Ernest
2007 Jan 04
3
hidups can't find device
Hello, I try to install my APC Back-UPS RS 800 on my debian system (Etch): Linux aigner 2.6.18-3-686 #1 SMP Mon Dec 4 16:41:14 UTC 2006 i686 GNU/Linux When i try to start the driver an i use hidups i get this failure massage: aigner:/lib/nut# upsdrvctl start Network UPS Tools - UPS driver controller 2.0.4 Network UPS Tools: HID UPS driver 0.13 (2.0.4) Warning: This is an experimental driver.
2007 Apr 26
2
path autocompletion in 2.5.0
Hi, R 2.5.0 isn't auto-completing paths properly as it used to. E.g. suppose I have: > dir("CEL/choe") [1] "chipC-rep1.CEL" "chipC-rep2.CEL" "chipC-rep3.CEL" "chipS-rep1.CEL" [5] "chipS-rep2.CEL" "chipS-rep3.CEL" Now if I do: ReadAffy("CEL/choe/ch<tab> # => ReadAffy("CEL/choe/chip
2003 Oct 31
1
Echo on remote end when using NuFone
I'm testing out my SNOM 200 phone by trying to call out through NuFone. When I do so, I don't hear an echo at all (in fact I can't hear myself through the phone) but the callee can hear an echo when she speaks. NuFone tells me their network is totally digital and so can't be involved in an echo. This is all well and good, but the echo is still there. Any suggestions? As a
2008 Jul 30
2
R, Macports and C++ streams
Dear all, R on Macports relies on GCC 4.3 to build packages. I find that packages with shared objects that use C++ streams crash R if they're compiled using Macports' gcc43, but work fine if compiled in exactly the same way using Apple-supplied GCC 4.2. Has anyone here had the same issue/know what is causing this problem? Thanks, Ernest
2003 Aug 21
4
Asterisk + SNOM + Pound and star keys
How are people handling call transfer with SNOM phones? We are okay with the "#" transfer workaround, but I worry about how that will work with other systems that expect me to be able to "press # to return to the previous menu" or similar. Thanks, --Ernest
2011 Feb 07
3
hardware compatibility list
I would like to report a working device to add to the hardware compatibility list, but cannot find a way on the website. Would this list be OK for that purpose? Best regards, Ernest
2010 Feb 03
1
ctrl-C aborts R when compiling package code with ICC+openMP
Hi all, I have some C++ code that I call from my package. In my main C++ loop, I check for user interrupts and return to the R shell after ensuring I've deallocated memory appropriately. This works fine when the code is compiled with gcc+openmp and with icc without openmp, but when I compile with icc and use openmp, the entire R session is immediately terminated when I hit ctrl-C. This