Displaying 20 results from an estimated 37 matches for "num1".
Did you mean:
num
2010 Apr 20
2
having more than one plot in one figure
Hi All,
I have been trying to plot multiple line plots with different colors on one
figure. in my example below I was able to plot cat vs num1 as a dot plot
connected with lines but was not able to do that for cat vs num2 and I do
not know how to add the third plot cat vs num3. below is my code
df <- data.frame(cat=1:10, num1=rnorm(10), num2=rnorm(10), num3=rnorm(10))
plot(df$num1, type="b", col="red", xlab="...
2013 Apr 09
1
(no subject)
Hi
I would like to normalize my data by one of the variables in long format.
My data is like this:
>
t1<-data.frame(id=rep(1:3,rep(3,3)),dt=rep(1:3,rep(9,3)),var=c('num1','num2','norm'),value=rnorm(27))
> t1
id dt var value
1 1 1 num1 -1.83276256
2 1 1 num2 1.57034303
3 1 1 norm 0.60008563
4 2 1 num1 -0.96893477
5 2 1 num2 0.30423346
6 2 1 norm -0.07044640
7 3 1 num1 -1.30558219
...
in this case there are 3...
2005 Sep 05
2
USING TWO ACCOUNTS WITH BROADVOICE
Hi,
I have two accounts with broadvoice.
Now, I want to be able to distinguish between them.
I though that this would be simple by adding "/EXTEN" at the end of the
register statement. For example:
register => num1:pass@sip.broadvoice.com/1000
Unfortunately, this is not working.
When I call into my box I hear busy tone.
My config looks like this:
[root@voip asterisk]# cat sip.conf
[general]
externip=mydomain
bindaddr = 0.0.0.0
port=5060
localnet=192.168.1.0/255.255.255.0
disallow=all
allow=ulaw
register =>...
2011 Feb 28
3
Problems using unique function and !duplicated
...iables from two or more
variables in a small R data.frame. I am trying to reproduce the SAS
statements from a Proc Sort with Nodupkey for those familiar with SAS.
Here's my example data :
test <- read.csv("test.csv", sep=",", as.is=TRUE)
> test
date var1 var2 num1 num2
1 28/01/11 a 1 213 71
2 28/01/11 b 1 141 47
3 28/01/11 c 2 867 289
4 29/01/11 a 2 234 78
5 29/01/11 b 2 666 222
6 29/01/11 c 2 912 304
7 30/01/11 a 3 417 139
8 30/01/11 b 3 108 36
9 30/01/11 c 2 288 96
I am trying to...
2006 Feb 09
1
List Conversion
Hello,
I have a list (mode and class are list) in R that is many elements long and of the form:
>length(list)
[1] 5778
>list[1:4]
$ID1
[1] "num1"
$ID2
[1] "num2" "num3"
$ID3
[1] "num4"
$ID4
[1] NA
I'd like to convert the $ID2 value to be in one element rather than in two.?? It shows up as c(\"num2\", \"num3\") if I try to use paste(list[2], collapse=""). I need to do thi...
2010 Feb 01
1
How to repeat "for" function?
...elp is very much appreciated...
## Part A
n=1400
m=matrix(c(0,0,0,0),4,1)
m2=matrix(c(0,2,0,0),4,1)
c4<-matrix(c(1.0,0.2,-0.5,0.3,0.2,1,0.2,-0.5,-0.5,0.2,1,0.2,0.3,-0.5,0.2,1),4,4,byrow=T)
set.seed(428)
X=mvrnorm(n,m2,c4)
X.pca<-princomp(X)
loadings(X.pca)
pc=X.pca$loadings[,1]
## Part B
num1=rep(1:n)
for(i in 1:n)num1[i]=pc[1]%*%X[i,1]
num2=rep(1:n)
for(i in 1:n)num2[i]=pc[2]%*%X[i,2]
num3=rep(1:n)
for(i in 1:n)num3[i]=pc[3]%*%X[i,3]
num4=rep(1:n)
for(i in 1:n)num4[i]=pc[4]%*%X[i,4]
den=rep(1:n)
for(i in 1:n)den[i]=pc%*%X[i,]
r1=num1/den
r2=num2/den
r3=num3/den
r4=num4/den
MLAV=sum(...
2010 Sep 19
4
Create Dot Chart
Hello everyone...
I would like to create a chart (see below), how can I do it with R?
Any help, suggestion, samples... will be greatly appreciated.
Thanks... Avi
http://r.789695.n4.nabble.com/file/n2545921/DotChart.jpg
--
View this message in context: http://r.789695.n4.nabble.com/Create-Dot-Chart-tp2545921p2545921.html
Sent from the R help mailing list archive at Nabble.com.
2009 Aug 17
0
Call back DIALSTATUS is empty
...empty. Please help.
Here is my extensions_additional.conf file code:
[multi-dir-callback]
include => multi-dir-callback-custom
exten => _X.,1,Answer
exten => _X.,n,Playback(beep)
exten =>
_X.,n,DeadAGI(agi://127.0.0.1/callback_handler?num2=${EXTEN}&callid=${CALL_I
D}&num1=${num1}&state=${STATE})
exten => _X.,n,Goto(${EXTEN},1)
exten =>
hangup,1,DeadAGI(agi://127.0.0.1/callback_handler?num2=${EXTEN}&callid=${CAL
L_ID}&num1=${num1}&state=${STATE})
; end of [multi-dir-callback]
Here is the code from my mail .pm file:
# main loop for...
2007 Apr 18
2
[Bridge] Bridge code enhancement (link state detection) and bug fix. (patches included).
...cond problem when writing the link monitoring code.
When you add a vlan interface like eth0.10 then it's not possible to
obtain link state information from this interface.
The fix I wrote is that brctl now allows you to specify the interface
that contains the link state.
Example : brctl addif NUM1 eth0.10 eth0
The old syntax: "brctl addif NUM1 eth0.10" still works but the link will
always appear to be up.
"brctl addif NUM1 eth0" works with link detection since this is a valid
'link state providing' device.
If anyone is wants to know how to use the linux bridges...
2003 Jun 23
1
strange problem
hi,
running dovecot-0.99.10-rc2 on NetBSD, client is Entourage on MacOS 9.2.
sylpheed on NetBSD does not show this behaviour.
--snip--
Jun 23 16:28:15 host imap(user): file mail-index.c: line 619 (mail_index_lookup_uid_range): assertion failed: (first_uid > 0 && last_uid > 0)
--snap--
any hints?
thanks,
TOM
-------------- next part --------------
A non-text attachment was
2011 Feb 16
1
confused by lapply
...#39;X', each element of
which is the result of applying 'FUN' to the corresponding element
of 'X'.
I expect that when I do
> lapply(vec,f)
f would be called _once_ for each component of vec.
this is not what I see:
parse.num <- function (s) {
cat("parse.num1\n"); str(s)
s <- as.character(s)
cat("parse.num2\n"); str(s)
if (s == "N/A") return(s);
as.numeric(gsub("M$","e6",gsub("B$","e9",s)));
}
> vec
mcap
1 200.5B
2 19.1M
3 223.7B
4 888.0M
5 141.7B
6 273.5M
7 55....
2010 Jul 21
1
Command that is conditional upon file retrieval: is it possible?
...me of the data I need. However, the people who post up the
files I access are at times inconsistent with regards to time posted, if
they post at all, etc.... Here's some of the code I use:
library(RCurl)
url1 = paste("ftp://user:password at a.great.website.com/", "file", num1,
".csv", sep = "")
data1 = getURL(url1)
write(data1, file = paste("inMyFolder", num1, ".csv", sep = ""))
Sometimes this process works perfectly, and sometimes I get an error message
like this attached to "data1 = getURL(url1)":
Error...
2012 Sep 20
1
aggregate help
...ringsAsFactors=FALSE)
> z
id a1 a2
1 10 a x
2 20 b y
3 10 a x
4 30 c z
5 10 b z
6 20 b y
--8<---------------cut here---------------end--------------->8---
I want to get something like
--8<---------------cut here---------------start------------->8---
id a1.tot a1.val1 a1.num1 a1.val2 a1.num2 a2.tot a2.val1 a2.num1 a2.val2 a2.num2
10 3 "a" 2 "b" 1 3 "x" 2 "z" 1
20 2 "b" 2 <NA> 0 2 "y" 2 <NA> 0
30 1 "c...
2007 Dec 01
1
creating conditional means
Hi all-
I have a dataset (year, month, hour, co2(ppm), num1,num2)
[49,] 2006 11 0 383.3709 28 28
[50,] 2006 11 1 383.3709 28 28
[51,] 2006 11 2 383.3709 28 28
[52,] 2006 11 3 383.3709 28 28
[53,] 2006 11 4 383.3709 28 28
[54,] 2006 11 5 383.3709 28 28
[55,] 2006 11 6 383.3709 28 28
[56,] 2006...
2004 Sep 01
5
dtmf problem
Hello!
I have asterisk updated from CVS on 31/8/2004 with
sample configuration. I have just changed the
sip.conf to register asterisk with sip proxy in out
intranet.
Then I can successfully make call to asterisk and go
to demo IVR, but no response to dtmfs.
I try to make call from several sip phones: Cisco7960,
Ata186, Snom200. All of them send telephone-event in
INVITE, but asterisk answers
2015 Feb 02
2
Agregar variables
Hola a todos, a ver si me pueden echar una mano que estoy atascado.tengo estas dos tablas:
> head (intento1) codigo categoria talla num1 1 904 400 12 1 904 460 13 1 904 470 44 1 904 480 105 1 904 490 ...
2009 Aug 07
1
Gauss-Laguerre using statmod
I believe this may be more related to analysis than it is to R, per se.
Suppose I have the following function that I wish to integrate:
ff <- function(x) pnorm((x - m)/sigma) * dnorm(x, observed, sigma)
Then, given the parameters:
mu <- 300
sigma <- 50
m <- 250
target <- 200
sigma_i <- 50
I can use the function integrate as:
> integrate(ff, lower= -Inf, upper=target)
2017 Aug 16
3
LLVM JIT Compilation
...n LLVM.
>
> My understanding of JIT is it is like llc; it takes optimized bit code
> (generated via opt) and compiles it at run time instead of static
> compilation. for example i have a loop which adds 2 user input numbers. so
> my cpp file becomes:
>
> int main()
> {
> num1[1000], num2[1000];
> //take input in these arrays at run time using scanf.
>
> scanf("%d",num1);
> scanf("%d",num2);
>
> for (int i=0;i<1000;i++);
> {
> num1+num2;
> }
>
> so if i pass this through opt for auto vectorization. i keep vector
>...
2013 May 03
10
Why can't R understand if(num!=NA)?
I have a program, when I write
if(num!=NA)
it yields an error message.
However, if I write
if(is.na(num)==FALSE)
it works.
Why doesn't the first statement work?
Thanks,
Miao
[[alternative HTML version deleted]]
2006 Oct 30
4
read.fwf and header
Hi!
I have data (also in attached file) in the following form:
num1 num2 num3 int1 fac1 fac2 cha1 cha2 Date POSIXt
1 1 f q 1900-01-01 1900-01-01 01:01:01
2 1.0 1316666.5 2 a g r z 1900-01-01 01:01:01
3 1.5 1188830.5 3 b h s y 1900-01-01 1900-01-01 01:01:01
4 2.0 1271846.3 4 c i t x 1900-01-01 1900-01-01 01:01:01
5 2.5 829737.4...