similar to: i think i asked the wrong ?

Displaying 20 results from an estimated 1000 matches similar to: "i think i asked the wrong ?"

2002 Feb 25
5
another basic ?
i am sure that there is a simple solution that i am just overlooking, but there is no logical test for = there is one for != and >,<, >=, <=... what do i do if i need to check if something IS EQUAL or is there an easy way, in working with a matrix of size n x 3, to sort the matrix by one of the columns? specifically what i am trying to do is i have a matrix with individual and
2002 Mar 20
3
check without loop
i am probably just missing this one, but how can i check to see if a number is a part of a vector? i know i could do a loop checking for equivalence for each element, but i am thinking that there must be a simpler way to do it than that ( i think that i have even done it in the past, but can't remember how!) thanks what i am working with: (hope this makes sense) arclist [1] 2 2 6
2002 Apr 29
2
efficiency
i have a set of files that i am reading into R one at a time and applying to a function that i have written where each is a 'table' n (columns) x 10000 (rows) n varies across the files and most of the rows only have data in the first few columns currently i am reading them in with the command: read.table(file="2.75.0.997.1", header=FALSE, sep="", skip=13, fill=,
2002 Mar 20
7
how does while work
i am having some problems with a program that i am writing and i think that knowing how the while command works will help me to figure out where i am going wrong *when do you get kicked out of a while loop?* (i.e., in the following example what would the final value of 'a' be?) i thought it would be 99 but running it in R i get 101 (and 101 for x too!) while (x <100) { for (i in
2002 Apr 17
1
concat
i have a function that returns a list containing a variety of variable types i am trying to run the function multiple times and return the output into a variable with a semi-consistent naming pattern i.e., for ten trials i want to return the list into variables trial1,trial2,...trial10 is there a generic way to get this to happen i have a similar process that does the same thing to an external
2002 Mar 08
2
? about sample
i am trying to use the sample command and have one question about it: i am getting the error Error in sample(length(x), size, replace, prob) : insufficient positive probabilities when i use something like: sample (1:4, prob=c(0,0,1,0))[1] i was expecting that to return a 3 every time while this is not exactly what i am using it for, i need the capabilities to deal with zeros (as the
2002 Apr 08
2
changing the form of a list
i have a 2 x n matrix that is a paired list of connections, i am working with that looks something like: 1 2 1 3 1 5 2 1 2 3 3 1 3 2 4 5 5 1 5 4 for later operations it would be helpful if i could change this into the form of: 1 2 3 5 2 1 3 3 1 2 4 5 5 1 4 the initial list is randomly generated and the max number of times that any one number can appear is previoulsy defined by a limiting
2002 Feb 26
3
Matrix of Elements of Different Types (was Interfacing pre-existing C++ library from R)
--- Prof Brian D Ripley <ripley@stats.ox.ac.uk> wrote: >A matrix list? R lists are just vectors with elements of different types, >and R matrices are just vectors with a dimension attribute. When I saw the above I tried to create a matrix from a list but could not get it to work: my.lm <- lm( rnorm(10) ~ I(1:10) ) my.list <- list(1, 2, 3, 4, 5, 6, my.lm, my.lm, my.lm)
2012 Jul 31
3
year extraction over a list
Hello, I have a data frame, one element in that data frame is a LIST, with each element being a character string. I am trying to extract the first year listed in each of those character strings. The character elements are typically csv, but the position of the year can vary (think citations with varying citation standards). I.e., foo$a [[1]] [1] text, text, 2001, text [2] text, 2000, text [3]
2006 Oct 31
1
Fw: domU network problem , 10/30 progress
Hao Yu Commercial Scale Out IBM T.J. Watson Research Center 1101 Kitchawan Rd/Route 134, Rm 36-019 Yorktown Heights, NY 10598-0218 914-945-1854, Email: yuh@us.ibm.com ----- Forwarded by Hao Yu/Watson/IBM on 10/31/2006 09:52 AM ----- Jimi
2006 Oct 31
1
Fw: domU network problem , 10/30 progress
Hao Yu Commercial Scale Out IBM T.J. Watson Research Center 1101 Kitchawan Rd/Route 134, Rm 36-019 Yorktown Heights, NY 10598-0218 914-945-1854, Email: yuh@us.ibm.com ----- Forwarded by Hao Yu/Watson/IBM on 10/31/2006 09:52 AM ----- Jimi
2006 Mar 30
3
[patch] bitops on irq_cpustat_t->__softirq_pending
As mentioned earlier, PowerPC''s atomic ops operate on longs, and we have made our *_bit() prototypes use long* (instead of void*) to warn us of problems at compile time. Here''s one caller that was flagged: test_and_set_bit(nr, &softirq_pending(cpu)) Accordingly, we need __softirq_pending to be long, not int. PowerPC is currently using a few files unmodified from the x86
2012 Feb 27
4
Duda lapply
Hola a todos/as: Tengo la siguiente duda: Construyo una lista de tamaño 2, del siguiente modo: miLista<-list() miLista[[1]]<-list(nombre="Ana", apellido1="Pérez", apellido2="Sánchez") miLista[[2]]<-list(nombre="Carlos", apellido1="Núñez", apellido2="Sierra") Le aplico la función turnoLaboratorio: miResul<-lapply(miLista,
2012 Aug 09
4
indexing in data frames
I'm still not fully understanding exactly how R is handling data frames, but am getting closer. Any help with this one will likely go a long way in getting me there. Let's say I have a data frame, let's call it "a". Within that data frame i have two variables, let's call them "b" and "c", where "b" is a single numeric value per observation,
2006 Aug 07
5
[PATCH][LINUX] use machine_emergency_restart() from the generic header.
This patch uses the standard generic header for the definition of machine_emergency_restart() and reverses the call path for XenoLinux. Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com> --- diff -r 7680b29c03a6 drivers/xen/core/reboot.c --- a/drivers/xen/core/reboot.c Sat Aug 05 11:33:24 2006 -0400 +++ b/drivers/xen/core/reboot.c Mon Aug 07 09:50:33 2006 -0400 @@ -9,6 +9,7 @@ #include
2007 Feb 01
2
[LLVMdev] llvm-java
So, the question that every once in a while is posed on this mailing list: What's the latest on llvm-java? I couldn't get the CVS version to compile under LLVM 1.9. I need to get Java class files to LLVM. If anyone can just tell me how to get it to compile, that would be great. -Jimi
2006 Aug 11
2
[PATCH][XEN] Use a union to pack the dual-short combos in an endian neutral way.
The first to members of a grant entry are updated as a combined pair. The following union patch uses a union so updated can happen in an endian neutral fashion. Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com> diff -r 1f611b58729f xen/common/grant_table.c --- a/xen/common/grant_table.c Wed Aug 09 18:53:00 2006 -0400 +++ b/xen/common/grant_table.c Fri Aug 11 12:29:48 2006 -0400 @@ -32,6
2018 Jul 03
2
"Desarmar" una lista de matrices
Buenas tardes (o día, lo que les toque) Gracias a la ayuda de la lista conseguí seguir adelante, y debido a mi desconocimiento, no puedo seguir haciendolo. Nuevamente pido ayuda. Tengo una lista generada con lapply, algo así milista <- lapply(as.list(cars[,1:2]), dist) La lista es un poco diferente, genera unos cientos de matrices. ¿Cómo puedo hacer para que me separe automáticamente cada
1999 Jul 16
7
R:how to separate stuff?
Thanks for your help on moving files from S+ to R and on attaching directories. If attaching directories is NOT possible in R, is there any other way to separate objects into different folders or something similar? For example, to keep user functions for multivariate analysis in a different "place" than user functions on time series, or to keep data objects of project_1 in a different
1999 Jul 16
7
R:how to separate stuff?
Thanks for your help on moving files from S+ to R and on attaching directories. If attaching directories is NOT possible in R, is there any other way to separate objects into different folders or something similar? For example, to keep user functions for multivariate analysis in a different "place" than user functions on time series, or to keep data objects of project_1 in a different