similar to: Modifying dim attribute of elements of a list

Displaying 20 results from an estimated 700 matches similar to: "Modifying dim attribute of elements of a list"

2003 Oct 16
1
Improving efficiency in "outer"-like calculation
Hello, I am doing mcmc=10000 simulations from a posterior distribution of the parameters of a mixture of K=6 normal densities. I have mcmc by K matrices simMeans, simVars and simWeights containing the simulation output: one row for each simulation, one column for each normal component of the mixture. One thing I would like to do is a plot of the posterior predictive density. In order to do that
2011 Apr 01
3
programming: telling a function where to look for the entered variables
Hi there, Could someone help me with the following programming problem..? I have written a function that works for my intended purpose, but it is quite closely tied to a particular dataframe and the names of the variables in this dataframe. However, I'd like to use the same function for different dataframes and variables. My problem is that I'm not quite sure how to tell my function in
2001 Dec 09
0
Bug#123084: r-base: R documentatio search engine unusable with Mozilla 6 (OK with netscape 4.7x) (PR#1202)
As there is nothing Debian-specific in this bug report (and the .deb of the JVW is not from Debian either), I am forwarding this to R-bugs. My recollection from recent discussions on the R mailing list is that currently /no/ browser other than Netscape supports the Java search engine -- is that correct or was there some Netscape derivative (galeon?) which does? Maybe the documentation should be
2013 Nov 15
1
Inconsistent results between caret+kernlab versions
I'm using caret to assess classifier performance (and it's great!). However, I've found that my results differ between R2.* and R3.* - reported accuracies are reduced dramatically. I suspect that a code change to kernlab ksvm may be responsible (see version 5.16-24 here: http://cran.r-project.org/web/packages/caret/news.html). I get very different results between caret_5.15-61 +
2001 Dec 09
0
Bug#123084: r-base: R documentatio search engine unusable (PR#1203)
On Sun, 9 Dec 2001 edd@debian.org wrote: > > As there is nothing Debian-specific in this bug report (and the .deb of the > JVW is not from Debian either), I am forwarding this to R-bugs. My > recollection from recent discussions on the R mailing list is that currently > /no/ browser other than Netscape supports the Java search engine -- is that > correct or was there some
2003 Dec 10
0
nested analysis with lme - odd result?
Hello! When I simulate variance at only a single level in a nested analysis using lme (all levels are random effects), the results confuse me. Instead of lme reporting high variance in only that simulated level, substantial variance (>10% of simulated level) often appears in other levels -- in some configurations, as often as 50% of the time. Usually this spurious variance shows up in
2023 Oct 29
1
dim<-() changed in R-devel; no longer removing "dimnames" when doing dim(x) <- dim(x)
Hello, the fix of PR18612 (https://bugs.r-project.org/show_bug.cgi?id=18612) in r85380 (https://github.com/wch/r-source/commit/2653cc6203fce4c48874111c75bbccac3ac4e803) caused a change in `dim<-()`. Specifically, in the past, any `dim<-()` assignment would _always_ remove "dimnames" and "names" attributes per help("dim"): The replacement method changes
2023 Oct 30
2
dim<-() changed in R-devel; no longer removing "dimnames" when doing dim(x) <- dim(x)
>>>>> Henrik Bengtsson >>>>> on Sun, 29 Oct 2023 10:42:19 -0700 writes: > Hello, > the fix of PR18612 > (https://bugs.r-project.org/show_bug.cgi?id=18612) in > r85380 > (https://github.com/wch/r-source/commit/2653cc6203fce4c48874111c75bbccac3ac4e803) > caused a change in `dim<-()`. Specifically, in the past,
2011 Oct 31
1
Error in dim(data) <- dim : attempt to set an attribute on NULL.
This post has NOT been accepted by the mailing list yet. Hi, I'm passing the input parameters and calculating the linear regression. some time i'm getting the error Error in dim(data) <- dim : attempt to set an attribute on NULL. But when i restart my R studio, then it runs. Please help to resolve this problem. My code looks like dataset <-
2012 Jun 04
2
Convert 2-dim array to 3-dim array
Hello R-users, I'd like to load data from a CSV-file to a 3-dimensional array. However the default seems to be 2-dimensional. It would also be ok to load the data and then convert it to a 3-dimensional structure. I've been trying: dat = read.csv(filename) myArr = as.array(dat, dim = c(12,100,3)) However, I get an error message: Error in `dimnames<-.data.frame`(`*tmp*`,
2023 Oct 31
1
dim<-() changed in R-devel; no longer removing "dimnames" when doing dim(x) <- dim(x)
Hi Martin, Henrik, I actually like this change. Makes a lot of sense IMO that dim(x) <- dim(x) be a no-op, or, more generally, that foo(x) <- foo(x) be a no-op for any setter/getter combo. FWIW S4Arrays::set_dim() does that too. It also preserves the dimnames if the right value is only adding or dropping outermost (ineffective) dimensions: ??? > x <- array(1:6, dim=c(2,3,1),
2009 Feb 12
0
Error Message: Error in dim(data) <- dim : attempt to set an attribute on NULL
I have the following code, from which I get the following error message: Error in dim(data) <- dim : attempt to set an attribute on NULL I think the error is coming from the part of my code in BOLD RED. The script works fine until then. #Load libraries source("http://bioconductor.org/biocLite.R") biocLite() library(limma) library(Biobase) #change directory to folder where
2014 Nov 15
1
Error "promise already under evaluation ..." with function(x, dim=dim(x))
I've meant to ask the following for several years now. I understand why: > foo <- function(x, dim=dim) { dim } > foo(1) Error in foo(1) : promise already under evaluation: recursive default argument reference or earlier problems? gives an error, but why wouldn't/couldn't the following work? > foo <- function(x, dim=dim(x)) { dim } > foo(1) Error in foo(1) :
2007 Apr 18
0
Dim strSource As String .
An HTML attachment was scrubbed... URL: http://lists.linux-foundation.org/pipermail/virtualization/attachments/20070319/af82b7ef/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: skittish.gif Type: image/gif Size: 9369 bytes Desc: not available Url :
2012 Feb 13
2
kernlab - error message: array(0, c(n, p)) : 'dim' specifies too large an array
Hi, For another trainingset I get this error message, which again is rather cryptic to me: Setting default kernel parameters Error in array(0, c(n, p)) : 'dim' specifies too large an array RMate stopped at line 0 of selection Calls: rvm ... .local -> backsolve -> as.matrix -> chol -> diag -> array thanks for any suggestions!
2005 Dec 08
0
SF Beer & Dim Sum SIG (12/28) - !change of venue!
It turns out that the Long Island Chinese Restaurant has (a) moved and (b) changed its name (to "Wild Pepper"). So, please visit the SIG''s page (http://cfcl/rdm/beer_and_pizza) for new directions! -r -- email: rdm-go8te9J4rpw@public.gmane.org; phone: +1 650-873-7841 http://www.cfcl.com - Canta Forda Computer Laboratory http://www.cfcl.com/Meta - The FreeBSD Browser,
2007 Oct 07
2
@dim = Date.civil(2007,8,1).day fails on OS X
the above line of code always produces an "invalid date" when run via a controller on OS X, ROR v1.2.3 install via MacPorts. I ran the same controller on Kubunut 7 with no issue thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core"
2006 Apr 28
1
1-dim maximizing of windows
Salve, this is just to probe whether other fans of an unimplemented feature exist or what priority/difficulty compiz coders would assign to it. I constantly used ?maximize vertically? (and also ?maximize horizontally?) in Metacity when there wasn't enough space to see a portion of text in a terminal or another window. Assigned to <Super_R>Up/<Super_R>Right it was a powerful pair
2006 Apr 08
1
dim(x) error message in lme (nlme package)
Hello I am trying to analyse mortality data from fish larvae using lme from the package nlme as well as using lmer in the package lme4 Response is DeathDay Fixed factor is Treatment Random factors are Clucth, Cup Design: Cup nested in Clutch If I do this in lme, I use the syntax: model1 <- lme(DeathDay ~ Treatment, random=~ 1 | Clutch/Cup) summary(model1) I get the first part of the output,
1999 Feb 17
1
dim enquiry
This is a minor question, but is there any difference between the two objects fred <- structure(1:10, dim = c(2,5)) and fred <- structure(1:10, .Dim = c(2,5)) Should I be using one rather than the other? Thanks, Jonathan. Jonathan Rougier Science Laboratories Department of Mathematical Sciences South Road University of Durham Durham DH1 3LE