[R] Importing and exporting threedimensional arrays

2016-11-11 Thread Ferri Leberl
Dear all,   I want to process a list of XML-Elements. In one dimension the elements are listed; in the other their respective properties (name, comment, parent, children, attributes).   I am writing a script that processes such tables, and another one that produces sample tables to test the

[R] nlme & VarIdent

2016-11-11 Thread Louisell, Paul T PW
Hello, All the help I've read (including Pinheiro and Bates book, 'Mixed Effects Models in S and S-PLUS') regarding how to fit a linear mixed-effects model where variances change with a factor's levels indicates this is done through the 'weights' argument to 'lme', using something like

Re: [R] Help-Text file

2016-11-11 Thread PIKAL Petr
Hi I did not use BoolNet package, but from documentation it seems that function getAttractor requires object of class BooleanNetwork. However your object New Text Document1 has class [1] "tbl_df" "tbl""data.frame" This is probably the reason for error. But for the getAttractors

Re: [R] Importing and exporting threedimensional arrays

2016-11-11 Thread Rui Barradas
Hello, You can save 3D objects (or objects of any form or shape) by using ?save. You would then retrieve them with ?load. Hope this helps, Rui Barradas Em 11-11-2016 09:36, Ferri Leberl escreveu: Dear all, I want to process a list of XML-Elements. In one dimension the elements are listed;

Re: [R] Importing and exporting threedimensional arrays

2016-11-11 Thread Ferri Leberl
Thanks for your answer.   I'm afraid it doesn't.   The planned workflow should be:   Somebody delivers me a table containing the essential relations of an XML-schema in form of a list that should, once it is functional, be generated out of R. So I need a form that is as universal as possible —

Re: [R] Importing and exporting threedimensional arrays

2016-11-11 Thread Ulrik Stervbo
I think that setting the ascii argument in the save command to TRUE might give a human readable file. If it'll work for what you want to do later, I don't know HTH Ulrik On Fri, 11 Nov 2016 at 14:13 Ferri Leberl wrote: > > > Thanks for your answer. > > I'm afraid it

Re: [R] Gobbling up a repeating, irregular list of data

2016-11-11 Thread MacQueen, Don
Like Peter, I too will assume that all the white space consists of space characters, not tabs. In that case, I would probably start with read.fwf(). I would expect that to get me a data frame with lots of NA in the first four columns. Then (also like Peter says) you'll have to figure out how to

[R] How to remove box in Venn plots (Vennerable package, uses grid) - similar to bty="n" in standard plots

2016-11-11 Thread DE LAS HERAS Jose
I'm using the package Vennerable to make Venn diagrams, but it always makes a box around the diagram. Using standard R plots I could eliminate that by indicating bty="n" but it seems Vennerable uses the Grid package to generate its plots and I'm not really familiar enough with Grid. I was

Re: [R] nlme & VarIdent

2016-11-11 Thread Bert Gunter
I suggest that you post instead on the r-sig-mixed-models list which specializes in just this sort of query, and where you are therefore likely to receive a quicker more authoritative response. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along

Re: [R] Importing and exporting threedimensional arrays

2016-11-11 Thread Bert Gunter
Ferri: I am not sure that I adequately understand your question, but I'll give it a shot. 1) Do a Web Search on "long form data"; in particular, the following seemed to be most helpful, but you may prefer one of the other hits: http://stanford.edu/~ejdemyr/r-tutorials/wide-and-long/ 2) See

Re: [R] Alternative to "apply" in R 3.2.2

2016-11-11 Thread Ista Zahn
What makes you think " apply' does not work in R 3.2.2"? On Nov 11, 2016 6:24 PM, "Olu Ola via R-help" wrote: > Hello,I quite understand that apply is doing what it is supposed to do. I > actually found that example online. However, "apply" package is not > compatible with

Re: [R] Alternative to "apply" in R 3.2.2

2016-11-11 Thread Jeff Newmiller
The "apply" I am familiar with us a FUNCTION in base R, not a contributed package. That is to say, it is always available in R, not something you need to load. -- Sent from my phone. Please excuse my brevity. On November 11, 2016 3:39:53 PM PST, Olu Ola via R-help

Re: [R] Alternative to "apply" in R 3.2.2

2016-11-11 Thread Olu Ola via R-help
Here is the warning message that appears when I tried installing the apply package: install.packages("apply")Installing package into ‘C:/Users/Olufemi/Documents/R/win-library/3.2’(as ‘lib’ is unspecified)Warning in install.packages : package ‘apply’ is not available (for R version 3.2.2)

Re: [R] Alternative to "apply" in R 3.2.2

2016-11-11 Thread Olu Ola via R-help
Thank you. Regards On Friday, November 11, 2016 6:44 PM, Jeff Newmiller wrote: The "apply" I am familiar with us a FUNCTION in base R, not a contributed package. That is to say, it is always available in R, not something you need to load. -- Sent from my

Re: [R] Alternative to "apply" in R 3.2.2

2016-11-11 Thread Bert Gunter
Wow, you are quite confused! Have you gone through any basic R tutorials (there are many good ones on the web), as it sure looks like you have not and therefore have almost no idea how to use R. If that is the case, it is unlikely that this list (or R!) is going to be much use to you. Anyway,

Re: [R] Alternative to "apply" in R 3.2.2

2016-11-11 Thread Olu Ola via R-help
Hello,I quite understand that apply is doing what it is supposed to do. I actually found that example online. However, "apply" package is not compatible with R 3.2.2 and as a result, I could not use the code. That is why I am asking for an alternative to "apply" that can be used to do the same

Re: [R] Alternative to "apply" in R 3.2.2

2016-11-11 Thread MacQueen, Don
Df.1$D looks correct to me. For example, in the third row, 7*2=14 is correct with the NA removed. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 11/11/16, 12:45 PM, "R-help on behalf of Olu Ola via R-help"

Re: [R] Alternative to "apply" in R 3.2.2

2016-11-11 Thread Mark Sharp
Olu, I think you may have misread what na.rm is supposed to do. I think you are getting the correct value. If you want the vectors that contain NA values to be evaluated to NA then you will need to set na.rm to FALSE (which is the default for prod()). prod(c(7, 2, NA), na.rm = TRUE) [1] 14

[R] Alternative to "apply" in R 3.2.2

2016-11-11 Thread Olu Ola via R-help
Hello,I have a dataset that is similar to the one as follows: > Df.1 <- data.frame(A = c(5,4,7,6,8,4),B = > (c(1,5,2,4,9,1)),C=(c(2,3,NA,5,NA,9))) > Df.1 A B C 1 5 1 2 2 4 5 3 3 7 2 NA 4 6 4 5 5 8 9 NA 6 4 1 9 > Df.1$D = apply(Df.1, 1, prod, na.rm=T) > Df.1$D[1] 10 60 14 120 72 36 >

[R-es] Grupo de Usuarios de R de Madrid - Reunión 10-Nov...

2016-11-11 Thread Carlos Ortega
Hola, Por si es de vuestro interés. El material (videos y presentaciones) de la reunión del pasado jueves del Grupo de Madrid ya están disponibles aquí: http://madrid.r-es.org/39-jueves-10-de-noviembre-2016/ Gracias, Carlos Ortega [[alternative HTML version deleted]]

Re: [ESS] trouble with interactive SAS mode in ESS 13.09-1

2016-11-11 Thread Martin Maechler
Rear Ross, I will *NOT* be able to help with SAS problems, but is there really no way you could use a more current version of ESS ? 13.09 means Sept.2013 and this is a relatively long time in ESS-time scale. If you could use the last released version of ESS, 16.10, and still experience the