[R] reduce printing accuracy

2011-05-28 Thread Alaios
Dear all, I would like to print a few values with less digits than the default. How I can reduce how many digits are printed ?(warning: not the real integer resolution but what is shown in screen) Best Regards Alex __ R-help@r-project.org mailing list

Re: [R] reduce printing accuracy

2011-05-28 Thread Joshua Wiley
Hi Alex, See ?options in particular the "digits" section. You can (per session) edit this by typing: options(digits = 3) or whatever number you want. To make this more permanent, create a .Rprofile that alters the default digits. HTH, Josh On Sat, May 28, 2011 at 12:36 AM, Alaios wrote: >

Re: [R] Help with Rmpi install

2011-05-28 Thread Prof Brian Ripley
Looks like you did not find the posting guide (see the footer of this message). For compilation errors in contributed packages this is not the correct list. As for If I knew more about R, I might know how to keep that Rmpi.so file around so that I could see if it is linked to a library that

Re: [R] reduce printing accuracy

2011-05-28 Thread Alaios
Thanks a lot :) --- On Sat, 5/28/11, Joshua Wiley wrote: > From: Joshua Wiley > Subject: Re: [R] reduce printing accuracy > To: "Alaios" > Cc: R-help@r-project.org > Date: Saturday, May 28, 2011, 8:48 AM > Hi Alex, > > See ?options  in particular the "digits" > section.  You can (per > sessio

Re: [R] Fwd: Opening R in 64-bit version by default

2011-05-28 Thread Achim Zeileis
On Fri, 27 May 2011, David Winsemius wrote: On May 27, 2011, at 8:56 PM, Duncan Murdoch wrote: but really, it's just a bug. If you manually change that registry key, things are fine. If you ask Windows dialogs to do it for you, it fails. Most people pay infinitely more to Microsoft

Re: [R] barplot groups of different size i.e. height is NOT a matrix

2011-05-28 Thread Victor Gabillon
Thanks for the help! In the end, i chose to use ggplot which creates really simply different panels. And I am replacing my bars by simple points in the end. Victor __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] ggplot pale colors

