similar to: unlisting a list with names components (PR#645)

Displaying 20 results from an estimated 10000 matches similar to: "unlisting a list with names components (PR#645)"

2000 Aug 26
0
unlisting a list with names components (PR#645)
hi - i apologize if this is a duplicate. i think the lines below demonstrate a problem with unlist when the list contains components that are names. _anything_ can go in a list, right? this came up in the context of trying to unlist(list(attr(terms(formula), "variables")). perhaps unrelated but i thought i'd mention: unlist() complains about a call/formula object, but sapply()
2000 Oct 15
1
Re: I want to pull out an element from each of a list of matrices
At 18:26 14/10/00 +0100, Prof Brian D Ripley wrote: >On Sat, 14 Oct 2000, niels Waller wrote: > >> Dear colleagues, >> >> I suspect there is a simple answer to this question -- but I cannot find it. >> >> Suppose I have a list of matrices. I want to pull out an element (such as >> row 1, col 2) from each matrix. Do I need a loop to do this? Or is there
2001 Dec 11
0
Re: (PR#1210) an error message from scan() surprised vograno@arbitrade.com.
Original incorrect subject line was Subject: [Rd] multi.line=FALSE does not work in scan() (PR#1210) It *does* work quite correctly: this was an erroneous file nd you got an error, just one you didn't understand. Please don't use grossly misleading subject lines: they are all that appear in the BUGS file. On Tue, 11 Dec 2001 vograno@arbitrade.com wrote: > The following applies to
2000 Mar 01
0
installation problems on Windows (was Problems with some components of R)
> Date: Wed, 01 Mar 2000 18:01:21 +0100 > From: LAREDO Laurent <mim60 at cict.fr> > > I have downloaded and transfered to my P.C (Window 98) > the version of R which has been split on purpose,that is to > say the rw0990b1.zip ,rw0990b2.zip ,etc files. > I encountered no problem as far as the installation is concerned. > But when I try to run some function ,for
2002 Jul 18
1
Shared components?
>Date: Wed, 17 Jul 2002 07:39:06 +0100 (BST) >From: Prof Brian D Ripley <ripley at stats.ox.ac.uk> >Subject: Re: [R] R GUI and object browser > >This may be appealing, but > >1) R objects such as lists have shared components. You get the creation >date of the object, not of it components, and in any case I suspect you >want the last modification date. Do you mean
2006 Oct 29
1
Help with unlist
Dear r-helpers, I have a list whose elements are > str(durCut[[1]]) Ord.factor w/ 5 levels "vLow"<"low"<"med"<..: 3 2 5 2 2 2 4 4 3 5 ... How do I unlist durCut into an ordered factor? > str(unlist(durCut)) int [1:3024] 3 2 5 2 2 2 4 4 3 5 ... _____________________________ Professor Michael Kubovy University of Virginia Department of Psychology
2002 Jun 19
0
[R] Problems with url/download and http_proxy
This does seem to fix my problem: > Sys.getenv("http_proxy") http_proxy "http://gproxy1.pfizer.com/" > url("http://cran.r-project.org/src/contrib/PACKAGES",'r') description "http://cran.r-project.org/src/contrib/PACKAGES" class
2011 Jul 13
1
[LLVMdev] Unlisting build bots
Can we unlist defunct builders? For example, none of the bots running on the dunbar1 slave have been building for months. They just clutter up the waterfall view. Cameron
2000 Aug 28
0
under certain conditions, model.matrix appears to lack one (PR#648)
On Mon, 28 Aug 2000, Rashid Nassar wrote: > Dear Professor Ripley, > > Thank you very much for your kind explanation. If I may lamely say > something in my defence, even as I apologize for my error: I mistook the > sentence "the (quoted) name of a function" to mean "optionally quoted" > because of the parentheses surrounding "quoted", and was
2002 Aug 06
0
pipe and binary i/o (on Linux)
Thanks very much, Professor Ripley. Reid Huntsinger -----Original Message----- From: ripley at stats.ox.ac.uk [mailto:ripley at stats.ox.ac.uk] Sent: Tuesday, August 06, 2002 3:00 AM To: Huntsinger, Reid Cc: r-help at stat.math.ethz.ch Subject: Re: [R] pipe and binary i/o (on Linux) On Mon, 5 Aug 2002 ripley at stats.ox.ac.uk wrote: > pipe predates readBin, and no one has seen a
2001 Aug 21
0
Re: [R] Problem using GLM in a loop (fwd)
This example is caused by R's messing with formula environments. That's explained in ?formula, but should it not be explained in ?model.frame ? Simple test: data <- data.frame(y=rnorm(100), x=1:100) testit <- function(formula) { weights <- runif(100) glm(formula, weights=weights, data=data) } testit(y ~ x) weights is looked for in the environment of the formula, not of
2002 Jun 19
0
FW: [R] Problems with url/download and http_proxy (PR#1689)
For the record. -----Original Message----- From: ripley@stats.ox.ac.uk [mailto:ripley@stats.ox.ac.uk] Sent: Tuesday, June 18, 2002 3:21 PM To: Warnes, Gregory R Cc: 'r-help@stat.math.ethz.ch' Subject: RE: [R] Problems with url/download and http_proxy The port is not supposed to be required, so rather than fix the docs can anyone fix the problem? On Tue, 18 Jun 2002, Warnes, Gregory R
2000 Dec 31
0
editor in Windows doesn't like a data frame with row names (PR#798)
On Sun, 31 Dec 2000 jfox@mcmaster.ca wrote: > The editor in R version 1.2.0 returns an error after editing a data frame > that has row names. This is on a Windows 2000 system, but I've encountered > the same problem under Windows 95. Here's a simple example: Actually, that's not where the error is. If you use traceback() you will see it is in edit.data.frame. That tries
2012 Jan 08
2
Convert components of a list to separate columns in a data frame or matrix XXXX
Hello everyone, What is the most efficient & simpliest way to convert all components of a list to separate columns in a matrix? Is there an easy way to programmatically "pad" the length of the resulting shorter character vectors so that they can be easily combined into a data frame? I have the following code that stores the 2 compoents (of differing lengths) in the same character
2005 Oct 25
0
One more about Error in step() (or stepAIC) for Cox model
Thank you for Prof.Ripley's suggestion. I fixed the program by adding a lower scope, and the program ran, but I still got warning messages, and don't know what is going on, would this affect my results? ... Step: AIC= 12337.74 Surv(tlfup, cen) ~ MI[[j]]$trt + MI[[j]]$agem40 + MI[[j]]$agem40sq + mhtypeed1 + mhtypeed2 Df AIC <none> 12338 -
2002 Feb 26
2
matrix lists
Perhaps the following example will help demonstrate that matrix lists do exist and do work up to a point, despite strident assertions on R-help to the contrary: > m <- list(a1=1:3, a2=4:6, a3=pi, a4=c("a","b","c")) > dim(m) <- c(2,2) > m [,1] [,2] [1,] "Numeric,3" "Numeric,1" [2,] "Numeric,3"
2001 Oct 09
3
Unlisting while preserving object types?
Hi A toy example is probably the least ambiguous way of explaining what I'm trying to do. > library(ts) > zz<-list(a=rnorm(100),b=rt(100,3)) > zz.spec<-lapply(zz,spectrum,plot=F) > summary(zz.spec) Length Class Mode a 15 spec list b 15 spec list I'm looking for an elegant way to fetch components of the sub-lists a and b of zz.spec; e.g. to make a matrix
2002 Aug 14
1
FW: R CMD check: Too long [R] code line generated (PR#1900)
On Wed, 14 Aug 2002, Henrik Bengtsson wrote: > Sorry, but it was indeed the redirection of the standard output in > Cygwin/bash that cause the first problem, not R (I should stop doing > troubleshooting at 1:00 AM). So please forget about the problems reported in > R_CMD_check.out. However, it would still be nice if you still update R CMD > check to do join with "\n".
2000 Oct 11
0
Balanced incomplete block analysis
At 07:12 AM 10-10-00 +0100, Prof Brian D Ripley wrote: >On Tue, 10 Oct 2000, Murray Jorgensen wrote: > >> Excuse me everyone, but I don't have to teach this very often! >> >> Has anyone got some R code for doing adjusted treatment means and the >> recovery of inter-block information in the analysis of balanced incomplete >> block designs? > >Do you
2000 Mar 08
0
RE: [R] RODBC
Sorry, I was commenting on the previous windows version (version file says 0.5a) (the first one which ran under RW.1.0.0) I have Win NT 4.0 Service pack 5 and R is > version _ platform Windows arch x86 os Win32 system x86, Win32 status major 1 minor 0.0 year 2000 month February day 29 language R > -----Original Message----- > From: Prof Brian