Re: [R] .NAME in .Fortran

2012-09-11 Thread Rolf Turner
On 12/09/12 10:50, Duncan Murdoch wrote: On 12-09-11 4:44 PM, Rolf Turner wrote: Duncan: I experimented by using ".NAME =" in a call to .Fortran() in one of my packages and got the same error as Peter. I am definitely (!) using R version 2.15.1. Yes, Peter told me the same. Doing args(.Fo

Re: [R] R equivalent of python module structure and functionality?

2012-09-11 Thread Trevor Davis
>> I also wanted to point Tom to CRAN packages >> getopt >> optparse >> written specifically to support command-line argument parsing with R > >Thanks, but again, I'm not seeing how those solve the given problem(s). >Am I missing something? The optparse package, tested with Rscript but pro

Re: [R] R equivalent of python module structure and functionality?

2012-09-11 Thread Tom Roche
https://stat.ethz.ch/pipermail/r-help/2012-September/323551.html >>> summary: how to structure an R file such that it can be both >>> 1. used as a script via, e.g., (from OS commandline) >>> $ Rscript foo.r bar=baz >>> 2. imported and called as a function via, e.g. (from R commandline) >>> > s

Re: [R] CairoWin on Windows 7 doesn't refresh

2012-09-11 Thread Duncan Murdoch
On 12-09-11 9:29 PM, Kevin Wright wrote: I'm trying to use the Cairo package (R 2.15.1) with Windows 7. If the graphics device window is behind another window, when I move the graphics device window to the foreground, the contents of the window are not refreshed, and continue to contain the imag

[R] CairoWin on Windows 7 doesn't refresh

2012-09-11 Thread Kevin Wright
I'm trying to use the Cairo package (R 2.15.1) with Windows 7. If the graphics device window is behind another window, when I move the graphics device window to the foreground, the contents of the window are not refreshed, and continue to contain the image of the window that was on top of the grap

[R] Plotting every probability curve

2012-09-11 Thread Abraham Mathew
I don't have a logistic regression model and am trying to generate probability curves for all possible combinations of the variables. My logit model has 5+ variables, and I want to draw curves for every scenario. See code below. When home_owner is 0 and 1, I want curves. The same goes for all othe

Re: [R] R equivalent of python module structure and functionality?

2012-09-11 Thread Dirk Eddelbuettel
On 11 September 2012 at 18:47, J Toll wrote: | Maybe take a look at littler. | | "littler provides hash-bang (i.e. script starting with #!/some/path) | capability for GNU R, as well as simple command-line and piping use." | | http://dirk.eddelbuettel.com/code/littler.html Thanks for the plug. I

Re: [R] R equivalent of python module structure and functionality?

2012-09-11 Thread J Toll
On Tue, Sep 11, 2012 at 6:00 PM, Tom Roche wrote: > > summary: how to structure an R file such that it can be both > > 1. used as a script via, e.g., (from OS commandline) > > $ Rscript foo.r bar=baz > > 2. imported and called as a function via, e.g. (from R commandline) > >> source('./foo.r) >> f

Re: [R] how can I get a layout like in pairs()?

2012-09-11 Thread Duncan Murdoch
On 12-09-11 2:40 PM, Lukas Kohl wrote: dear R gurus, I repeatedly run into this problem, maybe there's an easy way to solve it. I want a composite plot with multiple graphs that share the same axis, similar way as done by the pairs() (eg. like this here http://www.r-project.org/screenshots/iris

[R] R equivalent of python module structure and functionality?

2012-09-11 Thread Tom Roche
summary: how to structure an R file such that it can be both 1. used as a script via, e.g., (from OS commandline) $ Rscript foo.r bar=baz 2. imported and called as a function via, e.g. (from R commandline) > source('./foo.r) > foo(bar='baz') ? I'm looking for the 'R equivalent' of how python

Re: [R] .NAME in .Fortran

2012-09-11 Thread Duncan Murdoch
On 12-09-11 4:44 PM, Rolf Turner wrote: Duncan: I experimented by using ".NAME =" in a call to .Fortran() in one of my packages and got the same error as Peter. I am definitely (!) using R version 2.15.1. Yes, Peter told me the same. Doing args(.Fortran) gives: function (.NAME, ..., NAOK

Re: [R] splines package

2012-09-11 Thread R. Michael Weylandt
You likely need to load the package before you can use it: library(splines) ? bs works for me. Cheers, M On Tue, Sep 11, 2012 at 11:32 PM, Luis Felipe Parra wrote: > Hello Michael when I search for documentation it always appears as a > separate package, if I try > > ?bs > No documentation fo

Re: [R] splines package

2012-09-11 Thread R. Michael Weylandt
It should be included in your binary download of R. Is it not? Michael On Tue, Sep 11, 2012 at 11:18 PM, Luis Felipe Parra wrote: > Hello all, > > I have been working with b-splines and noted that the splines package is > not available in CRAN. Does any body know what happened with it? > Or, is

Re: [R] Can I make spss.get reencode from Windows-1252?

2012-09-11 Thread JKPeck
If you have control of the SPSS file and you set Unicode on in SPSS, the sav file will be encoded in Unicode - utf-8. With any sav file from SPSS V15 or later, the encoding is written into the file header. If it isn't Unicode, it is determined by the SPSS locale setting. -- View this message i

[R] using alternative models in glmulti

2012-09-11 Thread Midgley, Meghan Grace
All, I am working on a multiple-regression meta-analysis and have too many alternative models to fit by hand. I am using the "metafor" package in R, which generates AIC scores among other metrics. I'm using a simple formula to define these models. For example, rma(Effect_size,variance, mods

[R] splines package

2012-09-11 Thread Luis Felipe Parra
Hello all, I have been working with b-splines and noted that the splines package is not available in CRAN. Does any body know what happened with it? Or, is there any package that replaces it? Thank you Felipe Parra [[alternative HTML version deleted]] __

Re: [R] .NAME in .Fortran

2012-09-11 Thread Rolf Turner
Duncan: I experimented by using ".NAME =" in a call to .Fortran() in one of my packages and got the same error as Peter. I am definitely (!) using R version 2.15.1. Doing args(.Fortran) gives: function (.NAME, ..., NAOK = FALSE, DUP = TRUE, PACKAGE, ENCODING) NULL If I replace ".NAME" by "n

Re: [R] How to get curve information from a gam model

2012-09-11 Thread David Winsemius
On Sep 11, 2012, at 12:10 PM, exu wrote: > Thanks for the response. But I'm relatively new to R, could you elaborate a > bit? I tried > > P <-predict.gam(model,type=terms") > > But I'm having a hard time to trying to make sense of the resulting data. And I'm having even greater difficulty bec

[R] Panels of Geographical Maps

2012-09-11 Thread Lorenzo Isella
Dear All, Please consider the snippet at the end of the email. My problem is rather simple: I can generate individual maps of a country where each region is colored according to a scalar, but I am experiencing problems when I try to combine e.g. 2 maps into a single figure using the mfrow(2,

Re: [R] Strange result from GAMLSS

2012-09-11 Thread Ingmar Visser
Hi John, I don't have access to R right now but do remember that some of the parametersin gamlss have log and/or logit link functions which would give the possibility for negative values. Hth, Ingmar Department of Psychology University of Amsterdam Op 11 Sep 2012 om 21:01 heeft John Kerpel he

Re: [R] How to get curve information from a gam model

2012-09-11 Thread exu
Thanks for the response. But I'm relatively new to R, could you elaborate a bit? I tried P <-predict.gam(model,type=terms") But I'm having a hard time to trying to make sense of the resulting data. Regards, Eugene Xu LIBREMAX CAPITAL, LLC. 830 Third Avenue Suite 801 NewYork, NY 10022 (212) 612

Re: [R] Maintaining specific order when using aggregate or change order on axis

2012-09-11 Thread William Dunlap
Right after importing your data with read.csv, make a factor out of your Depth column and give it levels in the desired order. E.g., SChla$Depth <- factor(SChla$Depth, levels=c("Surface", "Shallow", "Deep", "Fmax", "Below")) (Capitalization is important, "Below" is not the same as "below".) T

Re: [R] Maintaining specific order when using aggregate or change order on axis

2012-09-11 Thread arun
Hi, In that case, try this: #made up data Coral1<-read.table(text=" Seamount Station  Depth  Pico  Nano Micro Total_Ch Coral    1401 Surface 0.216 3.270 4.240    7.726 Coral    1401    Fmax 0.359 3.890 4.900    9.149 Coral    1401  Below 0.178 1.360 1.210    2.748 Coral    1402 Surface 0.231 4.14

Re: [R] Maintaining specific order when using aggregate or change order on axis

2012-09-11 Thread arun
Hi, The order you mentioned is confusing.  The given data shows depth to be increasing from Below,Surface,Fmax. This might help you in ordering. Coral1<-read.table(text=" Seamount Station  Depth  Pico  Nano Micro Total_Ch Coral    1401 Surface 0.216 3.270 4.240    7.726 Coral    1401    Fmax 0.3

[R] how can I get a layout like in pairs()?

2012-09-11 Thread Lukas Kohl
dear R gurus, I repeatedly run into this problem, maybe there's an easy way to solve it. I want a composite plot with multiple graphs that share the same axis, similar way as done by the pairs() (eg. like this here http://www.r-project.org/screenshots/iris-pairs.jpg). all plot panels shall have t

[R] Detrended Fluctuation Analysis (fractal pkg) troubleshooting

2012-09-11 Thread semperparatus
I'm working with the DFA (detrended fluctuation analysis) function in the package fractal on postural sway data, and for the life of me can't get the results to turn out as they should given what my data looks like. The data resemble a random walk, but the Hurst exponent estimates that I'm getti

[R] balanced two-way crossed balanced random effects analysis of variance

2012-09-11 Thread Frank Samuelson
Hello, All, I am wondering if there is a standard library/function for calculating variance components (or the variance of the total mean) of a balanced two-way crossed random effects problem a la equation 7.4.10 of Scheffe or section 14.5 of Brownlee. My model is s_ij = \mu + x_i + y_j + e_ij x

Re: [R] lapply with different size lists?

2012-09-11 Thread Rui Barradas
Hello, When you don't know what's going on, break long instructions into simpler ones. R is good at doing a lot in one line, to debug don't do that. b = function (m, mat) { n=nrow (mat) p=ceiling (n/m) lapply (1:p, function (l,n,m) { inf = ((l-1)*m)+1 if (lIf you wa

Re: [R] cex.lab ignored in plot.zoo for multiple plots

2012-09-11 Thread Gabor Grothendieck
On Tue, Sep 11, 2012 at 2:54 PM, David Winsemius wrote: > > On Sep 11, 2012, at 7:48 AM, Gabor Grothendieck wrote: > >> On Wed, Sep 5, 2012 at 11:06 AM, Nicolai Schneider >> wrote: >>> Hello everyone, >>> >>> a problem with the plot.zoo function. In the parameters of the function, >>> cex.lab is

[R] Strange result from GAMLSS

2012-09-11 Thread John Kerpel
Hi Folks! Just started using the gamlss package and I tried a simple code example (see below). Why the negative sigma? John > y <- rt(100, df=1)> m1<-fitDist(y, type="realline")Warning messages:1: In > MLE(ll3, start = list(eta.mu = eta.mu, eta.sigma = eta.sigma, : possible convergence pro

Re: [R] How to get curve information from a gam model

2012-09-11 Thread David Winsemius
On Sep 11, 2012, at 8:08 AM, exu wrote: > I'm using library(mgcv) > > I did a gam regression like this > > model <- gam(formula = y ~ s(x), family="binomial") > > Now I'd like to get 2 vectors x and z (with z=s(x)), so that I can implement > the model outside R. How can I do this? ?predict.g

Re: [R] cex.lab ignored in plot.zoo for multiple plots

2012-09-11 Thread David Winsemius
On Sep 11, 2012, at 7:48 AM, Gabor Grothendieck wrote: > On Wed, Sep 5, 2012 at 11:06 AM, Nicolai Schneider > wrote: >> Hello everyone, >> >> a problem with the plot.zoo function. In the parameters of the function, >> cex.lab is ignored. I tried to reduce the size of the yaxis labels by at >> l

[R] lapply with different size lists?

2012-09-11 Thread Rui Esteves
Hello, I have 2 functions (a and b) a = function(n) { matrix (runif(n*2,0.0,1), n) } > > > b = function (m, matrix) { > n=nrow (matrix) > p=ceiling (n/m) > lapply (1:p, function (l,n,m) { > inf = ((l-1)*m)+1 > if (l

Re: [R] Maintaining specific order when using aggregate or change order on axis

2012-09-11 Thread Rui Barradas
Hello, If you order your original (wanted) order and then order that result you get what you want. The example is with fake data but the idea is in the last two lines. # Make up some data set.seed(9210) n <- 1e2 depth <- c('surface', 'shallow', 'deep', 'fmax', 'below') dat <- data.frame(Depth

Re: [R] Sort or Permutate

2012-09-11 Thread arun
Hi, You can also use: within(small,{order(value)}) #   file.name value #1 /storage/storage0/59Off.Rtable 0.2203863 #3 /storage/storage0/5912314ff.Rtable 0.2886594 #2    /storage/storage0/5912On.Rtable 0.4052370 A.K. - Original Message - From: Berend Has

Re: [R] creating several different matrices

2012-09-11 Thread Rui Barradas
Hello, Try, using data and matrix dims of your choice, replicate(100, matrix(rnorm(12), ncol = 3)) Hope this helps, Rui Barradas Em 11-09-2012 15:17, cesare orsini escreveu: Dear people, I need to generate 100 different matrices, without particular characteristics but using only one command!

Re: [R] Combine two variables

2012-09-11 Thread arun
Hi,   I am not sure how you describe combine. Try this: df1<-subset(df, !is.na(var1) &!is.na(var2)) df1$new<-paste0(df1$var1,df1$var2) > head(df1) #  var1 var2 new #1    b    a  ba #2    c    b  cb #3    b    b  bb #5    a    a  aa #6    b    b  bb #7    a    b  ab A.K. - Original Message

Re: [R] creating several different matrices

2012-09-11 Thread R. Michael Weylandt
Further hint: If only there were some recently added distribution that was defined to give random matrices.. news() M On Tue, Sep 11, 2012 at 3:56 PM, PIKAL Petr wrote: > Hi > > Homework? "No homework" policy in this list. > > Anyway here are some hints. > > ?for > ?split > > Regards > Pet

[R] Maintaining specific order when using aggregate or change order on axis

2012-09-11 Thread Tinus Sonnekus
Hi All, I'm using the following code to produce some stacked bar graphs. *setwd("C:\\Users\\Tinus\\Documents\\NMMU\\R\\Seamounts")* *SChla <- read.csv("SM_Chla_data.csv")* * * *#Extract mean values from data file* * * *Coral <- SChla[185:223,] #Reduce SChla to Coral only* *coral <- with(Coral , a

Re: [R] plot dataframe with inconsistently relations

2012-09-11 Thread R. Michael Weylandt
On Tue, Sep 11, 2012 at 2:22 PM, Geophagus wrote: > Hi @ all, > I work with a dataframe like the attached one. Hi Geo, Unfortunately, there is no attached data.frame. The mail servers are somewhat draconian in what they let through. A much better way to send data is to type dput(head(DATA, 20))

Re: [R] how to make a folder as package in R

2012-09-11 Thread R. Michael Weylandt
On Tue, Sep 11, 2012 at 10:42 AM, purushothaman wrote: > Hi, > > i used this package.skeleton() function but i created using single R file. > but i need to create package using more than one R file. > > Thanks > B.Purushothaman > B, Most of us don't use Nabble so posting with context is much a

Re: [R] Animation Problem

2012-09-11 Thread R. Michael Weylandt
On Tue, Sep 11, 2012 at 4:52 PM, Bhupendrasinh Thakre wrote: > Hi List, > > I am trying to build an animation and facing problem as animation is not > coming "live". > The goal is to build "heart beats" like diagram for the data given below. > > data : > > structure(list(date = 1971:1991, x = c(41

Re: [R] Combine two variables

2012-09-11 Thread PIKAL Petr
Hi I am not sure I understand correctly. In the sample dataframe you posted, the values in columns are different so based on what you did write I aasume that apply(df,1, paste, collapse="") gives you third variable combined from those 2 variables. If you want to select non NA value from any va

Re: [R] R on Android

2012-09-11 Thread R. Michael Weylandt
On Tue, Sep 11, 2012 at 12:51 PM, Simon Fry wrote: > Hello > > I tried to install R on my Transformer Prime without root. I downloaded the > three files i found on: > > http://rwiki.sciviews.org/doku.php?id=getting-started:installation:android > > and i extract all the files, also without root my

Re: [R] Combine two variables

2012-09-11 Thread Rui Barradas
Hello, Inline. Em 11-09-2012 15:57, Simon Kiss escreveu: Hi: I have two variables in a data frame that are the results of a wording experiment in a survey. I'd like to create a third variable that combines the two variables. Recode doesn't seem to work, because it just recodes the first var

Re: [R] how to make a folder as package in R

2012-09-11 Thread Bert Gunter
More to the point, the OP needs to 1) Stop posting 2) Read the relevant portion of the "Writing R Extensions" Manuakl which has been written specifically to answer these sorts of questions in a comprehensive manner. Then if he/she has questions, he/she can ask. -- Bert On Tue, Sep 11, 2012 at 2

Re: [R] Searching from Dataframe.

2012-09-11 Thread Bert Gunter
Have you read "An Introduction to R" (ships with every copy of R) where these sorts of questions are answered? There are other R tutorials on the web also, if you look. -- Bert On Tue, Sep 11, 2012 at 3:59 AM, Rantony wrote: > And how to get the vector from a list if the list item found inside

Re: [R] Searching from Dataframe.

2012-09-11 Thread Rui Barradas
Hello, Try which("B" == Mylist) Hope this helps, Rui Barradas Em 11-09-2012 13:31, Rantony escreveu: How can I get index from a list if I know the listitem ? For eg:- Mylist<-c("A","B","C") Acually,Here I need to get the index of "B" as 2. From: arun kirshna [via R] [mailto:ml-node+s

[R] How to get curve information from a gam model

2012-09-11 Thread exu
I'm using library(mgcv) I did a gam regression like this model <- gam(formula = y ~ s(x), family="binomial") Now I'd like to get 2 vectors x and z (with z=s(x)), so that I can implement the model outside R. How can I do this? Thanks. -- View this message in context: http://r.789695.n4.nabb

Re: [R] creating several different matrices

2012-09-11 Thread PIKAL Petr
Hi Homework? "No homework" policy in this list. Anyway here are some hints. ?for ?split Regards Petr > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of cesare orsini > Sent: Tuesday, September 11, 2012 4:17 PM > To: r-help@r

[R] Animation Problem

2012-09-11 Thread Bhupendrasinh Thakre
Hi List, I am trying to build an animation and facing problem as animation is not coming "live". The goal is to build "heart beats" like diagram for the data given below. data : structure(list(date = 1971:1991, x = c(41L, 60L, 41L, 61L, 22L, 83L, 31L, 55L, 22L, 14L, 38L, 6L, 29L, 17L, 10L, 99L,

Re: [R] problem while installing packages in r

2012-09-11 Thread Uwe Ligges
On 11.09.2012 15:36, Ravichandra MONDRETI wrote: Dear R users, Hope someone can help me to solve the problem. I have a problem installing packages in to r . The following message was being displayed in the console when I was trying to install 'rgdal' package. install.packages("rgdal")

Re: [R] problem while installing packages in r

2012-09-11 Thread Milan Bouchet-Valat
Le mardi 11 septembre 2012 à 15:36 +0200, Ravichandra MONDRETI a écrit : > > Dear R users, > > > > Hope someone can help me to solve the problem. I have a problem > installing packages in to r . The following message was being displayed > in the console when I was trying to install 'rgdal' pa

Re: [R] Sort or Permutate

2012-09-11 Thread Bert Gunter
Ah, but note that the OP's 2nd column is character, not numeric... And we don't know what the "struct" is (a matrix or data frame?? --does the OP know the difference?). Has Alaios perused "An Introduction to R" where he/she might have gained some enlightenment that would have obviated the need to p

Re: [R] Repeated Aggregation with data.table

2012-09-11 Thread Elliot Joel Bernstein
I've been using this setup: > flist <- expression( list(mean.z = mean(z), sd.z = sd(z)) ) > dat[ , eval(flist), list(x)] It works great, but there's one small catch. If I do something like > flist <- expression(list(x.per.y = sum(x) / sum(y))) > dat[, eval(flist), list(y)] it does the wrong thi

Re: [R] Find correlation in Clmm?

2012-09-11 Thread Rune Haubo
Den 11/09/2012 16.36 skrev "Anera Salucci" : > > Hi all, > > I am trying to fit a random effect model to categorical response variable using package "ordinal" /"clmm". > > How can I find the correlation between random effects (random intercept and random slope) You cannot, as such models are not

Re: [R] R calculates small numbers, where the result should be zero

2012-09-11 Thread Andrea Gonnermann
Many,many thanks to all of you and your helpful links! I actually experineced something similar in SAS and my "research" on google was not good enough to figure it out! Well, I may just round the numbers to some digits as proposed So, thank you again for this fast response!! Have a nice day :-) And

Re: [R] Sort or Permutate

2012-09-11 Thread Berend Hasselman
On 11-09-2012, at 13:13, Alaios wrote: > Dear all, > I am having a struct that contains on the first column file names and on the > second column a number which is a "rating" of the file on first column > > A small subset looks like that > > small > [,1]

[R] Combine two variables

2012-09-11 Thread Simon Kiss
Hi: I have two variables in a data frame that are the results of a wording experiment in a survey. I'd like to create a third variable that combines the two variables. Recode doesn't seem to work, because it just recodes the first variable into the third, then recodes the second variable into t

Re: [R] R calculates small numbers, where the result should be zero

2012-09-11 Thread Bryan Hanson
This is the result of how any computer program stores numbers, it's not unique to R. A slightly different question is discussed in R FAQ 7.31 but it applies to your situation. You may also enjoy the R Inferno at www.burns-stat.com/pages/Tutor/R_inferno.pdf Bryan *** Bryan Hanson Pro

Re: [R] R calculates small numbers, where the result should be zero

2012-09-11 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Andrea Gonnermann > Sent: Tuesday, September 11, 2012 4:24 PM > To: r-help@r-project.org > Subject: [R] R calculates small numbers, where the result should be > zero > > Hi a

Re: [R] R calculates small numbers, where the result should be zero

2012-09-11 Thread S Ellison
See R Faq (http://cran.r-project.org/doc/FAQ/R-FAQ.html) with particular attention to FAQs 7.31 and 9.1 paragraph 3. Essentially, computational precision is finite. S Ellison > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of

Re: [R] cex.lab ignored in plot.zoo for multiple plots

2012-09-11 Thread Gabor Grothendieck
On Wed, Sep 5, 2012 at 11:06 AM, Nicolai Schneider wrote: > Hello everyone, > > a problem with the plot.zoo function. In the parameters of the function, > cex.lab is ignored. I tried to reduce the size of the yaxis labels by at > least 50%. > > -- > > Example: > > sample <- as.zoo(

Re: [R] Loading Chess Data

2012-09-11 Thread Robert Baer
On 9/2/2012 11:41 AM, David Arnold wrote: All, What would be the most efficient way to load the data at the following address into a dataframe? http://ratings.fide.com/top.phtml?list=men It depends. The most efficient for me was to highlight it, copy it to the windows clipboard and execute th

[R] R calculates small numbers, where the result should be zero

2012-09-11 Thread Andrea Gonnermann
Hi all, my problem is that R does wrong calculations, when the result should be zero. I have the following code: RD_Var1 <- ((0.1*(1-0.1))/100)+((0.2*(1-0.2))/100) RD_Var2 <- ((0.1*(1-0.1))/100)+((0.2*(1-0.2))/100) RD_1 <- 0.1-0.2 RD_1 RD_2 <- 0.1-0.2 FEM_Eff_RD <- ((1/RD_Var1)*RD_1+(1/RD_V

[R] boot() with glm/gnm on a contingency table

2012-09-11 Thread Milan Bouchet-Valat
Hi everyone! In a package I'm developing, I have created a custom function to get jackknife standard errors for the parameters of a gnm model (which is essentially the same as a glm model for this issue). I'd like to add support for bootstrap using package boot, but I couldn't find how to proceed.

[R] creating several different matrices

2012-09-11 Thread cesare orsini
Dear people, I need to generate 100 different matrices, without particular characteristics but using only one command! Do you know some way? thank You -- View this message in context: http://r.789695.n4.nabble.com/creating-several-different-matrices-tp4642768.html Sent from the R help mailin

[R] Find correlation in Clmm?

2012-09-11 Thread Anera Salucci
Hi all, I am trying to fit a random effect  model to categorical response variable using package "ordinal" /"clmm". How can I find the correlation between random effects (random intercept and random slope)   Thanks in advance  Ana [[alternative HTML version deleted]] _

[R] plot dataframe with inconsistently relations

2012-09-11 Thread Geophagus
Hi @ all, I work with a dataframe like the attached one. I want to plot it, so that "value" is listed on the y-axis, "year" on the x-axis and "states" as lines in the coordinate system. I tried the following code: require(ggplot) plot1<-ggplot(TEST, aes(year, value)) + geom_line(aes(colour = stat

[R] Setwd to a directory that requires authentication

2012-09-11 Thread Mike Smith
I work at a company where we log on to windows using a username and password. There is a global server with files that I need to use R to do some analysis on. That server requires my windows credentials to logon. When I access the server from internet explorer it automatically uses my windows cre

[R] Sort or Permutate

2012-09-11 Thread Alaios
Dear all, I am having a struct that contains on the first column file names and on the second column a number which is a "rating" of the file on first column A small subset looks like that small [,1]   

Re: [R] problem while installing packages in r

2012-09-11 Thread Ravichandra MONDRETI
Dear R users, Hope someone can help me to solve the problem. I have a problem installing packages in to r . The following message was being displayed in the console when I was trying to install 'rgdal' package. > install.packages("rgdal") Warning in install.packages : argument 'lib'

Re: [R] Searching from Dataframe.

2012-09-11 Thread Rantony
And how to get the vector from a list if the list item found inside ? for eg:- MyList<- c("US","UK","UAE") Here i want to check a list item UAE which is in 3rd row. How i will get that row position ? - Thanks in advance Antony -- View this message in context: http://r.789695.n4.nabble.com/Se

Re: [R] Searching from Dataframe.

2012-09-11 Thread Rantony
How can I get index from a list if I know the listitem ? For eg:- Mylist<-c("A","B","C") Acually,Here I need to get the index of "B" as 2. From: arun kirshna [via R] [mailto:ml-node+s789695n4642756...@n4.nabble.com] Sent: Tuesday, September 11, 2012 5:56 PM To: Akkara, Antony (GE Energy, No

Re: [R] how to make a folder as package in R

2012-09-11 Thread Rui Barradas
Hello, See also http://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf Hope this helps, Rui Barradas Em 11-09-2012 09:53, R. Michael Weylandt escreveu: Start with ?package.skeleton() Cheers, Michael On Tue, Sep 11, 2012 at 9:47 AM, purushothaman wrote: Hi how to make a filder

[R] R on Android

2012-09-11 Thread Simon Fry
Hello I tried to install R on my Transformer Prime without root. I downloaded the three files i found on: http://rwiki.sciviews.org/doku.php?id=getting-started:installation:android and i extract all the files, also without root my prime. But now i can't install R with the files i extractet. Is

Re: [R] how to make a folder as package in R

2012-09-11 Thread purushothaman
Hi, i used this package.skeleton() function but i created using single R file. but i need to create package using more than one R file. Thanks B.Purushothaman -- View this message in context: http://r.789695.n4.nabble.com/how-to-make-a-folder-as-package-in-R-tp4642734p4642739.html Sent from

Re: [R] cex.lab ignored in plot.zoo for multiple plots

2012-09-11 Thread A Duranel
Sep 05, 2012; 6:39pm — by David Winsemius David Winsemius >> a problem with the plot.zoo function. In the parameters of the function, >> cex.lab is ignored. I tried to reduce the size of the yaxis labels by at >> least 50%. >> Example: >> >> sample <- as.zoo(EuStockMarkets) >> >> par(las=1) >> >>

Re: [R] Searching from Dataframe.

2012-09-11 Thread Rantony
From: Rantony [via R] [mailto:ml-node+s789695n464274...@n4.nabble.com] Sent: Tuesday, September 11, 2012 4:30 PM To: Akkara, Antony (GE Energy, Non-GE) Subject: Re: Searching from Dataframe. And how to get the vector from a list if the list item found inside ? for eg:- MyList<- c("US",

[R] Question about logistic regression with ordered factor variable using the rms package (prev.Design)

2012-09-11 Thread Tom Willems
Dear R users, Hopefully someone can help me, Maybe I just misunderstand the function in the package? I am working with a logistic regression model. Until now I always worked with the basic glm function, where for the model was: ¡§ glm( disease ~ test.value + cnct , family=binomial(link=¡¦logit¡¦

[R] Contrasts for 2x4 interaction in mixed effects model

2012-09-11 Thread Stephen Politzer-Ahles
Hi Rachel, Do you get what you need with lmer(H.y.~(cond/patient)*stance + (1|subj), data=H) ? That should give you the comparison between patient groups at each level of Condition (the cond1:patient1, cond2:patient2, and cond2:patient3 that you were looking for). (And I guess it will also give

Re: [R] Position of y axis labels in plot graphic

2012-09-11 Thread Nicolai Schneider
Thanks a lot to everyone who gave my me advice. Btw, the most elegant solution came from a German R user who "simply" extended the plot.zoo function by the parameter line (ie the distance of the y labels from the y axis). Here the URL of his posting and the code, unfortunately his comments are

[R] how to perform multiple comparisons with anova.glm significant interactions?

2012-09-11 Thread barbara costa
Dear R users I want to evaluate my significant interactions among 3 predictors in glm (one is a factor and 2 are numeric indices). I had a 3rd order interaction in my anova.glm and I'm wondering how to investigate them. I read multcomp package but I found it difficult for me. #Say e.g. (I'm not u

Re: [R] Integration between R and Microsoft SQL Server?

2012-09-11 Thread Duncan Murdoch
On 12-09-11 3:30 AM, johannes rara wrote: Oracle has its own R integration called Oracle R Enterprise: http://www.oracle.com/technetwork/database/options/advanced-analytics/r-enterprise/index.html Is there a same kind of integration available for Microsoft SQL Server? If there is not, does MS h

Re: [R] .NAME in .Fortran

2012-09-11 Thread Duncan Murdoch
On 12-09-10 9:21 PM, Peter Dunn wrote: Hi all I've been getting some emails from the R package maintainers that I need to update some code in a CRAN packge that uses FORTRAN, to comply with (not so recent) changes. I've been a little busy... I'm having trouble adjusting my code. I hope someon

Re: [R] Position of y axis labels in plot graphic

2012-09-11 Thread Jose Iparraguirre
Hi Nico, Far from the most elegant solution, at least it works and will give you plenty of freedom to choose where to place the labels: > plot.zoo(x, type="l", main="", xlab="", ylab="",yaxt="n", xaxs="i"); > title(main="Title", xlab="index") > mtext(names(x)[1],2,line=1,at=0.9) > mtext(names(

Re: [R] metafor package: study level variation

2012-09-11 Thread Michael Dewey
At 16:08 10/09/2012, Jarrett Byrnes wrote: Thanks for this. A few things First, yes, my lmer syntax was indeed bad - I was writing this as an example of what my data & code look like. Apologies. So, 1|studyID indeed. Also 1/variance. I've also been wondering - I often have more than 2 dru

Re: [R] lowess regression

2012-09-11 Thread S Ellison
> I am working on a biology-related project > where I have a matrix of gene-to-gene interactions, ( > interactions * distances ) and depending on the basic R > functions, I do get vary different results ... Ermmm First, if I read the help pages correctly, the two base loess implementations

Re: [R] plot: x and y chromosomes are missing

2012-09-11 Thread S Ellison
> -Original Message- > I have a list with gene names, fold changes (=expression > level) and chromosomes. > > Names fold change chromosome > hz 1.5 2 > > > If I plot fold change versus chromosome (or vice versa): > > plot (ch, fc) > > I see only the chromos

[R] plotting smoother function on raw data

2012-09-11 Thread Anna Zakrisson
Hi, I have used the mgcv library to generate a simple additive model. I want to know how to plot the function on the raw data with confidence intervals whan I have TWO variables in the model. I get it to work with one variable but not with two. I am on the limit for what I understand in R, so b

Re: [R] how to make a folder as package in R

2012-09-11 Thread R. Michael Weylandt
Start with ?package.skeleton() Cheers, Michael On Tue, Sep 11, 2012 at 9:47 AM, purushothaman wrote: > Hi > > how to make a filder as R Package. > > for exampled > > c:\test folder having following files > add.r > test1.r > sub.r > > i need to make package like this test_v1.zip. > > thanks > B.P

[R] how to make a folder as package in R

2012-09-11 Thread purushothaman
Hi how to make a filder as R Package. for exampled c:\test folder having following files add.r test1.r sub.r i need to make package like this test_v1.zip. thanks B.Purushothaman -- View this message in context: http://r.789695.n4.nabble.com/how-to-make-a-folder-as-package-in-R-tp4642734.h

Re: [R] CRAN, install packages problem on networked PC

2012-09-11 Thread Neil Collier
Thanks, Jeff. I found someone to help - all sorted. On Tue, Sep 11, 2012 at 3:29 PM, Jeff Newmiller wrote: > I see that you have set a proxy to a nonstandard DNS name, and your first > warning is that your computer couldn't figure out where that proxy is. This > is not an R question... please tal

Re: [R] Contrasts for 2x4 interaction in mixed effects model

2012-09-11 Thread semperparatus
Thanks for your response. First time posting on any R forum, and apparently I didn't read carefully enough to see the difference in my model. I much appreciate the quick response. On Tue, Sep 11, 2012 at 2:16 AM, David Winsemius [via R] < ml-node+s789695n4642723...@n4.nabble.com> wrote: > > On Se

Re: [R] Searching from Dataframe.

2012-09-11 Thread Rantony
Thank you David. From: David Winsemius [via R] [mailto:ml-node+s789695n4642725...@n4.nabble.com] Sent: Tuesday, September 11, 2012 12:53 PM To: Akkara, Antony (GE Energy, Non-GE) Subject: Re: Searching from Dataframe. On Sep 11, 2012, at 12:11 AM, Rantony wrote: > Hi, > i have a dataf

Re: [R] predict arima

2012-09-11 Thread David Winsemius
On Sep 11, 2012, at 12:26 AM, Peter Jackson wrote: > Hello everybody, can someone please help me with this, please? Kind > regards,Fabian > From: schrot...@hotmail.com > To: r-help@r-project.org > Date: Mon, 10 Sep 2012 14:51:01 + > Subject: [R] predict arima > > > Hello, I have a question

[R] Integration between R and Microsoft SQL Server?

2012-09-11 Thread johannes rara
Oracle has its own R integration called Oracle R Enterprise: http://www.oracle.com/technetwork/database/options/advanced-analytics/r-enterprise/index.html Is there a same kind of integration available for Microsoft SQL Server? If there is not, does MS have any plans to integrate R and SQL Server

Re: [R] CRAN, install packages problem on networked PC

2012-09-11 Thread Jeff Newmiller
I see that you have set a proxy to a nonstandard DNS name, and your first warning is that your computer couldn't figure out where that proxy is. This is not an R question... please talk to your network administrator about whether you have a proxy and what it is called. --

Re: [R] predict arima

2012-09-11 Thread Peter Jackson
Hello everybody, can someone please help me with this, please? Kind regards,Fabian From: schrot...@hotmail.com To: r-help@r-project.org Date: Mon, 10 Sep 2012 14:51:01 + Subject: [R] predict arima Hello, I have a question regarding the predict command for ARIMA models. Why do I not ha

Re: [R] Searching from Dataframe.

2012-09-11 Thread David Winsemius
On Sep 11, 2012, at 12:11 AM, Rantony wrote: > Hi, > i have a dataframe containing some values. > for eg:- > > MyDataFrame<- > Name Age Place > -------- > Aby 12USA > Raj25UK > Romi32ENG > Amy 31IND

  1   2   >