2011-05-28 Thread Victor Gabillon
Hello i am new to ggplot and i observed a strange behavior. I want to display two groups of points, each group with a different color. But i encountered a problem with the colors. Here is a first example: dataset <- data.frame(Main = c("A", "A", "B", "B"), Detail = c( "b", "c", "1", "2"), r

[R] ftable (accidentally?) increases column widths

2011-05-28 Thread Marius Hofert
Dear expeRts, I typically replace NA (but also other) entries in an ftable by a character string containing LaTeX code for later use. I realized that replacing an entry in one column also affects other columns; they are displayed all with the same column width. Since the character string can be

Re: [R] Survival: pyears and ratetable: expected events

2011-05-28 Thread Jim Trabas
Hi thanks, The conventional method is solid (cross multiplication of patient years at each age and year and gender, with the corresponding risk for death at each age year and gender). I get about 26 expected deaths (verified by many different sources) Now what I am trying to do is get the same a

[R] Error loading workspaces after upgrade

2011-05-28 Thread Vereszki-Varga Péter
Dear Members, I upgraded R from 2.12.2 to 2.13.0 (binary) on my WinXP and now I can't load my workspaces. The error message is: "Error: object ‘BIC’ is not exported by 'namespace:nlme'" I tried to load 'nlme' before loading workspace, it did not help... Any idea to fix that? Thank you in ad

[R] ftable: how to replace NA and format entries without changing their mode?

2011-05-28 Thread Marius Hofert
Dear all, another ftable problem, now related to formatC. One typically would like to format entries in an ftable (adjust digits, replace NA, ...) before format() is applied to convert the formatted ftable to an object which xtable can deal with. The output of xtable can then be used within a La

Re: [R] ftable: how to replace NA and format entries without changing their mode?

2011-05-28 Thread David Winsemius
On May 28, 2011, at 7:19 AM, Marius Hofert wrote: Dear all, another ftable problem, now related to formatC. One typically would like to format entries in an ftable (adjust digits, replace NA, ...) before format() is applied to convert the formatted ftable to an object which xtable can deal

Re: [R] continuous time AR(1)

2011-05-28 Thread peter dalgaard
On May 27, 2011, at 18:00 , frossard victor wrote: > Dear R helpers, > I would like to model temporal trend of biological remains in sediment cores. > All samples are temporally auto-correlated and I would like to take this > effect > into account. > Initially I thought that I could use AR(1)

Re: [R] Error loading workspaces after upgrade

2011-05-28 Thread Uwe Ligges
On 28.05.2011 12:28, Vereszki-Varga Péter wrote: Dear Members, I upgraded R from 2.12.2 to 2.13.0 (binary) on my WinXP and now I can't load my workspaces. The error message is: "Error: object ‘BIC’ is not exported by 'namespace:nlme'" I tried to load 'nlme' before loading workspace, it di

Re: [R] ftable: how to replace NA and format entries without changing their mode?

2011-05-28 Thread David Winsemius
Received your offlist question and see that I did not understand your request. See below for another alternative On May 28, 2011, at 7:53 AM, David Winsemius wrote: On May 28, 2011, at 7:19 AM, Marius Hofert wrote: Dear all, another ftable problem, now related to formatC. One typically wou

[R] Nested design

2011-05-28 Thread unpeatable
Dear R-users, I have the following problem. I have performed an experiment for which I gathered a lot of data which I now want to test. The problem is that I cannot find an appropriate test in R (I am a starter) and someone might give me a hand. This is what I have done: Across three sites (Site)

[R] remove ", " at the end of each line for all lines except the first line in a data frame

2011-05-28 Thread xiaerwhite
the question ask me to use gsub() and subsetting to remove the comma at the end of the for all but the first value in a data frame. the first few lines are like the following: [1] "2177663,-41,175,2678248,6021224,1840,5,25,17,,,6,," "2177691,-39.6,176.2,2784798,6173592,1843,7,8,5,

Re: [R] Nested design

2011-05-28 Thread Dennis Murphy
Hi: Essentially, you are asking for free statistical advice, which is not within the intended scope of R-help. It's always better to consult with someone locally, and as luck would have it, your university apparently provides free statistical consulting for faculty and grad students: http://www.u

Re: [R] network package in R

2011-05-28 Thread Wincent
Can you be more specific about what a network builder is? and what do you want exactly? Your question seems a bit vague. Best Ronggui On 28 May 2011 05:32, Weiwei Shi wrote: > Hi there, > > I need a network builder and it can change the node size and color; I am > not > sure if network package

Re: [R] remove ", " at the end of each line for all lines except the first line in a data frame

2011-05-28 Thread Dennis Murphy
Homework question? This one's pretty easy; see ?regex ?gsub A couple of examples on gsub()'s help page are rather close to what you need. The basic structure is gsub(, , name_of_string) where the strings are enclosed in quotes. If you need to apply this function to each row of your data frame,

Re: [R] network package in R

2011-05-28 Thread Steve Lianoglou
Hi, On Fri, May 27, 2011 at 5:32 PM, Weiwei Shi wrote: > Hi there, > > I need a network builder and it can change the node size and color; I am not > sure if network package in R can do this or not. The other functions I > wanted have been found in that package. > > BTW, if there is another packa

Re: [R] Compiling Rgraphiz on Windows 7 64bit with R-2.13.0

2011-05-28 Thread krusty the klown
Thanks, I'm going to update it! -- View this message in context: http://r.789695.n4.nabble.com/Compiling-Rgraphiz-on-Windows-7-64bit-with-R-2-13-0-tp3493750p3557431.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org m

Re: [R] Nested design

2011-05-28 Thread unpeatable
Dear Dennis, In my opinion I am not at all asking for any stats help, just a question how to read this output. Thanks, Bjorn - Dr. Bjorn JM Robroek Ecology and Biodiversity Group Institute of Environmental Biology, Utrecht University Padualaan 8, 3584 CH Utrecht, The Netherlands Email address

[R] Enquiry on Vrtest

2011-05-28 Thread Chim Kaho
Hi there, I am currently working on my dissertation which is about testing the martingale hypothesis in the stock market using a methodology involving a range of variance ratio tests and multiple variance ratio tests. I contacted the author of a reference paper and I was told that the tests can be

Re: [R] Nested design

2011-05-28 Thread Joshua Wiley
Hi, If you are not asking for stats help, then do you understand the model and are just confused by how R labels it? We can help match R's labels to the ones you are used to, if you tell us what you are used to. Cheers, Josh On Sat, May 28, 2011 at 6:54 AM, unpeatable wrote: > Dear Dennis, >

Re: [R] network package in R

2011-05-28 Thread Weiwei Shi
Thank you, Steve. Initially I tried to choose b/w cytoscape and pajek, among other bunch of software. I did not realize the existence of RCytoscape; otherwise, I would probably use that one. Weiwei On Sat, May 28, 2011 at 9:25 AM, Steve Lianoglou < mailinglist.honey...@gmail.com> wrote: > Hi, >

[R] Questions regrading the lasso and glmnet

2011-05-28 Thread Ben Haller
Hi all. Sorry for the long email. I have been trying to find someone local to work on this with me, without much luck. I went in to our local stats consulting service here, and the guy there told me that I already know more about model selection than he does. :-< He pointed me towards ano

Re: [R] Enquiry on Vrtest

2011-05-28 Thread David Winsemius
On May 28, 2011, at 10:58 AM, Chim Kaho wrote: Hi there, I am currently working on my dissertation which is about testing the martingale hypothesis in the stock market using a methodology involving a range of variance ratio tests and multiple variance ratio tests. I contacted the author o

Re: [R] network package in R

2011-05-28 Thread Weiwei Shi
Actually I have another question relating to this, I have about 300 nodes (I can reduced them somehow if the network is too messy) and the similarity matrix between any two nodes. The size and color of nodes have some meanings and I tried to use the layout to show their "distance". Here is the qu

[R] how to train ksvm with spectral kernel (kernlab) in caret?

2011-05-28 Thread Immanuel
Hello all, I would like to use the train function from the caret package to train a svm with a spectral kernel from the kernlab package. Sadly a svm with spectral kernel is not among the many methods in caret... using caret to train svmRadial: -- library(caret) library(kernlab) d

[R] Markov Chain model coding

2011-05-28 Thread phillowe
Can anyone help with coding for Markov chain models. I have a data set from coral reefs in consecutive years that have been given a state depending on their coral and macroalgal cover. The markov model will be used to predict the cover of coral and macroalgae in the future dependant on the conditio

Re: [R] Nested design

2011-05-28 Thread Mike Marchywka
> Date: Sat, 28 May 2011 09:33:03 -0700 > From: jwiley.ps...@gmail.com > To: bjorn.robr...@gmail.com > CC: r-help@r-project.org > Subject: Re: [R] Nested design > > Hi, > > If you are not asking for stats help, then do you understand the model > a

[R] Observation in a confidence ellipse

2011-05-28 Thread Jessica Minkue
Hello everyone I really need some help here. I made a confidence ellipse using the function ellipse from the package ellipse: ellipse(SD, centre=colMeans(pcsref),t=sqrt((p * (n-1)/(n-p))*qf(0.99, p,n-p)) Now, I want to write a function whom return TRUE or FALSE if a given observation is in th

Re: [R] ggplot pale colors

2011-05-28 Thread Ista Zahn
Hi Victor, The problem is that you have not grasped the difference between setting an aesthetic to a fixed value and mapping it to a variable. See below for details. On Sat, May 28, 2011 at 6:16 AM, Victor Gabillon wrote: > Hello i am new to ggplot and i observed a strange behavior. > > I want to

Re: [R] network package in R

2011-05-28 Thread Steve Lianoglou
Hi again, On Sat, May 28, 2011 at 1:03 PM, Weiwei Shi wrote: > Actually I have another question relating to this, > > I have about 300 nodes (I can reduced them somehow if the network is too > messy) and the similarity matrix between any two nodes. The size and color > of nodes have some meanings

Re: [R] help with barplot

2011-05-28 Thread Thomas Levine
You can do pretty well without ggplot actually. boxplot(Time~paste(Incidents,Months),data=DF,border=c('grey20','red')) On Sat, May 28, 2011 at 2:55 AM, steven mosher wrote: > Thanks, > >  ggplot is on my list of things to learn before Hadley comes here to the > bay area >  to give a session on i

[R] Changing the name of the "R" process in top

2011-05-28 Thread Matthew Keller
Hi all, Perhaps this is more of a unix question, but I'll give it a try here. I am running 9 different R processes at the same time (called from a shell script using R CMD BATCH). When I use the top program to monitor how they are doing, it is impossible to tell which R process is related to whic

Re: [R] Changing the name of the "R" process in top

2011-05-28 Thread Steve Lianoglou
Hi, On Sat, May 28, 2011 at 2:48 PM, Matthew Keller wrote: > Hi all, > > Perhaps this is more of a unix question, but I'll give it a try here. > I am running 9 different R processes at the same time (called from a > shell script using R CMD BATCH).  When I use the top program to > monitor how the

Re: [R] Changing the name of the "R" process in top

2011-05-28 Thread Joshua Wiley
Hi Matt, Not sure about renaming it but what about something like: $ ps -aux | grep R each process will have a unique PID that you can use to tell them apart (possibly even the call that started it, but I am not presently in a position to test and do not remember for certain). HTH, Josh On Sa

Re: [R] Changing the name of the "R" process in top

2011-05-28 Thread Matthew Keller
Nice, Steve - I think this will work. I'll just call Sys.getpid() at the top of each session and then look at the .Rout files to figure out which is related to which... On Sat, May 28, 2011 at 1:10 PM, Steve Lianoglou wrote: > Hi, > > On Sat, May 28, 2011 at 2:48 PM, Matthew Keller > wrote: >>

[R] R on SMP...

2011-05-28 Thread Nüzhet Dalfes
Dear all, We would like to use our SMP system, HP Superdome (128 GB, 32 x 2-core Itanium) the best possible way with R, especially to tackle problems involving large matrices. Any suggestion will be most appreciated. H. Nüzhet Dalfes Professor Istanbul Technical University and Deputy Directo

Re: [R] Normality test

2011-05-28 Thread Greg Snow
To build on Robert's suggestion (which is very good to begin with), you might consider using the vis.test function in the TeachingDemos package with the vt.qqnorm function. This will create the qq plot of your data along with several other qqplots of normal samples of the same size. If you can

Re: [R] Markov Chain model coding

2011-05-28 Thread Greg Snow
The msm package may be of use to you. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of phillowe Sent: Saturday, May 28, 2011 10:51 AM To: r-help@r-project.org Subject: [R] Markov Chain model coding Can anyone help with coding for Ma

Re: [R] Observation in a confidence ellipse

2011-05-28 Thread Greg Snow
There are point in polygon functions in some of the spatial packages that would tell you if a point is within a polynomial approximation of the ellipse. But in your case I would take a different approach. Generally confidence ellipses are based on manhalobis distances, so you can just compute

Re: [R] help with barplot

2011-05-28 Thread steven mosher
Thanks Thomas. On Sat, May 28, 2011 at 11:29 AM, Thomas Levine wrote: > You can do pretty well without ggplot actually. > > boxplot(Time~paste(Incidents,Months),data=DF,border=c('grey20','red')) > > On Sat, May 28, 2011 at 2:55 AM, steven mosher > wrote: > > Thanks, > > > > ggplot is on my

Re: [R] rqss help in Quantreg

2011-05-28 Thread Sergius Cerice
Dear All, I,m trying to fulfill a constraint nonparametric quantile regression analysis for monthly stock index and gdp (159 cases of data) using rqss function of quantreg package. I need to specify that stock prices are nondecreasing with growing gdp. I tried the following simple code fit1<-

[R] tm package

2011-05-28 Thread lloyd barcza
Hi, I am using the "tm" package. When I try to use findfreqterms I get an error message: findfreqterms(dtm,2,5) Error: could not find function "findfreqterms" Obvious thing such as calling the "tm" library and a creating document term matrix have been covered. I cannot find any dependencies th

[R] Three sigma rule

2011-05-28 Thread Salil Sharma
Dear Sir, I have data, coming from tests, consisting of 300 values. Is there a way in R with which I can confirm this data to 68-95-99.8 rule or three-sigma rule? I need to look around percentile ranks and prediction intervals for this data. I, however, used SixSigma package and used ss.ci() f

[R] prcomp & eigenvectors ... ??

2011-05-28 Thread Natalie Stephenson
Hi ... Please could you help with probably a very simple problem I have. I'm completely new to R and am trying to follow a tutorial using R for Force Distribution Analysis that I got from ... http://projects.eml.org/mbm/website/fda_gromacs.htm. Basically, the MDS I preform outputs a force m

Re: [R] help! complete the reviewer's suggest: carry out GA+GP (gaussian process)!

2011-05-28 Thread jeeva
I do not know about what you are asking. But your thread was helpful for me to workout some libsvm codes. Thank you for your help. Maybe we can interact for more productive work. -- View this message in context: http://r.789695.n4.nabble.com/help-complete-the-reviewer-s-suggest-carry-out-GA-GP-ga

Re: [R] tm package

2011-05-28 Thread David Winsemius
On May 28, 2011, at 2:21 PM, lloyd barcza wrote: Hi, I am using the "tm" package. When I try to use findfreqterms I get an error message: findfreqterms(dtm,2,5) Error: could not find function "findfreqterms" You are spelling it incorrectly. Obvious thing such as calling the "tm" libra

Re: [R] Three sigma rule

2011-05-28 Thread David Winsemius
On May 28, 2011, at 2:12 PM, Salil Sharma wrote: Dear Sir, I have data, coming from tests, consisting of 300 values. Is there a way in R with which I can confirm this data to 68-95-99.8 rule or three- sigma rule? Can you describe this rule? I get the idea that it might be "private lan

[R] Installing package rgdal

2011-05-28 Thread Alex Olssen
Dear R-helpers, I am trying to install the package "rgdal" using the command install.packages("rgdal") in R. I get the following error "Error: proj_api.h not found. If the PROJ.4 library is installed in a non-standard location, use --configure-args='--with-proj-include=/opt/local/include' for

Re: [R] Installing package rgdal

2011-05-28 Thread Phil Spector
Alex - Notice that the error message says "Error: proj_api.h not found." Files ending with a suffix of .h are known as header files, and on Ubuntu, they are distributed in so-called development packages, which generally end with -dev . So I'm guessing that you installed the proj-bin package, an

Re: [R] Observation in a confidence ellipse

2011-05-28 Thread Rolf Turner
On 29/05/11 05:45, Jessica Minkue wrote: Hello everyone I really need some help here. I made a confidence ellipse using the function ellipse from the package ellipse: ellipse(SD, centre=colMeans(pcsref),t=sqrt((p * (n-1)/(n-p))*qf(0.99, p,n-p)) Now, I want to write a function whom return TRUE

Re: [R] Markov Chain model coding

2011-05-28 Thread Rolf Turner
On 29/05/11 04:50, phillowe wrote: Can anyone help with coding for Markov chain models. I have a data set from coral reefs in consecutive years that have been given a state depending on their coral and macroalgal cover. The markov model will be used to predict the cover of coral and macroalgae in

[R] Setting max. iterations for lmer

2011-05-28 Thread Downey, Patrick
Hello, I hate to ask a question which is directly addressed in the documentation, but can someone please give me an example of how to change the maximum number of iterations used by lmer. I'm having a hard time understanding this: control a list of control parameters. See below for d

Re: [R] Setting max. iterations for lmer

2011-05-28 Thread Joshua Wiley
Hi Mitch, Something like: m <- lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy, control = list(maxIter = 1)) Hope this helps, Josh On Sat, May 28, 2011 at 6:05 PM, Downey, Patrick wrote: > Hello, > > I hate to ask a question which is directly addressed in the documentation

Re: [R] Normality test

2011-05-28 Thread Bogaso Christofer
Hi Greg, please forgive me as I could not understand one part of your wishful reply. You said: "distributions where one is uniform between 0 and 1 with height 1; the other also has height 1 between 0 and 0.99, but is also 1 between 999.99 and 1000, zero elsewhere. " Can you be more specific on this

[R] newbie xml parsing question

2011-05-28 Thread eric
I am trying to read some data off the zillow site. Newbie to xml, html, parsing and the xml package. I've been able to load the web page I'm interested with the following code but I'm not sure of the next step to get the information I'm interested in into R : library(XML) url <- "http://www.zillow

[R] How to do operations on zoo/xts objects with Monthly and Daily periodicities

2011-05-28 Thread thierrydb
Is there an elegant way to do operations (+/-/*/ / ) on zoo/xts objects when one serie is monthly (end of month) and the other daily (weekdays only) - typically a monthly economic indicator and a stock index price? Thanks, TDB -- View this message in context: http://r.789695.n4.nabble.com/H

[R] Relevel() catagorical variables in a GLM

2011-05-28 Thread ashley
Hello list readers, I am running a set of GLMs on fish spp presence/absence as a function of various habitat characteristics. My response is binomial and I have four predictors, three of which are categorical. So, R takes one of my predictor-variables away to use as the intercept (the first one

[R] EMA package

2011-05-28 Thread Rosario Garcia Gil
Hello I want to use the test.nested.model, in order to compare two nested models, which is under package EMA, however, I did not find it in the list of packages to install in R. How is this possible? Thanks for help in advance. Rosario __ R-help@r-pro

Re: [R] Problem in installing and starting Rattle

2011-05-28 Thread yz
I replace the zlib1.dll in system32 C:\WINDOWS\system32\zlib1.dll with the zlib1.dll in GTK2 D:\GTK2-Runtime\bin\zlib1.dll -- View this message in context: http://r.789695.n4.nabble.com/Problem-in-installing-and-starting-Rattle-tp3042502p3558335.html Sent from the R help mailing list archive at N

Re: [R] Relevel() catagorical variables in a GLM

2011-05-28 Thread Joshua Wiley
Hi Ashley, It does not look like you have done the wrong thing to me. The results will be different because eacho f the parameter estimates is now the change from SS to ___ instead of from HH to . In fact, from your first table, you can calculate all the parameters in the second. The interc

Re: [R] EMA package

2011-05-28 Thread Joshua Wiley
Hi Rosario, Can you provide the results of sessionInfo() ? install.packages("EMA") works for me. Cheers, Josh On Sat, May 28, 2011 at 4:27 PM, Rosario Garcia Gil wrote: > Hello > > I want to use the test.nested.model, in order to compare two nested models, > which is under package EMA, howe