[R] Elementary Symmetric Polynomials

2009-07-21 Thread Austin H. Jones
. Any suggestions? Thanks ahead of time for any help you can offer, Austin H. Jones Department of Mathematics Wake Forest University f<-function(v) { prodsub<-function(v,q){prod(v[q])} t<-length(v) C<-vector("list",t) for (i in 1:t) {C[[i]]<-combn(1:t,i)} e<-rep(0,t)

[R] R package checking error.

2010-03-29 Thread Dong H. Oh
Dear useRs, I am trying to build my package (nonpareff) which deals with some models of data envelopment analysis. The building worked well, but checking complains when it tests examples. Zipped nonparaeff.Rcheck is attached. Following is the log. - a

[R] Error when checking a package.

2010-03-29 Thread Dong H. Oh
Dear useRs, I am trying to build my package (nonpareff) which deals with some models of data envelopment analysis. The building worked well, but checking complains when it tests examples. Zipped nonparaeff.Rcheck is attached. Following is the log. - a

[R] Free Introductory R Course Taught Over the Web

2009-10-13 Thread Paul H Geissler
ease contact us for more information. Comments and suggestions will be very welcome. Cheers, Paul --- Paul H. Geissler, Ph.D. USGS Status & Trends of Biological Resources Program Coordinator, National Park Monitoring Projec

Re: [R] reading geotiff into Splus or R

2009-06-19 Thread B. H. Braswell
Hi Scott, Have you tried rgdal? http://cran.r-project.org/web/packages/rgdal/index.html Rob -- Rob Braswell University of New Hampshire On Jun 19, 2009, at 10:48 AM, Scott Saleska wrote: I am looking for an easy way to import data in a GEOTIFF file into Splus or R. Any suggestions? Tha

Re: [R] rgdal package -- Error in installing package

2009-06-24 Thread B. H. Braswell
$ sudo R > install.packages(rgdal) worked for me on my Ubuntu machine but, I already had GDAL library installed with $ sudo apt-get install libgdal1-1.5.0 -- B. H. Braswell (Rob) University of New Hampshire On Jun 24, 2009, at 9:24 AM, Luis Ridao Cruz wrote: R-help, I'm trying to

[R] weighted mean and by() with two index

2009-04-13 Thread Dong H. Oh
Hi expeRts, I would like to calculate weighted mean by two factors. My code is as follows: R> tmp <- by(re$meta.sales.lkm[, c("pc", "sales")], re$meta.sales.lkm[, c("size", "yr")], function(x) weighted.mean(x[,1], x[,2])) The result is as follows: R>

[R] False convergence error with lmer (package lme4) - What does it mean?

2009-04-15 Thread Peter H Singleton
Hello, I've run 7 candidate models using mixed-effects logistic regression with the lmer function from the lme4 package, and I'm getting the following error for 5 of those models: Warning message: In mer_finalize(ans : false convergence (8). The candidate models all run with the same data, just

[R] Can't compile R 2.10.1 on AIX

2010-02-03 Thread Waldron, Michael H
I'm trying to compile R 2.10.1 on AIX, and getting the following errors when it is trying to build the tools package: Error in read.dcf(file = descfile) : Line starting 'Package: tools ...' is malformed! Calls: makeLazyLoading ... code2LazyLoadDB -> loadNamespace -> parseNamespaceFile -> read

[R] Conditional Logistic Regression with Multilevel Data [using clogistic() in Epi and lmer() in lme4???]

2019-07-02 Thread Heather H Kettrey
I need to run some conditional logistic regression models on a multilevel matched dataset (propensity score matched data from multiple research sites). I can pretty easily use the clogistic() function in the Epi package to run conditional logistic regression models on each separate/nested subse

Re: [R] Conditional Logistic Regression with Multilevel Data [using clogistic() in Epi and lmer() in lme4???]

2019-07-03 Thread Heather H Kettrey
). Is this understanding correct? Thanks, Heather Heather Hensman Kettrey, PhD Assistant Professor of Sociology Clemson University From: Wolfgang Viechtbauer Sent: Wednesday, July 3, 2019 9:15:50 AM To: Marc Schwartz Cc: Heather H Kettrey; R-help Subject: Re

Re: [R] Conditional Logistic Regression with Multilevel Data [using clogistic() in Epi and lmer() in lme4???]

2019-07-03 Thread Heather H Kettrey
3, 2019 1:05:29 PM To: Marc Schwartz; Heather H Kettrey Cc: R-help Subject: Re: [R] Conditional Logistic Regression with Multilevel Data [using clogistic() in Epi and lmer() in lme4???] No need to install metafor for lme4. Best, Wolfgang On July 3, 2019 5:19:13 PM GMT+02:00, Marc Schwartz

[R] upgrade from R 3.6.3 to 4.0.0

2020-04-29 Thread Carlos H. Mireles
Hello everyone, I'm trying to upgrade R from 3.6.3 to 4.0.0 using the linux terminal commands (sudo apt upgrade r-base r-base-dev) but I get a message that says 3.6.3 is still the latest version. Please see the output below. How could I fix this? Thanks much for your help! Carlos ===

Re: [R] vectorization & modifying globals in functions

2012-12-27 Thread Neal H. Walfield
At Thu, 27 Dec 2012 15:38:08 -0500, Sam Steingold wrote: > so, > 1. is there a way for a function to modify a global variable? Use <<- instead of <-. > 2. how would you vectorize this loop? This is hard. Your function has a feedback loop: an iteration depends on the previous iteration's result.

Re: [R] parallel error message extraction (in mclapply)?

2012-12-29 Thread Neal H. Walfield
Hi, Ivo, At Fri, 28 Dec 2012 16:34:03 -0800, ivo welch wrote: > so, it isn't obvious to me how I get to the try-error object > list, or how to find out what triggered the abort. A try object is an object that captures the execution context at the time of an error. Consider the following code:

Re: [R] How to multiple the vector and variables from dataframe

2012-12-30 Thread Neal H. Walfield
At Sun, 30 Dec 2012 18:26:45 +0800 (CST), meng wrote: > > hi all: > Here's a dataframe(dat) and a vector(z): > > dat: > x1 x2x3 > 0.2 1.2 2.5 > 0.5 2 5 > 0.8 3 6.2 > > > z > [1] 10 100 100 > > I wanna do the following: > 10*x1,100*x2,1000*x3 > > My solution is us

Re: [R] How to multiple the vector and variables from dataframe

2012-12-30 Thread Neal H. Walfield
ou mean multiplied by element. Here's a better solution using t to transpose the matrix: dat=data.frame(x1=1:3, x2=11:13) as.matrix(dat) x1 x2 [1,] 1 11 [2,] 2 12 [3,] 3 13 t(as.matrix(dat)) * c(2, 3) [,1] [,2] [,3] x1246 x2 33 36 39 > > Andrius >

Re: [R] group values in classes

2012-12-31 Thread Neal H. Walfield
At Mon, 31 Dec 2012 12:13:43 +0200, catalin roibu wrote: > > Dear R users, > I want to group numerical values in classes with different size and count > the values for each classes. > > My data is in this forma: > d 15 12,5 30,4 20,5 80,4 100,5 8,2 40,5 33 21 11 > And I want the group

Re: [R] Installing R-2.15.2 in Debian Wheezy/Testing

2012-12-31 Thread Neal H. Walfield
At Mon, 31 Dec 2012 15:38:10 -0500, Stephen P. Molnar wrote: > The current version of R that is available in Wheezy is 2.15.1. However, > version 2.15.2 is available at CRAN sites. > ... > My question is what should be the format of the line in the sources.lists? Here's what I have: deb http:/

Re: [R] cut ()

2012-12-31 Thread Neal H. Walfield
At Mon, 31 Dec 2012 22:25:25 +, Muhuri, Pradip (SAMHSA/CBHSQ) wrote: > The issue is that, for Utah, I am getting an instead of (42,48.7] in the > ob_mrj_cat column. The problem is likely due to comparisons of floating point numbers. Try moving your lower and upper bounds out a tiny bit. Whe

Re: [R] cut ()

2013-01-01 Thread Neal H. Walfield
At Tue, 1 Jan 2013 02:00:14 +, Muhuri, Pradip (SAMHSA/CBHSQ) wrote: > Although David's solution (putting the right parenthesis, which I had missed) > has resolved the issue, I would like to try yours as well. > > Could you please clarify the six elements: c(-1e-8, 0, 0, 0, 0, 1e8)? It's a v

Re: [R] Working with Matrix

2013-01-04 Thread Neal H. Walfield
At Fri, 4 Jan 2013 17:17:40 +0530, Christofer Bogaso wrote: > > Hello again, > > Let say I have 2 matrices which equal number of columns but different > number of rows like: > > Mat1 <- matrix(1:20, 4, 5) > Mat2 <- matrix(1:25, 5, 5) > > Now for each column 1-to-5 I need to fetch the correspond

Re: [R] Combinations

2013-03-15 Thread Neal H. Walfield
At Fri, 15 Mar 2013 09:22:15 -0400, Amir wrote: > I have two sets T1={c1,c2,..,cn} and T2={k1,k2,...,kn}. > How can I find the sets as follow: > > (c1,k1), (c1,k2) ...(c1,kn) (c2,k1) (c2,k2) (c2,kn) ... (cn,kn) I think you are looking for expand.grid: expand.grid(1:3, 10:13) Var1 Var2 1

[R] Variance Inflation Factor VIC() with a matrix

2012-09-20 Thread Martin H. Schmidt
vif.lm(reg) : model contains fewer than 2 terms Is there a solution or a way to work around? Thank you very much in advanced. -- Kind Regards, Martin H. Schmidt Humboldt University Berlin __ R-he

Re: [R] Cannot Launch R Help Files under Window 8.1

2014-05-26 Thread Jack H. Pincus
Thanks for your suggestions. I did some further digging and found the problem was more subtle. I use Dashlane, a password management program, which requires IE to run in protected mode under Win 8. Disabling protected mode solved the problem with R help. Jack > On May 26, 2014, at 12:02 AM, J

Re: [R] Cannot Launch R Help Files under Window 8.1

2014-05-26 Thread Jack H. Pincus
Thanks Gabor. I'll try that. Jack Sent from my iPad > On May 26, 2014, at 2:40 PM, Gabor Grothendieck > wrote: > > On Mon, May 26, 2014 at 8:53 AM, Jack H. Pincus > wrote: >> Thanks for your suggestions. I did some further digging and found the >> problem

[R] evaluate a string variable

2010-06-29 Thread Jeremiah H. Savage
Hello, I was wondering how to evaluate a string variable in R. eg. > avar <- "getwd()" > eval(avar) gives: [1] "getwd()" but I would like to see: [1] "/home/myhomedir" Thanks, Jeremiah __ R-help@r-project.org mailing list https://stat.ethz.ch/mailm

[R] nonlinear curve fit of an implicit function

2010-10-05 Thread Schmitt, H. (Heike)
Hello, I want to perform a nonlinear curve fit in order to obtain parameter estimates from experimentally determined data (y in dependence of x), but with an implicit function, thus, a function of which I cannot isolate y on the left-hand side of the equation. As far as I understand, the function

[R] Retrieving Factors with Levels Ordered

2010-12-31 Thread H. T. Reynolds
Hello (and Happy New Year), When I create a factor with labels in the order I want, write the data as a text file, and then retrieve them, the factor levels are no longer in the proper order. Here is what I do (I tried many variations): # educ is a numeric vector with 1,001 observations. # The

Re: [R] Retrieving Factors with Levels Ordered

2011-01-01 Thread H. T. Reynolds
Thanks to one and all. I now have a better understanding of the situation. Original message >Date: Sat, 1 Jan 2011 11:03:59 -0500 >From: David Winsemius >Subject: Re: [R] Retrieving Factors with Levels Ordered >To: h...@udel.edu >Cc: r-help@r-project.org > > &

[R] subset of string by index

2010-08-08 Thread david h shanabrook
How can I get a substring based on the index into the string? strM <- c("abcde", "cdefg") ind <- c(1,3,5) I want to use ind to index into the strings so the result is: strMind <- c("ace", "ceg") __ R-help@r-project.org mailing list https://stat.ethz.c

[R] subset of string by index

2010-08-08 Thread david h shanabrook
How can I get a substring based on the index into the string? strM <- c("abcde", "cdefg") ind <- c(1,3,5) I want to use ind to index into the strings so the result is: strMind <- c("ace", "ceg") __ R-help@r-project.org mailing list https://stat.ethz.c

[R] efficient matrix element comparison

2010-08-08 Thread david h shanabrook
It is a simple problem in that I simply want to convert the For loop to a more efficient method. It simply loops through a large vector checking if the numeric element is not equal to the index of that element. The following example demonstrates a simplified example: > rows <- 10 > collusionM

[R] incrementing matrix elements more efficiently

2010-08-14 Thread david h shanabrook
I need to increment cells of a matrix (collusionM). The indexes to increment are in an index (matchIndex). This is some of the code for (j in 1:(rows-1)) matchIndex[[j]] <- which(mx[j]==mx) for (j in 1:(rows-1)) collisionM[j,matchIndex[[j]]] <- collisionM[j,matchIndex[[j]]] + 1

[R] incrementing matrix elements more efficiently

2010-08-14 Thread david h shanabrook
I need to increment cells of a matrix (collusionM). The indexes to increment are in an index (matchIndex). This is sample code library(seqinr) library(Matrix) x <- "abcabcabc" mx <- s2c(x) collisionM <- Matrix(0,nrow=10, ncol=10, sparse=TRUE) matchIndex <- list() rows <-

[R] spare matrix replacing values efficiently

2010-08-22 Thread david h shanabrook
I am working with a large sparse matrix trying replace all 1 values with 0. The normal method doesn't work. Here is a small example: > x <- Matrix(0,nrow=10,ncol=10,sparse=TRUE) > x[,1] <- 1:2 > x 10 x 10 sparse Matrix of class "dgCMatrix" [1,] 1 . . . . . . . . . [2,] 2 . . . . . . . . . [3,]

[R] glmnet package: penalty.factor option

2011-04-27 Thread Brian H. Chen
Anyone have experience specifying the "penalty.factor" option in the "glmnet" command? I have 3 variables (out of a million genotype variables) that I want to force into the model (i.e., set penalty factor to 0), but I can't figure out how to do that. [[alternative HTML version deleted]]

[R] quick help needed: split a number and "find and replace" type of function that works like in MS excel

2011-05-01 Thread Ram H. Sharma
rted to "AB". I tried with car but it very slow as I need to very large dataframe. Thanks; -- Ram H [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] quick help needed: split a number and "find and replace" type of function that works like in MS excel

2011-05-01 Thread Ram H. Sharma
t;non-obvious" use of '[' as R> ct1b <- sapply(ct1.char, '[', 2) ## a function is intentional :-) Can anybody help me to get solution out of it? Ram H On Sun, May 1, 2011 at 5:03 PM, Steve Lianoglou < mailinglist.honey...@gmail.com> wrote: > Hi, > &g

[R] pls help: lattice graph with both negative and positive value, x and y cross at 0 and negative value bars are plotted just oppositive direction in contrast to positive

2011-05-15 Thread Ram H. Sharma
, y = list(rot= 90, font = 1, cex = 1) )) The output is not what I want. I want the orientation of graph like the following in base R but axis label are in Y axis line and other parameters as in lattice: barplot(Y, names.arg = X) I know this is simple question, but I could not find a true solution.

