search for: thelist

Displaying 20 results from an estimated 20 matches for "thelist".

2018 May 02
0
Converting a list to a data frame
...to a data frame that looks > like this: > > data.frame(type=c("A","A","B","B"),x=c(1:2,5:6),y=c(3:4,7:8)) > > Appreciate any pointers. > > Kevin Hi, Kevin. Here's code that will generate your desired data frame. # List as provided thelist <- list(A=data.frame(x=1:2, y=3:4),B=data.frame(x=5:6,y=7:8)) thelist # Creating the type-vector type <- c() for(i in 1:length(thelist)){ type <- c(type, rep(names(thelist)[i], sapply(thelist, nrow)[i])) } # Creating the data frame df <- data.frame(type, do.call(rbind.data.frame, c...
2004 Mar 02
3
Margins on tables
It has long been a nuisance to me not being able to form margins on multiway tables in a simple fashion, so i wrote margins(). In my opinion it should go into the base package. The code and the documentation is in: http://www.biostat.ku.dk/~bxc/R/margins/ Please help yourself, and enhance and rename as you see fit. Bendix ---------------------- Bendix Carstensen Senior Statistician Steno
2009 Sep 16
1
extracting one element from all list elements
Hi I have a list which cosists out of dataframes of the same structure. Now I want to extract one column (let's say column "A") from all dataframes and have them in a matrix (or dataframe). At the moment I am doiong: d <- data.frame(A=runif(100), B=rnorm(100)) theList <- list(e1=d, e2=d, e3=d, e4=d) f <- sapply(theList, function(l){l$A} ) But I am sure ther is a more elegant way? Rainer -- Rainer M. Krug, Centre of Excellence for Invasion Biology, Stellenbosch University, South Africa [[alternative HTML version deleted]]
2007 Nov 30
2
make sortable divs and innerHTML
My problem is that elements that were included in my site with innerHTML can´t be sortable because the DOM doesn´t know that these elements are there. Has anybody a solution or an idea to this problem? ToM --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group,
2018 May 02
8
Converting a list to a data frame
I suspect this is pretty easy, but I'm having trouble figuring it out. Basically, I have a list of data frames such as the following example: list(A=data.frame(x=1:2, y=3:4),B=data.frame(x=5:6,y=7:8)) I would like to turn this into data frame where the list elements are essentially rbind'ed together and the element name becomes a new variable. For example, I would like to turn the
2018 May 02
3
Converting a list to a data frame
...gt; data.frame(type=c("A","A","B","B"),x=c(1:2,5:6),y=c(3:4,7:8)) >> >> Appreciate any pointers. >> >> Kevin > > Hi, Kevin. > > Here's code that will generate your desired data frame. > > # List as provided > thelist <- list(A=data.frame(x=1:2, y=3:4),B=data.frame(x=5:6,y=7:8)) > thelist > > # Creating the type-vector > type <- c() > for(i in 1:length(thelist)){ > type <- c(type, rep(names(thelist)[i], sapply(thelist, nrow)[i])) > } > > # Creating the data frame > df <...
2004 Aug 03
3
dots expansion
Hi list, I'm trying to write a function similar to rbind, except that needs to add a factor to each component array before rbinding them together so that the rows from different arrays are distinguishable. The problem that arose is how to loop through arguments in the dots "..." list. I need to get a hand on each of them but don't know how many of them there are and what
2006 Nov 28
1
Can anyone read a S-PLUS .dmp file for me?
Hi WizaRds, I tried reading the S-PLUS file ftp://ftp.research.att.com/dist/bayes-meta/hblm.dmp into R using data.restore("hblm.dmp") but I got an error: Error in attributes(value) <- thelist[-match(c(".Data", ".Dim", ".Dimnames", : row names must be 'character' or 'integer', not 'double' In addition: Warning message: NAs introduced by coercion Does anyone know how to read this type of S-PLUS file into R? I am not familiar wit...
2017 Jul 31
1
lldb-amd64-ninja-netbsd7 builder
To whom it may concern: I've been monitoring the lab.llvm.org builders for a bit over a week now and this builder: http://lab.llvm.org:8011/builders/lldb-amd64-ninja-netbsd7 has been down since April. It also has no admin listed. Could it be removedfrom thelist of builders? Sean -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170731/6fbb5b64/attachment.html>
2007 Dec 29
1
Odd Values For Powercoms
All, I'm using the Powercom driver from 2.2 (not the one recently mailed to thelist). Since it's a KIN2200AP, I'm using the driver settings right from the manpage. All the values look "sane" when I'm on-line, but note some of the odd values (<-- Here) when on battery: Also, does anyone know if this UPS supports logging of the "boost" or &qu...
2002 Feb 21
0
data.restore: warnings
...re dumped to a file with data.dump(). Functions were excluded from the data.dump() in S. I'm geting an error and warnings (I normaly do not with other objects) and don't know how to trace back the problem: > data.restore("nofunciones.dmp") Error in try(dimnames(value) <- thelist[[".Dimnames"]]) : length of dimnames[2] not equal to array extent In addition: Warning messages: 1: NAs introduced by coercion 2: NAs introduced by coercion 3: NAs introduced by coercion 4: NAs introduced by coercion [1] "nofunciones.dmp" There were 19 warnings (use warn...
2006 Dec 17
0
hblm program: porting from Splus to R
...<[EMAIL PROTECTED]> wrote: Hi WizaRds, > > I tried reading the S-PLUS file > > ftp://ftp.research.att.com/dist/bayes-meta/hblm.dmp > > into R using > > data.restore("hblm.dmp") > > but I got an error: > > Error in attributes(value) <- thelist[-match(c(".Data", ".Dim", ".Dimnames", > : > row names must be 'character' or 'integer', not 'double' > In addition: Warning message: > NAs introduced by coercion > > Does anyone know how to read this type of S-PLUS file into...
2010 May 24
2
Upgrading Samba
I have a fairly old Samba server, 3.0.25, on CentOS 4.8. I'd like to update it to something more modern, so I grabbed the "Enterprise Samba" 3.5 RPMs for RHEL, and went to work on a test machine. After upgrading via "rpm -U ./*.rpm", starting nmbd and smbd, I can no longer log in to the domain, I get: netlogon_creds_server_check failed. Rejecting auth request from client
2010 Jan 05
2
Dynamic arguments in "rbind" function
Hi, all Basically, I have unknown number of data that need to be imported and collapsed row-wisely. The code below works fine, however the "rbind" function may require 50 arguments if there are 50 data files... Thus, I would like to explore whether there are any methods in using dynamic objects (i.e from the resulting objects in the for loop) as an argument in the *"rbind"*
2000 Jun 23
1
Re: undocumented behaviour of recordPlot (PR#578)
...rate the combined plot by > > > > > t.plot # worked > > > t.plot2 # cleared graph, but did nothing > > The problem is that main/plot.c:do_playDL doesn't set the device diplay list. Inserting towards the beginning a line like dd->dipslayList = theList; works for me at least under Unix. I will commit it after testing under Windows. BTW, Kaspar, I have no Windows at hand in this moment but does the problem manifest itself also with the plot history mechanism? E.g., (i) if you set (with the menu) the graphics window in 'recording...
2000 Jun 23
1
Re: undocumented behaviour of recordPlot (PR#578)
...rate the combined plot by > > > > > t.plot # worked > > > t.plot2 # cleared graph, but did nothing > > The problem is that main/plot.c:do_playDL doesn't set the device diplay list. Inserting towards the beginning a line like dd->dipslayList = theList; works for me at least under Unix. I will commit it after testing under Windows. BTW, Kaspar, I have no Windows at hand in this moment but does the problem manifest itself also with the plot history mechanism? E.g., (i) if you set (with the menu) the graphics window in 'recording...
2008 Jun 03
0
More information on R segfaults, tcltk package, and graphics devices
...68, savestack=0, browselevel=0) at main.c:306 #81 0x0805b4d8 in run_Rmainloop () at main.c:967 #82 0x08058d91 in main (ac=0, av=0x0) at Rmain.c:35 #83 0xb7d61450 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6 #84 0x08058cc1 in _start () What seems to be happening is during the while (theList != R_NilValue && plotok) loop in GEplayDisplayList, at some point R_CheckUserInterrupt can be called, and if the tcltk package has been loaded, its TclHandler is called, which eventually ends up getting removeDevice called, as the backtrace above shows. From there, and please excuse my...
2003 Jun 05
2
CVS over SSH
Hi there I'm running a samba cvs server in a windows domain with a W2K PDC. I want to authenticate windows users through ssh. I'm able to login with a windows user to the server on the server himself but when I want to login via a windows client It doesn't work. The connection is refused. Could it be something mis configured in my ssh pam module. This is my pam ssh module PAM
2008 Mar 11
7
sortable scroll in div problem : dragged element doesn't follow the mouse pointer
Hello, I''m facing a strange problem with a long list of Sortable items in a container that has an overflow:auto. If I drag an item from the top to the bottom, the container div is scrolling, but there is a difference between the position of the dragged element and the mouse pointer. An example is better that a thousand words. Try to drag the first item at the bottom of the
2013 Feb 26
0
Dom0 OOM, page allocation failure
Hello, I''m running into some trouble with what appear on the surface to be OOM issues in Dom0, but I''m not seeing any other evidence. This typically happens during periods of high I/O, and has occurred during RAID initial sync, and mkfs.ext4ing (as a test, no intention to keep ext4 on this array). I''ve found some older posts citing very similar circumstances, however