[R] wavelets

2011-07-03 Thread user123
I'm new to the topic of wavelets. When I tried to use the mra function in the wavelets package, the data is not getting compressed. eg. if the original data has 500 values , the output data also has the same. However in MATLAB, depending on the level of decompositon, the data gets compressed. How d

[R] R hangs. Uninstall/reinstall seems insufficient.

2011-07-03 Thread Eliot Miller
Hello, I'm running a Mac PowerBook G4 PowerPC with OSX 10.5.8 I was using R 2.12.xx with no problems. I tried to install R 2.13. Have never had any trouble with simply downloading the pkg and installing over previous versions. I did that, selected the packages I use regularly, set them to downl

Re: [R] RWinEdt problem

2011-07-03 Thread Simon Knapp
... I just tried fiddling with the appearance settings, and when I uncheck "Custom Colors" under "Document Tabs", the file names reappear, though I don't get the coloring I am used to (red for modified, green for unmodified). Thanks again, Simon Knapp On Mon, Jul 4, 2011 at 2:48 PM, Simon Knapp

[R] RWinEdt problem

2011-07-03 Thread Simon Knapp
Hi R Helpers, I am a long time RWinEdt user and have just acquired a new laptop. I have installed RWinEdt and things are going smoothly except for one small glitch - file names are not appearing on the document tabs. When I use WinEdt (as opposed to RWinEdt), they are appearing. Can anyone offer a

Re: [R] Hint improve my code