[R] Insert variable in RMySQL-Statement

2011-02-09 Thread Arne H. Schulz
Dear list, I'm working with a MySQL-Table and would like to extract selected ids that are stored in a vector: Ids <- c(1,2,3) How do I insert this variable in a for loop like this: For (a in values) { Temp <- dbGetQuery(con, "select * from db Where

[R] lme in loop help

2011-02-25 Thread Ram H. Sharma
Dear R users I am new R user, execuse me I bother you, but I worked hard to find a solution: # data ID <- c(1:100) set.seed(21) y <- rnorm(100, 10,2) x1 <- rnorm(100, 10,2) x2 <- rnorm(100, 10,2) x3 <- rnorm(100, 10,2) x4 <- rnorm(100, 10,2) x5 <- rnorm(100, 10,2) x6 <- rnorm(100, 10,2) mydf <- d

[R] Compiling R-2.12.1 with gcc 3.4.6 on Sun Sparc Solaris 10

2011-02-25 Thread Ted . H . Fong
Dear R-HELP, We are compiling R-2.12.1 for 64 bits onto a Sun Sparc machine below: SunOS 5.10 Generic_142900-13 sun4u sparc SUNW,Netra-T12 The source was compiled successfully with "gcc version 3.4.6" by using the default configuration and has produced R-2.12.1 in 32 bits. Compiling R-2.12.1 fo

