similar to: How to get R to ignore certain values when analyzing a column in a data table ?

Displaying 20 results from an estimated 900 matches similar to: "How to get R to ignore certain values when analyzing a column in a data table ?"

2010 Feb 09
3
subset in a matrix
Hi, I have a matrix of data values like the example bellow. I would like to extract a subset of the matrix for the values where the first column is negative. I am using the subset function. However, I am getting an error message that the conditional variable doe snot exist. For some reason, the subset operation only works if I transform the matrix to a data set using as.data.set(). The help
2009 Jun 22
2
Help on creating a sequence of vectors
I want to create a number of vectors like : vec1 <- rnorm(1) vec2 <- rnorm(2) vec3 <- rnorm(3) and so on........... Here I tried following : for (i in 1:10) paste("vec", i, sep="") <- rnorm(i) However obviously that is not working. Here vectors I need to be seperated i.e I do not want to create a "list". How to modify above code? -- View this
2011 Feb 02
0
How column names/row names are preserved in matrix calculation?
Can somebody tell me that, if I do some arithmetic calculation over 2 matrices then how the column names and row names are preserved? It seems that, for multiplication, column names and row names of the 2nd matrix are preserved and for additional, there seems not having any explicit rule: > set.seed(1) > dat1 <- matrix(rnorm(25), 5); colnames(dat1) = rownames(dat1) =
2009 Sep 14
2
Is there an equivalent of "echo"
Sorry I'm having one of those moments where I can't find the answer but I bet its obvious... I'm outputting my results to a file using sink() Is there a command simillar to php's echo command that would allow me to add some text to that file ie: dataFr$a = 1:10 dataFr$b = 2*1:10 sink ("filepath/filename.txt", split=T) #Show number of entries in vector a table
2009 Jul 02
4
Name of data.frame as a text string?
I've passed a data.frame as an input into a function which does some plotting on a 4x4 matrix of certain parameters within in the data.frame. I'd like to add a small header on top of each plot with the name of the data.frame so that it's clear as I compare these 16 things where each on came from. So far I haven't found the right way to get the name of the data.frame as a string
2009 May 28
2
max.col weirdness
Hi, I think there's some rounding issue with returning the max column. (running 2.9.0 on an Apple, but my buddy found it on his PC) > x <- matrix(c(1234.568,1234.569,1234.567),1) > max.col(x) [1] 2 > x <- matrix(c(12345.568,12345.569,12345.567),1) > max.col(x) [1] 3 > x <- matrix(c(112345.568,112345.569,112345.567),1) > max.col(x) [1] 3 > max.col(-x) [1]
2003 Nov 17
4
Transfer directly to voicemail?
Does anyone have a setup (or am I missing a simple thing here) to transfer a caller directly to someone voicemail? Example: I receive a call, the caller wants to speak with x, who I know is not in the office. Other than transferring them to x's extension, which rings to timeout and then picks up voicemail, can I transfer right into voicemail? I am using all SIP phones in my setup (7960s).
2004 Jul 15
17
VoicePulse changes
I'm a bit displeased at the way this happened. I received an email from VoicePulse. Here's some excerpts: ------------------ >We're sending you this important update so you can take advantage of improvements we've >been making to your VoicePulse Connect! service. >We've been working hard on improving the audio quality and reliability of your Connect! >service,
2003 Sep 08
9
Maximum number of X100P cards in the same * box
Hi all, Which is the practical (from your experience) limit of the number of X100P cards installed in a single Asterisk box? Asterisk can work reliable with 6 X100P cards in the same box? Anyone know when the 4 ports FXO Digium card will be available on the market? Many thanks, Dan P.S. Please do not aswer with RTFG ...tried before without success...:-))
1998 Oct 18
2
Changing "Shutdown" to "Log off" in Win95?
The Samba set up we're using to support 25 or so Win 95 clients is working well, but my users are usually not up to complicated tasks. Has anyone found a way to get logging out down to a single action (like, Start/Logout), instead of Start/Shutdown/Close all programs and log in as another user/Yes? I'm tired of explaining this already! :) Daryl Daryl Biberdorf darylb@superserve.com
2008 Jun 18
8
Expanding SSHKnock shell script, a few questions please
Hi all, Another Debian Etch fan here, running shorewall (shell) 3.2.6-2 (and Yes I''m going to upgrade when Lenny goes stable). I already have the SSHKnock working, as documented on the website: http://www.shorewall.net/PortKnocking.html Thanks, works great! In addition to the knock to open 22, I want to also ADD a redirect, from 2222 to 22 on an internal box. So, when I knock on 1600
2006 May 31
2
No communication with UPS
Hi all, I have a MGE Ellipse 600 UPS connected to com1 on a PC running FreeBSD 4.11 with nut-2.0.2_1 installed. I have everything working and operational. BUT. on rare occasions I reboot my machine and when it comes up I get the following error: Network UPS Tools - UPS driver controller 2.0.2 Network UPS Tools - MGE UPS SYSTEMS/SHUT driver 0.64 (2.0.2) No communication with UPS Driver failed to
2003 Dec 15
1
Can't see Samba server from Windows
I cannot see my Linux box running Samba to print or access files. The output of "smbclient -U% -L localhost" seems to indicate I should see one share and one printer: (the ...0.250 ip address is for my DSL connection, the ...0.2 is for my LAN) added interface ip=192.168.0.250 bcast=192.168.0.255 nmask=255.255.255.0 added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0
2003 Apr 30
2
__stderrp sym unresolved in 4.8 stable
When I try to start X, I get the following. Any help here? I track stable via cvsup, sup'd on 4/29/03, and cvs up the system having problems, which is running FreeBSD 4.8-STABLE /usr/libexec/ld-elf.so.1: /usr/lib/libm.so.2: Undefined symbol "__stderrp" objdump -r /usr/lib/libm.so.2 show the symbol __stderrp. What library resolves that and why is it not defined? Daryl Spartz
2012 Sep 25
1
Sa-Update Error - CentOS 6.3
Dear CentOS community Greetings, i was waiting for few days before sending this email message, i thought some server may have problem. That might causing the issue, will resolve its own. but since a week now i am getting this message. because i have not come across this error before, is anyone have across what is it? why my server is unable to download the file ERROR: http: GET
2007 Aug 13
1
AGI answering the channel even though I never asked it to
I am working on a call-back solution where the initiating call should never be answered. I was doing this simply through the dial plan, sending a progress tone, and then dumping the channel, and firing off a DeadAGI which created a call file to make the callback. Now I've tried extending this so that an AGI is fired first to check for things - like no inbound ANI - and play a
2005 Mar 03
3
Detect sound and continue, like BackgroundDetect() for voice
I'm looking for an application that can monitor a channel for voice input and then proceed on. The closest thing I've found is BackgroundDetect, which expects DTMF. Here's what I'm doing: -Call file generated which calls someone and connects them to an extension. -Extension plays stuff, etc. etc. etc (not important) With digital or VoIP termination, this works fine, because *
2007 Aug 16
1
Set CALLERID(num) to a specific number only if ${CALLERID(num)} is not an NANP number
Im trying to figure out the base way to check the callerID being sent to my Asterisk box and use it if it is a valid NANP number, but replace it with a static NANP number if it is not. (Why? I have a few carriers that require this, and a few international users - if it happens to take one of the carriers that require it, I want it to set a static number that is valid). I'm playing
2011 Mar 01
2
expression help
Hello, I am trying to write math-type on a plot. Due to space limitations on the plot, I want 2 short expressions written on top of each other. It is certainly possible to write them in two separate calls, but that involves fine-tuning locations and a lot of trial and error (and I'm trying to write a general purpose function). Here's where I've gotten to:
2004 Jan 11
2
CONTEST: Top Posters win 80G Hard Drive
> -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of David Burr > Sent: Sunday, January 11, 2004 4:31 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] CONTEST: Top Posters win 80G Hard Drive > > > We have a new contest starting today! > > The first three