2011-07-03 Thread EdBo
Please also consider the code below. My attempt to loop through the rows of R_j so that I do not force if() to work on a vector. > llik <- function(par, R_j, R_m) { + al_j <- par[1] + au_j <- par[2] + sigma_j <- par[3] + b_j <- par[4] + + n=2 + runs=5 + est1=

[R] superimposing different plot types in lattice panel.superpose

2011-07-03 Thread genghis
I would like to plot 3 best-fit models in a single panel of a lattice plot, superimposed on 3 corresponding datasets in the same panel. My goal is to show the models as lines of 3 different colors, and the data as points whose colors correspond to the model colors. In essence, I have two levels o

Re: [R] covariance matrix TL-moments

2011-07-03 Thread J. R. M. Hosking
On 2011-07-03 04:48, osama hussien wrote: The backage lmoments computes the L-moments covariances. does anyone know a backage to compute the TL-moments covariances thank As far as I know the answer is no. But if you study the code of function varLmoments in package nsRFA and see how closely th

Re: [R] Hint improve my code

2011-07-03 Thread EdBo
Thank you for your kind responses. What I want my likelihood function to do is to look at each row and see if R_j is (> 0 or < 0 or == 0) then decide which of the three parts of the likelihood function apply to that row. At the end, it should use all that information to calculate the best estimat

Re: [R] PROBLEM IN R version 2.13.0 (2011-04-13)

2011-07-03 Thread Sergio Ivan Roman Ponce
Dear Josh This is the link of the reference manual: http://www.vsni.co.uk/downloads/asreml/release3/asreml-R.pdf The link to download the asreml-R is: http://www.vsni.co.uk/software/asreml/ I am still working on the code... Regards, > Sergio -Original Message- From: Joshua Wiley [m

Re: [R] Isolines in vector format

2011-07-03 Thread Ben Bolker
Antonio Rodriges gmail.com> writes: > I am working with netcdf data of NCEP/NCAR Climate Reanalysis. R does > have capability to draw isolines using "contour". However, I need not > to draw but to export contours in any vector format. Is it possible? See ?contourLines (you will have to writ

Re: [R] For help in R coding

2011-07-03 Thread David Winsemius
On Jul 3, 2011, at 6:10 PM, Bansal, Vikas wrote: So I want to code so that it will give the output like this- DATA FRAME (Input) Editing the task so it is reproducible: dat <- read.table(textConnection(' col3 col9 T .a,g,, A.t,t,,

Re: [R] For help in R coding

2011-07-03 Thread David Winsemius
On Jul 3, 2011, at 6:10 PM, Bansal, Vikas wrote: From: David Winsemius [dwinsem...@comcast.net] Sent: Sunday, July 03, 2011 7:08 PM the code is same i just want to add a condition so that it should check that if in column 3, the character is A

Re: [R] For help in R coding

2011-07-03 Thread Daniel Malter
Say you have the string x in a matrix x<-c('a,..gGGtTaachttp://r.789695.n4.nabble.com/For-help-in-R-coding-tp3639413p3642655.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/

Re: [R] For help in R coding

2011-07-03 Thread Bansal, Vikas
From: David Winsemius [dwinsem...@comcast.net] Sent: Sunday, July 03, 2011 7:08 PM To: Bansal, Vikas Cc: Dennis Murphy; r-help@r-project.org Subject: Re: [R] For help in R coding On Jul 3, 2011, at 1:07 PM, Bansal, Vikas wrote: > Yes you are right. unlist

Re: [R] PROBLEM IN R version 2.13.0 (2011-04-13)

2011-07-03 Thread peter dalgaard
On Jul 3, 2011, at 21:26 , Joshua Wiley wrote: > I could not find the "asreml" package on CRAN or bioconductor, so I > did not install it, but I can load all of the other packages without a > problem. If you post where to get the "asreml" package, I can try > that too. The asreml package is int

[R] VGAM constraints-related puzzle

2011-07-03 Thread Edward Wallace
Edward Wallace gmail.com> writes: > > Hello R users, > I have a puzzle with the VGAM package, on my first excursion into > generalized additive models, in that this very nice package seems to > want to do either more or less than what I want. > > Precisely, I have a 4-component outcome, y, and am

Re: [R] For help in R coding

2011-07-03 Thread David Winsemius
On Jul 3, 2011, at 1:07 PM, Bansal, Vikas wrote: Yes you are right. unlist operation is unnecessary and I have tried it yesterday and it is working without that operation also.But I have one more problem on which I have worked whole day but did not get any solution.As I told you I am new t

Re: [R] PROBLEM IN R version 2.13.0 (2011-04-13)

2011-07-03 Thread Joshua Wiley
I could not find the "asreml" package on CRAN or bioconductor, so I did not install it, but I can load all of the other packages without a problem. If you post where to get the "asreml" package, I can try that too. Cheers, Josh R version 2.13.0 (2011-04-13) Platform: x86_64-pc-mingw32/x64 (64-b

Re: [R] semi correlation

2011-07-03 Thread Dennis Murphy
An sos search indicated that the ppcor package might be of use: its description file says that it is for partial and semi-partial correlation. Is that what you had in mind? # install.packages('sos') library(sos) findFn('semi correlation') HTH, Dennis On Sun, Jul 3, 2011 at 9:33 AM, Assieh Rashid

[R] Isolines in vector format

2011-07-03 Thread Antonio Rodriges
Dear R users, I am working with netcdf data of NCEP/NCAR Climate Reanalysis. R does have capability to draw isolines using "contour". However, I need not to draw but to export contours in any vector format. Is it possible? Thank you. __ R-help@r-proje

Re: [R] For help in R coding

2011-07-03 Thread Bansal, Vikas
Yes you are right. unlist operation is unnecessary and I have tried it yesterday and it is working without that operation also.But I have one more problem on which I have worked whole day but did not get any solution.As I told you I am new to R,I want to ask that how I can use the (if condition)

Re: [R] Reverse legend label order in barplot

2011-07-03 Thread peter dalgaard
On Jul 2, 2011, at 02:14 , Marc Schwartz wrote: > > > Alternatively, You can use legend() separately to add the legend to the > barplot in the fashion that you desire. > > Thus: > > barplot(mat) > > legend("topright", legend = rownames(mat), > fill = grey.colors(nrow(mat))) > Yu

Re: [R] For help in R coding

2011-07-03 Thread David Winsemius
On Jul 3, 2011, at 1:07 PM, Bansal, Vikas wrote: Yes you are right. unlist operation is unnecessary and I have tried it yesterday and it is working without that operation also.But I have one more problem on which I have worked whole day but did not get any solution.As I told you I am new t

Re: [R] How many times occurs

2011-07-03 Thread Weidong Gu
another way of thinking is to turn the sequences into strings if your data is db >apply(db,1,function(x) length(gregexpr('892',paste(c(x),collapse=''))[[1]])) [1] 1 3 1 1 3 2 Weidong Gu On Sat, Jul 2, 2011 at 3:40 PM, Trying To learn again wrote: > Hi all, > > I have a data matrix likein "i

Re: [R] optim()

2011-07-03 Thread Berend Hasselman
Majdi wrote: > > The code that I am using is given by > > # compute the MLE for Normal(mu, var) > ### > > U<-rnorm(10,mean=1, sd=2) > Normal.lik<-function(theta, U){ > mu=theta[1] > var=theta[2] > n<-nrow(U) > logl<- -0.5*n*log(var)-(sum((U-mu)**2))/(2*var) >

[R] semi correlation

2011-07-03 Thread Assieh Rashidi
Hi, I want to know how i could calculate semi correlation with R. Is there any package for it? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guid

Re: [R] Rmpi fails to install

2011-07-03 Thread rose
Quoting r...@rz.uni-potsdam.de: Quoting Juergen Rose : Hi, I was just able to install the patched Rmpi on the second system with openmpi-1.5.3. What can we that Rmpi_0.5-9a.tar.gz becomes a standard CRAN package? Regards Juergen Now there is a new problem. Testing openmpi-1.5.3-r1 and Rmp

Re: [R] Speed Advice for R --- avoid data frames

2011-07-03 Thread Uwe Ligges
On 02.07.2011 21:35, ivo welch wrote: hi uwe---thanks for the clarification. of course, my example should always be done in vectorized form. I only used it to show how iterative access compares in the simplest possible fashion.<100 accesses per seconds is REALLY slow, though. I don't know R

Re: [R] Rmpi fails to install

2011-07-03 Thread rose
Quoting Juergen Rose : Hi, I was just able to install the patched Rmpi on the second system with openmpi-1.5.3. What can we that Rmpi_0.5-9a.tar.gz becomes a standard CRAN package? Regards Juergen Now there is a new problem. Testing openmpi-1.5.3-r1 and Rmpi_0.5-9a.tar.gz with the attached

Re: [R] using Arial font

2011-07-03 Thread David Winsemius
On Jul 3, 2011, at 5:13 AM, Daithi Murray wrote: To whom it may concern, I am e-mailing you concerning the use of Arial Font in the program R and I am using a mac. I am trying to create graphs in R and the publisher I wish to publish an article with needs the font to be Arial. I have tri

Re: [R] R for Windows - 5 stars award on Windows 7 Download

2011-07-03 Thread Ted Harding
Yes, Spam. Though apparently not seriously malicious (but with some malicious potential). See: http://www.google.com/safebrowsing/diagnostic?site=windows7download.com With thanks to David Winsemius for tracking this down. Certainly not an official Windows 7 site (hosted in Slovakia by writers of

Re: [R] R for Windows - 5 stars award on Windows 7 Download

2011-07-03 Thread John Kane
SPAM? --- On Sat, 7/2/11, Windows 7 Download wrote: > From: Windows 7 Download > Subject: [R] R for Windows - 5 stars award on Windows 7 Download > To: "R Development Core Team" > Received: Saturday, July 2, 2011, 4:51 PM > Dear R Development Core Team > > We are more than happy that Windows

Re: [R] Error with package xlsx

2011-07-03 Thread David Winsemius
On Jul 3, 2011, at 8:24 AM, David Winsemius wrote: On Jul 3, 2011, at 12:51 AM, Sergio Mira wrote: Hi, Could anyone help me with this error? I have no idea what that is about... file <- system.file("DADOSCASUMCCORMICK.xlsx", package = "xlsx") > data <- read.xlsx(file, 1) Error in .jne

Re: [R] Error with package xlsx

2011-07-03 Thread David Winsemius
On Jul 3, 2011, at 12:51 AM, Sergio Mira wrote: Hi, Could anyone help me with this error? I have no idea what that is about... file <- system.file("DADOSCASUMCCORMICK.xlsx", package = "xlsx") > data <- read.xlsx(file, 1) Error in .jnew("java/io/FileInputStream", file) : java.io.FileNot

Re: [R] How many times occurs

2011-07-03 Thread Gabor Grothendieck
On Sat, Jul 2, 2011 at 3:40 PM, Trying To learn again wrote: > Hi all, > > I have a data matrix likein "input.txt" > > 8 9 2 5 4 5 8 5 6 6 > 8 9 2 8 9 2 8 9 2 1 > 8 9 2 5 4 5 8 5 6 4 >  8 9 2 5 4 5 8 5 6 6 > 8 9 2 8 9 2 8 9 2 1 > 8 9 2 5 4 5 8 9 2   2 > > > In this example will be an  6x10 matrix

Re: [R] PROBLEM IN R version 2.13.0 (2011-04-13)

2011-07-03 Thread Duncan Murdoch
On 11-07-03 7:21 AM, Sergio Ivan Roman Ponce wrote: I am using R (version 2.13.0; 2011-04-13). Platform: x86_64-pc-mingw32/x64 (64-bit). The messages that I see is “This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team f

[R] PROBLEM IN R version 2.13.0 (2011-04-13)

2011-07-03 Thread Sergio Ivan Roman Ponce
I am using R (version 2.13.0; 2011-04-13). Platform: x86_64-pc-mingw32/x64 (64-bit). The messages that I see is “This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information” I am using the following li

[R] PROBLEM IN R version 2.13.0 (2011-04-13)

2011-07-03 Thread Sergio Ivan Roman ponce
I am using R (version 2.13.0; 2011-04-13). Platform: x86_64-pc-mingw32/x64 (64-bit). The messages that I see is “This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information” I am using the following li

Re: [R] How many times occurs

2011-07-03 Thread Trying To learn again
I suppose the easiest way to make this is to use loops and construct a zero matrix to be completed each time the sequence accompleixes, don´t you? I will try this evening¡¡¡ 2011/7/2 Trying To learn again > Hi all, > > I have a data matrix likein "input.txt" > > 8 9 2 5 4 5 8 5 6 6 > 8 9 2 8

[R] help for hierarchial regression output

2011-07-03 Thread stamkiral
hi everybody, Im struggeling with hierarchial regression analysis. I need some need to interpret output consider this is my hierarchial regression analysis output: http://www.hizliupload.com/img/88056685462955425818.jpg ı want to ask question about how to interpret 2 way interaction. both in

[R] using Arial font

2011-07-03 Thread Daithi Murray
To whom it may concern, I am e-mailing you concerning the use of Arial Font in the program R and I am using a mac. I am trying to create graphs in R and the publisher I wish to publish an article with needs the font to be Arial. I have tried looking around to find out how to do this with no luck

[R] covariance matrix TL-moments

2011-07-03 Thread osama hussien
The backage lmoments computes the L-moments covariances. does anyone know a backage to compute the TL-moments covariances thank -- Osama Abdelaziz Hussien Department of Statistics Faculty of Commerce Alexandria University Egypt __ R-help@r-project.org

Re: [R] How many times occurs

2011-07-03 Thread Rainer Schuermann
Sorry, I forgot to attach the original post, so here once more with a cosmetic change: x <- as.matrix( read.table( "matr.txt") ) bingo <- 0 for( i in 1:dim( x )[1] ) { for( j in 1:dim( x )[2] - 2 ) { if( x[i,j] == 8 && x[i,j+1] == 9 && x[i,j+2] == 2 ) { bingo <- bingo + 1