[R] Compiling R-2.12.1 with gcc 3.4.6 on Sun Sparc Solaris 10

2011-02-25 Thread Ted . H . Fong
Dear R-HELP, We are compiling R-2.12.1 for 64 bits onto a Sun Sparc machine below: SunOS 5.10 Generic_142900-13 sun4u sparc SUNW,Netra-T12 The source was compiled successfully with "gcc version 3.4.6" by using the default configuration and has produced R-2.12.1 in 32 bits. Compiling R-2.12.1 fo

[R] replace with quantile value for a large data frame...

2011-03-13 Thread Ram H. Sharma
Dear R-Experts I am sure this might look simple question for experts, at least is problem for me. I have a large data frame with over 1000 variables and each have different distribution( i.e. have different quantile). I want to create a new grouped data frame, where the new variables where the val

[R] help please: put output into dataframe

2011-03-17 Thread Ram H. Sharma
Dear R community members I have been struggling on this simple question, but never get appropriate solution. So please help. # my data, though I have a large number of variables var1 <- rnorm(500, 10,4) var2 <- rnorm(500, 20, 8) var3 <- rnorm(500, 30, 18) var4 <- rnorm(500, 40, 20) datafr1 <- da

Re: [R] help please: put output into dataframe

2011-03-18 Thread Ram H. Sharma
-3.736066 -3.471752 > [2,] 17.37176 34.929800 62.969733 80.224799 > > apply(datafr1, 2, range) > var1 var2 var3 var4 > [1,] -2.668841 -10.23848 -22.13500 -22.93678 > [2,] 21.803714 40.48186 87.02953 91.92733 > > Assuming you wanted to do this columnwise

