similar to: list to array

Displaying 20 results from an estimated 2000 matches similar to: "list to array"

2003 Mar 06
0
modifying ftable to allow percentages (wishlist) (PR#2606)
Full_Name: John Hendrickx Version: 1.6.2 OS: Windows XP Submission from: (NULL) (80.126.78.108) (This is not a bug report but a request to add a feature to future versions of R. Hope this is an appropriate place). I'd like to suggest adding an option to ftable to allow percentages. It would be easy to do and backwards compatible. Percentage tables are useful in educational contexts, whereas
2003 Oct 16
0
make error R-1.8.0 on SuSE Linux 7.3 (i386)
My first Problem is a minor one. Maybe some knows a reson. Pleas give me a hint off-line, as it seems to be something stupid. 1. I sent my first mail to r-help at lists.R-project.org and got Delivery Failure Report Your document: make error R-1.8.0 on SuSE Linux 7.3 (i386) was not delivered to: r-help at lists.R-project.org because: Delivery time expired I already had this problem
2020 May 15
0
ftable <-> data.frame etc {was "justify hard coded in format.ftable"}
>>>>> Gabor Grothendieck >>>>> on Thu, 14 May 2020 06:56:06 -0400 writes: > If you are looking at ftable could you also consider adding > a way to convert an ftable into a usable data.frame such as > the ftable2df function defined here: > https://stackoverflow.com/questions/11141406/reshaping-an-array-to-data-frame/11143126#11143126 > and there
2001 Jun 06
3
methods on missing data
Hello everybody! I have 2 >issues< concerning methods applied to missing data. I think they're bugs, but who knows. 1. var(NA) returns Error in var(NA) : missing observations in cov/cor instead of NA. I expanded the summary-function to my.summary including SDev, in order to use it with tapply, which crashes in case of groups with no valid data. 2. is a similar problem. I use
2010 Dec 02
1
latex tables for 3+ dimensional tables/arrays
I'm looking for an R method to produce latex versions of tables for table/array objects of 3 or more dimensions, which, of necessity is flattened to a 2D display, for example with ftable(), or vcd::structable, as shown below. I'd be happy to settle for a flexible solution for the 3D case. > UCB <- aperm(UCBAdmissions, c(2, 1, 3)) > ftable(UCB) Dept A B
2009 Oct 11
3
Error in family$family : $ operator is invalid for atomic vectors
Dear List, I'm having problem with an exercise from The R book (M.J. Crawley) on page 567. Here is the entire code upto the point where I get an error. data(UCBAdmissions) x <- aperm(UCBAdmissions, c(2, 1, 3)) names(dimnames(x)) <- c("Sex", "Admit?", "Department") ftable(x) fourfoldplot(x, margin = 2) dept<-gl(6,4) sex<-gl(2,1,24)
2013 Jul 04
0
Modificar una función de un paquete
Estimado Manuel Spíndola Del repositorio r descargo el paquete, me refiero a: Package source: vcd_1.2-13.tar.gz Descomprimo y busco el archivo que creo conveniente, en este caso copio y pego el código de mosaicplot A partir de ahí el trabajo es interpretar el código, copiar la parte útil, modificar lo conveniente, en fin, lleva tiempo pero se aprende mucho de esa forma, yo lo realice con
2002 Jan 30
1
mosaicplot(formula, data)--- bugged?
I have been tinkering with mosaicplot() and friends as a way of learning R. As part of this, I've written a pair.table() method for mosaic matrices, and would like to extend mosaicplot to work with loglin and logln (MASS) objects. I'm using R 1.4.0 on Win 98. I've been trying to figure out the formula interface, and think there's a bug, but not sure how to find it, yet alone fix
2008 Nov 13
1
Plotting from a list
Hello, I am working with version 2.7.2 on a PC and have 2.8.0 available, but have not upgraded completely yet. I have 6 species for which I've run 6 unique environmental management scenarios against for comparison purposes. Each scenario is run for 36 years (1965 - 2000). Some of the species have subpopulations and other do not. For those with subpopulations (A, B, C, D, E, and F) I have
2011 Jul 28
3
how to shift a chron timestamp by 6:30 hours
Dear help list, I have a timestamp in as a chron object: > (x <- chron(dates = c("12/02/11", "22/11/11"), + times = c("07:30:00", "04:00:00"), + format = c(dates = "d/m/y", times = "h:m:s"))) [1] (12/02/11 07:30:00) (22/11/11 04:00:00) Now I want to shift the timestamp by 06:30 (hh:mm) backwards, to get
2013 Jul 06
0
Modificar una función de un paquete
Muchas gracias Eva. Manuel 2013/7/5 Eva Prieto Castro <evapcastro@yahoo.es> > Hola, Manuel: > > Si descomprimes el tar.gz indicado por Marcuzzi, y accedes a la subcarpeta > R, en el archivo legends.R buscas la cadena p-value, y en el archivo > strucplot.R es donde creo que modificas el "Pearson residuals" (busca por > "Pearson\nresiduals"). > >
2009 May 27
1
Hierarchical glm with binomial family
Dear members of the R help list, I want to do a hierarchical glm with binomial family but am unsure about how to write the syntax which involves nesting. I want to test whether the risk of being attacked by Herbivores for Meadowsweet plants is significantly dependent on the Distance to heterospecific source plants. Dependent variable = Herbivory (yes/no) Explanatory continuous variable =
2001 Jun 07
2
once more: methods on missing data
Thanks for replies, but i was not precise enough. The problem is not evaluating statistics on data with NA values. The problem is evaluation of statistics on data with length = 0. To make the problem more clear this is what i tried: This works fine: tapply(as.numeric(c(NA,2)), as.factor(c("a","b")), summary) But i need SDev, aswell, so i copied summary.default to
2010 Dec 27
1
aperm() should retain class of input object
aperm() was designed for multidimensional arrays, but is also useful for table objects, particularly with the lattice, vcd and vcdExtra packages. But aperm() was designed and implemented before other related object classes were conceived, and I propose a small tune-up to make it more generally useful. The problem is that aperm() always returns an object of class 'array', which
2003 Feb 19
5
Subpopulations in Complex Surveys
Hi, is there a way to analyze subpopulations (e.g. women over 50, those who answered "yes" to a particular question) in a survey using Survey package? Other packages (e.g. Stata, SUDAAN) do this with a subpopulation option to identify the subpopulation for which the analysis shoud be done. I did not see this option in the Survey package. Is there another way to do this?
2020 May 13
7
justify hard coded in format.ftable
Dear all, I haven't received any feedback so far on my proposal to make "justify" argument available in stats:::format.ftable Is this list the appropriate place for this kind of proposal? I hope this follow-up to my message won't be taken as rude. Of course it's not meant to be, but I'm not used to the R mailing lists... Thank you in advance for your comments, Best,
2013 Mar 05
0
Patch for format.ftable()
Dear expeRts, Please find attached the .diff for a bug fix in R-devel 62124. format.ftable() fails to format ftable()s correctly which have no row.vars or no col.vars. That should work with the patch (the example code below also runs correctly for all the (new) 'method's). Cheers, Marius --8<---------------cut here---------------start------------->8--- (ft1 <- ftable(Titanic,
2010 Jul 26
2
the real dimnames
Hi, R seems to have a feature that isn't used much, which I don't really now how to call. But, the dimnames function, can in addition to giving names to rows/columns/dim 3 rows/dim 4 rows... can also give labels to the dimensions themselves. Thus, I can do: A = matrix(1:9,3,3) dimnames(A) = list(from=c(), to=c() ) and now, printing a prints these dimension labels nicely: > A
2010 Jul 29
1
Using 'dimname names' in aperm() and apply()
I think that the "dimname names" of tables and arrays could make aperm() and apply() (and probably some other functions) easier to use. (dimname names are, for example, created by table() ) The use would be something like: -- x <-table( from=sample(3,100,rep=T), to=sample(5,100,rep=T)) trans <- x / apply(x,"from",sum) y <- aperm( trans,
2012 Dec 17
2
Suggestion: 'method' slot for format.ftable()
Dear R-developers, I would like to suggest a 'method' slot for format.ftable() (see an adjusted 'format.ftable()' below, taken from the source of R-2.15.2). At the moment, format.ftable() contains several empty cells due to the way the row and column labels are printed. This creates problems (= unwanted empty columns/rows) when converting an ftable to a LaTeX table; see an