search for: a1s

Displaying 20 results from an estimated 3423 matches for "a1s".

Did you mean: a1
2009 Oct 13
7
lapply() reccursively
Hi all, I was wondering whether it is possible to use the lapply() function to alter the value of the input, something in the spirit of : a1<-runif(100) a2<-function(i){ a1[i]<-a1[i-1]*a1[i];a1[i] } a3<-lapply(2:100,a2) Something akin to a for() loop, but using the lapply() infrastructure. I haven't been able to get rapply() to do this. The reason is that the "real"
2010 Aug 23
3
extracting p-values from Anova objects (from the car library)
Dear all, is there anyone who can help me extracting p-values from an Anova object from the car library? I can't seem to locate the p-values using str(result) or str(summary(result)) in the example below > A <- factor( rep(1:2,each=3) ) > B <- factor( rep(1:3,times=2) ) > idata <- data.frame(A,B) > fit <- lm( cbind(a1_b1,a1_b2,a1_b3,a2_b1,a2_b2,a2_b3) ? sex,
2011 Nov 22
1
Asterisk refuses INVITE (401) and I don't know why
Hello list, this is the communication between an Aastra 5000 PBX and Asterisk, where the Aastra makes a call to Asterisk. For some reason, Asterisk responds with 401-Unauthorized and I don't know why. Calls go well with Panasonic PBX, Avaya PBX, Alcatel-Lucent PBX but NOT with this Aastra. A1.A1.A1.A1 = IP-address Asterisk PBX AS.AS.AS.AS = IP-address Aastra PBX Aastra PBX makes a call
2010 Jun 08
3
partial matches across rows not columns
Hi R users, I am trying to omit rows of data based on partial matches an example of my data (seal_dist) is below: A quick break down of my coding and why I need to answer this - I am dealing with a colony of seals where for example A1 is a female with pup and A1.1 is that female's pup, the important part of the data here is DIST which tells the distance between one seal (ID) and another
2004 Jan 29
1
Share File Server Question?
Hi, There is my network. =09 _____ Subnet:192.168.2.0 / \ Subnet: 192.168.1.0 Domain:DOM1=09without PDC | Swap |Domain: DOM2 with PDC <---------------------- \_____/ ---------------------> =09 I want to setup the machine(swap) for sharing file. The file on swap can read/write by the member of the DOM2 and= read only by the member of the DOM1. The DOM1
2005 Dec 22
1
strsplit with dataframes
Hello fellow R people, I can not figure out a pretty way to use strplit with vectors Imagine that I got the following data from someone with ID's representing several factors ID data A1-B1-t1 0 A1-B1-t2 1 A1-B2-t1 5 A1-B2-t2 10 A1-B10-t1 0 A1-B10-t2 1 A1-B20-t1 5 A1-B20-t2 10 ... I would like to turn this dataframe to station substation time data A1 B1 t1 0 A1 B1 t2 1 A1 B2 t1 5
2008 Jul 08
2
nls and "plinear" algorithm
hello all i havnt had a chance to read through the references provided for the "nls" function (since the libraries are closed now). can anyone shed some light on how the "plinear" algorithm works? also, how are the fitted values obtained? also, WHAT DOES THE ".lin" below REPRESENT? thanking you in advance ###################################### i have a quick
2017 Nov 26
0
withTimeout does not timeout nlme anymore
Hello, I was relying on withTimeout (from R.utils) to help me stop nlme when it ?hangs?. However, recently this stopped working. I am pasting a reproducible example below: withTimeout should stop nlme after 10 seconds but in this example it does not. I tried this both on a linux (64 bit, CentOS 7, R 3.4.1, nlme 3.1-131 R.util 2.6) and mac (Sierra 10.13.1, R 3.4.2, same versions or nlme and
2010 Feb 24
2
Question:How to get rid of missing values
Hi, I want to draw a pie chart of level (variable) for each ID (variable). I have a big dataset, here I attach part of it. ID level 1 G1 1 A1 1 A1 1 G1 1 G1 1 G1 1 A1 1 A1 1 G1 1 G1 1 G3 1 A1 1 G1 1 A1 1 A1 1 A2 1 A2 1 M 1 A1 1 G1 1 A1 1 1 1 A2 1 G3 1 A1 1 A1 1 A1 Below is my r code: level <- na.exclude(level) level.table <- table(level) level.sum <-
2012 Nov 29
2
[LLVMdev] operator overloading fails while debugging with gdb for i386
For the given test: class A1 { int x; int y; public: A1(int a, int b) { x=a; y=b; } A1 operator+(const A1&); }; A1 A1::operator+(const A1& second) { A1 sum(0,0); sum.x = x + second.x; sum.y = y + second.y; return (sum); } int main (void) { A1 one(2,3); A1 two(4,5); return 0; } when the exectable of this code is debugged in gdb for i386, we dont get the
2008 Aug 02
3
convert for loop into apply()
Hi all,I know this topic has came up multiple times, but I've never fully understand the apply() function. Anyway, I'm here asking for your help again to convert this loop to apply(). I have 2 data frames with the following information: a1 is the fragment that is need to be covered, a2 is the probes that cover the specific fragment. I need to count the number of probes cover every given
2012 Oct 30
2
Put submatrices in an array
Dear R users, I have a Hadamard matrix 16x15 and i want to put 16x5 submatrices in an array put i have an error. > A1<-matrix(c(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 1,0,1,0,1,0,1,0,1,0,1,0,1,0,1, + 0,1,1,0,0,1,1,0,0,1,1,0,0,1,1, + 1,1,0,0,1,1,0,0,1,1,0,0,1,1,0, + 0,0,0,1,1,1,1,0,0,0,0,1,1,1,1, + 1,0,1,1,0,1,0,0,1,0,1,1,0,1,0, + 0,1,1,1,1,0,0,0,0,1,1,1,1,0,0, + 1,1,0,1,0,0,1,0,1,1,0,1,0,0,1, +
2003 Feb 08
3
to modify a vector
Hi All. I am quite a newbie to R. This is a basic question. I like to modify elements of a vector. For Example: a1 <- c(1,2,3,4,3,5) TThe following program sentence does not work but the intention is; if (a1==3) a1*3 . 3 in the vector should be changed to 9, and the resulted vector is (1,2,9,4,9,5). How can I get the result? Thanks in advance for help. -------========-------- mitsu5
2013 Mar 15
2
Help finding first value in a BY group
I have a large Excel file with SKU numbers (stock keeping units) and forecasts which can be mimicked with the following: Period <- c(1, 2, 3, 1, 2, 3, 4, 1, 2) SKU <- c("A1","A1","A1","X4","X4","X4","X4","K2","K2") Forecast <- c(99, 103, 128, 63, 69, 72, 75, 207, 201) PeriodSKUForecast <-
2009 Dec 02
4
sort a data frame by a vector
Hi, I have a a vector and a data frame with two columns vec = c("C", "A", "B") dataDF = data.frame(A1 = c("B", "A", "C"), A2 = c(1,2,3)) I would like to sort the data frame by column A1 such that the order of elements in A1 is as the same as in vec. After the ordering, the data frame would be A1 A2 C
2008 Mar 10
1
Local music on hold -- mohinterpret=passthrough assymetrical ?
Hi list, I'm planning and testing a distributed asterisk deployment throughout several sites; each will be connected to the PSTN and all of them among themselves via IAX trunks. Phones will be SIP. I guess I already "solved" (worked-around, actually) asterisk's codec negotiation limitations regarding local G.711 utilization vs. remote G.729 while minimizing
2008 Jan 10
1
data.frame manipulation: Unbinding strings in a row
Hi all, I have a data.frame I received with data that look like this (comma separated strings in last row): ID Shop Items ID1 A1 item1, item2, item3 ID2 A2 item4, item5 ID3 A1 item1, item3, item4 But I would like to unbind the strings in col(2) items so that it will look like this: ID Shop Items ID1 A1 item1 ID1 A1 item2 ID1 A1 item3 ID2 A2 item4 ID2 A2 item5 ID3 A1 item1 ID3 A1 item3 ID3 A1
2006 Nov 21
4
package vignettes, suggests and R CMD check
Dear R-devels, We have encountered a problem concerning a dead lock in the dependency graph: We have two packages A1 and A2 where A2 extends A1. We have one package vignette for both packages, but which should be included into package A1. So in the "suggests" field of the DESCRIPTION file of A1 we suggest A2 to be able to produce the vignette at build/install time. On the other hand
2004 Feb 26
2
return value in function
suppose I have a function example: getMatrix <- function(a,b){ A1<-diag(1,2,2) } If I want to get the both the A1 and dim(A1) from the function, Can I do return(A1,dim(A1)) inside the function ? And how can I access A1 and dim(A1) later on? --------------------------------- [[alternative HTML version deleted]]
2012 Jul 03
5
Is it possible to remove this loop? [SEC=UNCLASSIFIED]
Hi all, I would like create a new column in a data.frame (a1) to store 0, 1 data converted from a factor as below. a1$h2<-NULL for (i in 1:dim(a1)[1]) { if (a1$h1[i]=="H") a1$h2[i]<-1 else a1$h2[i]<-0 } My question: is it possible to remove the loop from above code to achieve the desired result? Thanks in advance, Jin Geoscience Australia Disclaimer: This e-mail