Re: [R] help please: put output into dataframe

2011-03-18 Thread Ram H. Sharma
n each element and it is also in a form that you can easily > process it to create whatever other output you might need. > > On Fri, Mar 18, 2011 at 7:24 AM, Ram H. Sharma > wrote: > > Hi Dennis and R-users > > > > Thank you for more help. I am pretty close, but challeng

Re: [R] help please: put output into dataframe

2011-03-18 Thread Ram H. Sharma
in each element and it is also in a form that you can easily > process it to create whatever other output you might need. > > On Fri, Mar 18, 2011 at 7:24 AM, Ram H. Sharma > wrote: > > Hi Dennis and R-users > > > > Thank you for more help. I am pretty close, but chal

[R] problem in simple saving and loading data frames

2011-03-28 Thread Ram H. Sharma
Dear all My dataframe has > 80,000 variables which I can not everytime load into R using *.txt files (read.table option), cost me time and sometime computer decomes not responsive. So I need a way to save my dataframe in my workdirectory as such. Execuse me if the problem is too simple. I tried t

Re: [R] problem in simple saving and loading data frames

2011-03-28 Thread Ram H. Sharma
Thank you David and Dennis On Mon, Mar 28, 2011 at 3:43 PM, David Winsemius wrote: > > On Mar 28, 2011, at 11:20 AM, Ram H. Sharma wrote: > > Dear all >> >> My dataframe has > 80,000 variables which I can not everytime load into R >> using *.txt files (rea

[R] reading from text file that have different rowlength and create a data frame

2011-04-04 Thread Ram H. Sharma
at my data.frame would look like the follows: Var1 Var2 Var3 Var4 0 0.05 0.0112 1 0.04 0.0618 2 0.05 0.0814 3 0.01 0.0615 4 0.05 0.07 14 -- Thank you in advance for t

[R] loop and sapply problem, help need

2011-04-09 Thread Ram H. Sharma
etermined by PR1[1] indicator determines whether to pick lcd1[1] or lcd2[1] or lcd3[1] element similarly for PR1[2] indicator whether to pick lcd1[2] or lcd2[2] or lcd3[2] element The same process need to be continued other PR2 to PR10 variables. That's why I attempted to use sapply. Thank you f

Re: [R] loop and sapply problem, help need

2011-04-09 Thread Ram H. Sharma
13 5 22 11 12 12 11 11 22 Thank you; Ram H On Sat, Apr 9, 2011 at 4:13 PM, Phil Spector wrote: > Ram - > I think you'll have to explain what you're trying to do. > First, you're creating a 10x10 matrix newd, which could > be done a bit more efficiently by using

[R] model specification: help needed

2011-04-11 Thread Ram H. Sharma
to mixed model forum but I did not get any response. Sorry to post all of you, but my hope is my question is simple enough and bigger R community can help me ! Ram H -- Ram H [[alternative HTML version deleted]] __ R-help@r-project.org

[R] split string into individual valus while reading in R

2011-04-12 Thread Ram H. Sharma
;") How can I read this into table where columns first five column are maintained as such (e.g. 1_1 ch1 0.0 H ) where as the long single column (filled with A, H, B) split into individual columns. Or alternatively first read using the following command and then able to split the variable

Re: [R] split string into individual valus while reading in R

2011-04-13 Thread Ram H. Sharma
Sorry NULL in V8 should be corrected as NA On Wed, Apr 13, 2011 at 7:33 AM, Ram H. Sharma wrote: > It looks like my question is not clear, I have not get any suggestion, yet > let me reiterate my problem: > > My data looks like this to be read from a text file. As I provided earlie

Re: [R] split string into individual valus while reading in R

2011-04-13 Thread Ram H. Sharma
It looks like my question is not clear, I have not get any suggestion, yet let me reiterate my problem: My data looks like this to be read from a text file. As I provided earlier the A, B, and H in V4 column has much longer chain. V1 V2 V3V4 1_1ch1 0.0 AHAH 1_2

[R] extract p-value from mixed model in kinship package

2011-04-13 Thread Ram H. Sharma
ct number of dimensions I can extract fixed effects as well as I do in lme4  b <- fixef(fit1) Error in UseMethod("fixef") :   no applicable method for 'fixef' applied to an object of class "lmekin" -- Ram H __ R-help@r-proj

[R] no solution yet, please help: extract p-value from mixed model in kinship package

2011-04-15 Thread Ram H. Sharma
gt; > P <- vector (mode="numeric", length = 1000) > > P[i] <- lmekin(yvar~ mydata[,i] , data= mydata, random = ~1|id, > varlist=list(kmat)) $coefficients[2,4] > > } > > Same errors: I tried lme4 conventioned but did not work ! > I can extract fixed

[R] -log10 of 0

2011-08-28 Thread Ram H. Sharma
me to go further in the function and out me the error. You help is highly appreciated. Thanks; -- Ram H [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] -log10 of 0

2011-08-28 Thread Ram H. Sharma
Thank you Ted and David for prompt reply. I can accept Inf but can not use for plotting, which I intend to do. May be I can add 1/(10^308), so that if something comes to 0 will be in -log10 scale be 308. Ram H On Sun, Aug 28, 2011 at 12:12 PM, Ted Harding wrote: > On 28-Aug-11 15:37:06, Ra

[R] generate correlated qualitative data

2011-08-31 Thread Ram H. Sharma
i.e. X1 and X2 has correlation of 0.5, X2 and X3 has also correlation of 0.5 and X3 and X4 has correlation of 0.5 and so on. I have already spend considerable time on it, that is how I got to the group, sorry for that. -- Ram H [[alternative HT

[R] UNSOLVED: Fwd: generate correlated qualitative data

2011-08-31 Thread Ram H. Sharma
The problem remain unsolved. If you have any idea please do suggest thank you; Ram H On Wed, Aug 31, 2011 at 12:06 PM, Ram H. Sharma wrote: > Dear R experts: > > I have following problem: > > # myfunction > mfun1 <- function(x) { >if ( x == 2)

[R] output and save multiple dataset from a function: sorry I could not figure out this....

2011-09-04 Thread Ram H. Sharma
save individual Rdata sets and load it using load ("my.Rdata") function. It is more fast this way. But could not figure out how to do it !!! In above function I have put # some of my attempt to solve this problem Any suggestions

[R] Rgraphviz installation problem

2011-07-25 Thread Ram H. Sharma
further questions on the Bioconductor mailing list http://bioconductor.org/docs/mailList.html Error: package/namespace load failed for 'Rgraphviz' Help me please. -- Ram H [[alternative HTML version deleted]] __ R-help@r-pr

[R] Fwd: Rgraphviz installation problem

2011-07-25 Thread Ram H. Sharma
ted once you've installed graphviz and before installing Rgraphviz" -- Forwarded message -- From: Martin Morgan Date: Mon, Jul 25, 2011 at 9:25 AM Subject: Re: [R] Rgraphviz installation problem To: "Ram H. Sharma" Cc: r-help@r-project.org On 07/25/2011 06:05 AM, R

Re: [R] Fwd: Rgraphviz installation problem

2011-07-25 Thread Ram H. Sharma
Hi Martin Thank you for help, that helped me to come out the problem ! On Mon, Jul 25, 2011 at 11:46 AM, Martin Morgan wrote: > On 07/25/2011 07:58 AM, Ram H. Sharma wrote: > >> Hi All >> >> How can I adjust this path. My current path of Graphviz installation is: >

[R] lattice overlay

2011-07-27 Thread Ram H. Sharma
;red") }, as.table=T, subscripts=T) Thank you; -- Ram H [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/

[R] not working yet: Re: lattice overlay

2011-07-28 Thread Ram H. Sharma
;red", ylim= c(0,10) ) panel.lmline(iris$Petal.Length [subscripts], iris$Petal.Width [subscripts], col = "red") }, as.table=T, subscripts=T) Help please: From: Dieter Menne > Date: Wed, Jul 27, 2011 at 8:44 AM > Subject: Re: [R] lattice overlay > To: r-help@r-project.o

[R] Fwd: The StructTS method

2012-03-23 Thread Fretheim, Alexander H
To whomever it may concern, I'm a young Industrial Engineer working on Senior Design at Georgia Tech and have found the StructTS method to be excellent for the training set for my forecasting project. There's only one problem: I don't actually understand what a Structural Time Series IS

[R] One last thing

2012-03-27 Thread Fretheim, Alexander H
Dear R, Thanks for helping me locate the source for the StructTS method from stats, but I've run in to a roadblock in reverse engineering it to locate a formula for its forecasting because it calls some compiled C code, a function called KalmanLike. I've looked through that R library that

[R] Help with stemDocument

2012-04-13 Thread Deborah H. Deng
Hi, All: I am new to R and tm package. I'm trying to do the stemming using tm_map() and it doesn't seem to work: *I used:* > stemDocument(t_cmts[[100]]) *Where t_cmts is the corpus object, the results is:* bottle loose box abt airpak sections top plastic bottle squashed nearly flush neck previo

Re: [R] Bayesian data analysis recommendations

2012-01-20 Thread H. T. Reynolds
You might look at John Kruschke's book, Doing Bayesian Data Analysis (AP), which starts with basics and goes from there. It also relies on R and Bugs. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the p

Re: [R] Need to Write a Code that can find the molecular weight of various compounds

2012-02-02 Thread H. Paul Benton
Matthew, My Fault I should have sent you to the current release cycle page. The link was for the old 2.6 Bioconductor release, sorry about that. :( Personally the easies way to install any bioconductor package is to open R copy and paste the following code: source("http://bioconductor.org/bioc

Re: [R] Evidence Theory in R

2008-05-28 Thread H. W. Borchers
Lars Fischer sec.informatik.tu-darmstadt.de> writes: > Hello, > > well, I searched list-archive, cran and the references, but found > nothing. Thus: > > Does anybody around here know anything about Dempster-Shafer Theory, > Evidence Theory or Hints in R? Has anybody stumbled about a package tha

[R] JGR / linux

2008-06-03 Thread g-h-d
Hi all, i'm trying to install JGR on linux (see bottom), but it runs into errors. The bottom of the sequence below shows "JavaJD could not be found" Any suggestion, please? $ sudo apt-get install sun-java6-jdk $ sudo update-alternatives --config java There are 5 alternatives which provide `j

Re: [R] JGR / linux

2008-06-03 Thread g-h-d
Thanks. I basically followed the steps in http://lib.stat.cmu.edu/R/CRAN/, and those below for JGR and it worked. ...but there are problems with help files e.g. ?matrix generates the following message: /tmp/RtmpvxsnQa/.R/doc/html/packages.html (No such file or directory) g-h-d wrote

Re: [R] JGR / linux

2008-06-03 Thread g-h-d
Dirk Eddelbuettel wrote: > > > On 3 June 2008 at 08:42, g-h-d wrote: > | I basically followed the steps in http://lib.stat.cmu.edu/R/CRAN/, and > those > | below for JGR and it worked. > | > | ...but there are problems with help files e.g. ?matrix generates t

Re: [R] JGR / linux

2008-06-03 Thread g-h-d
Dirk Eddelbuettel wrote: > > > On 3 June 2008 at 13:44, g-h-d wrote: > | > | > $ sudo apt-get install sun-java6-jdk > | > | > > | > | > $ sudo update-alternatives --config java > | > | > > | > | > There are 5 alternatives which prov

[R] Problem with loading package Matrix

2008-04-10 Thread Peter H Singleton
Hello, I recently upgraded from R 2.6.1 to 2.6.2. I uninstalled 2.6.1, installed 2.6.2, and installed the packages I regularly use. Everyting seems to be running properly, including most of the packages, but when I try to call the Matrix package, I get the following error: > require(Matrix) Load

[R] Running regression (lm, lrm) 100+ times and saving the results as matrix

2008-04-29 Thread Mike H. Ryu
An undergraduate here, so do not hesitate to let me know if you feel that I'm heading in a wrong direction. I have a data frame containing panel data across 10 years (hence 120 months). I want to be able to run regression separately for each month (or year). The below shows how I ran the regr

Re: [R] Running regression (lm, lrm) 100+ times and saving the results as matrix

2008-04-29 Thread Mike H. Ryu
(mydf, mydf$TIME), function(x){coefficients(summary(glm(X ~ A + B, data = x, family=binomial)))}) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike H. Ryu Sent: Tuesday, April 29, 2008 7:27 AM To: r-help@r-project.org Subject: [R] Running regression (lm

[R] 2d cross-correlation / convolution

2008-05-01 Thread H. Paul Benton
-0i [3,] 100680+0i 32520-0i [4,] 97560-0i 28800-0i [5,] 88800-0i 33000+0i [6,] 69840+0i 44400+0i >?real > real(pb) Error in vector("double", length) : unimplemented type 'complex' in 'asVecSize' > real(pb[,1], length(dim(pb)[1])) Error in real(pb[, 1],

[R] Help with apply and split...

2008-05-02 Thread Mike H. Ryu
I'm trying to drop all rows except for the ones with the most recent year. So I split the data frame by NPERMNO and keep just the last record of all groups. datg=t(sapply(split(datgic, datgic$NPERMNO, drop=TRUE), function(x){return( x[nrow(x),] )})) I get something like this... GVKEY NPE

[R] 2D correlation/convolution ?

2008-05-07 Thread H. Paul Benton
What is the command for 2D fft? Or 2D convolution and or auto-correlation? Thanks, Paul __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and

Re: [R] anova p value extraction

2008-05-07 Thread H. Paul Benton
Yea the anova object seems to be odd. It's not S4 so that's why I tried originally the attr() funtion but summary(pb)$Pr(>F) Error: unexpected '>' in "summary(pb)$Pr(>" > summary(pb)$Pr NULL > summary(pb)@Pr(>F) Error: unexpected '>' in "summary(pb)@Pr(>" > summary(pb)@Pr(F) Error: no slo

Re: [R] anova p value extraction

2008-05-07 Thread H. Paul Benton
yep That worked Jorge. Thanks! summary(pb)$"Pr(>F)1" NULL > summ<-summary(pb) > class(unlist(summ)) [1] "numeric" > unlist(summ)["Pr(>F)1"] Pr(>F)1 0.02533637 > names(summ) NULL Jorge Ivan Velez wrote: > > Hi Paul, > > Perhaps > > # Data set > set.seed(123) > x=rnorm(100) > y=x+2*rnorm(10

[R] Multiple Reponse CART Analysis

2007-12-10 Thread Bardwell, Jeff H
e library, but get bogged down in the equation. Also, it doesn't seem like polymars will generate a tree even if I do get it working. Can rpart be modified in some way to accomodate multiple response parameters? If anyone's ever come across this situation before, pointers would be much app

Re: [R] Multiple Reponse CART Analysis

2007-12-13 Thread Bardwell, Jeff H
Thank you for the reply. With the improved formula, mvpart worked like a charm. Sincerely, Jeff Jeff H Bardwell, M.S. Biology Department ENV 1101 Lab Coordinator Goebel 115, OH: Thu 1pm-4pm 710-6596 (e-mail preferred) From: Gavin Simpson [mailto:[EMAIL

[R] RMySQL and free text variable

2007-12-13 Thread H. Paul Benton
Hi all, I have a quick question, I want to send a select statement to the mysql server. With the code below I connect and ask my select statement. As you can see from the code I want to have a mode = "+". The '+' needs to be free text and hence the "\"" around it. But it doesn't work. If i

Re: [R] RMySQL and free text variable

2007-12-13 Thread H. Paul Benton
Yea that worked !! Did paste(SELECT * FROM MET WHERE molid=", molid, "AND mode=", "\'" mode, "\'" , sep="") I guess all I needed was the sep="" which I totally forgot about. Cheers, Paul Eric wrote: > Does this work for you? > > "SELECT * FROM data WHERE molNUM = 165 AND mode = '+'" > > Possibl

[R] How can I extract the AIC score from a mixed model object produced using lmer?

2007-12-18 Thread Peter H Singleton
I am running a series of candidate mixed models using lmer (package lme4) and I'd like to be able to compile a list of the AIC scores for those models so that I can quickly summarize and rank the models by AIC. When I do logistic regression, I can easily generate this kind of list by creating the

[R] Problems with graphical devices, e.g., png(), pdf(): blurry graphical output

2008-12-16 Thread Y-H Chen
On my current home system, I am getting undesirable output from graphical devices such as png() and pdf(). The graphical output is blurry. I haven't experienced the problem on other systems. As you will see from the attached text file (more information on this file below), the problem does not occu

Re: [R] Problems with graphical devices, e.g., png(), pdf(): blurry graphical output

2008-12-17 Thread Y-H Chen
On Wed, Dec 17, 2008 at 12:54 AM, Prof Brian Ripley wrote: > Your PDF problems indicate a broken viewer. How were you viewing PDF? You are absolutely correct about the PDF files; I've since checked the PDF files in other viewers and have not been able to reproduce the problem. There was definite

Re: [R] Problems with graphical devices, e.g., png(), pdf(): blurry graphical output

2008-12-17 Thread Y-H Chen
On Wed, Dec 17, 2008 at 3:06 AM, Martyn Plummer wrote: > The artefacts that you see are a normal result of using bitmap graphics > devices. I have tried to explain these below: Thanks very much for your explanations, MP; they were quite informative!! I recognize that others may feel differently

[R] How do I retrieve column and row names after comparing two matrices?

2009-02-25 Thread Nussenzveig, Roberto H.
Hello, I have two matrices as shown below: Matrix 1 IDAB1BC1CD1... name1 1,1 2,1 0,2 ... name2 2,0 1,2 1,2 ... name3 0,2 1,1 2,0 ... name4 2,0 0,2 0,2

[R] [R-pkgs] Update of X2R (with FishGraph) sent to CRAN, 30 Jan 2008

2008-01-31 Thread Michael H. Prager
TY OF ANY KIND. Nonetheless, the authors will endeavor to fix bugs promptly and to add requested features. Send bug reports, suggestions, and extensions to either author. Michael H. Prager - [EMAIL PROTECTED] Southeast Fisheries Science Center National Marine Fisheries Service, NOAA 101 Pivers Is

[R] Problem with specifiying column widths in layout

2008-03-12 Thread Peter H Singleton
I am trying to generate a graphic with a matrix of 9 line graphs (3 rows, 3 columns), all with the same y-axis range, and only showing the y-axis labels and title at the left edge of each row of the matrix. I have been trying to use the widths argument in layout to specify a larger column width in

[R] list creation interpolation

2008-11-21 Thread H. Paul Benton
Hello all, I apologize if this is simple or has already been answered somewhere, but I'm not sure what to search for although I have tried and didn't come up with anything so.. Here's my question. How can I interpolate list names or do I have to do it post list creation. Since that's not v

<    1   2   3   4   >