Re: [R] fitdistr question

2011-02-11 Thread Ingmar Visser
The ML estimate of lambda is the mean, so no need for (iterative) optimization. See eg: http://mathworld.wolfram.com/MaximumLikelihood.html hth, Ingmar On Fri, Feb 11, 2011 at 8:52 AM, Antje Niederlein niederlein-rs...@yahoo.de wrote: Hello, I tried to fit a poisson distribution but looking

Re: [R] extracting characters from string

2011-02-11 Thread Soumendra
Well, I believe, given the original statement of the problem, that it is philosophically wrong to use the gsub approach. What if there are 50 underscores instead of 5, and you want to extract the characters after the 23rd underscore? By using gsub, you are trying to fight against the pattern of

Re: [R] Revolution Analytics reading SAS datasets

2011-02-11 Thread Tobias Verbeke
On 02/10/2011 07:44 PM, David Smith wrote: The SAS import/export feature of Revolution R Enterprise 4.2 isn't open-source, so we can't release it in open-source Revolution R Community, or to CRAN as we do with the ParallelR packages (foreach, doMC, etc.). It is, though, available for download

Re: [R] fitdistr question

2011-02-11 Thread Antje Niederlein
Hi Ingmar, hi Dennis, okay, you're right. I was expecting that the result would give the best fit to my data even if it's not a real poisson distribution. It looks somehow similar... But how to judge the goodness of fit? I was using the residual sum of squares. I'm not a statistician, so I'm not

Re: [R] Optimal choice of the threshold u in Peak Over Threshold (POT)Approach

2011-02-11 Thread Pfaff, Bernhard Dr.
Dear Fir, for instance, have a look at the package 'ismev' and the function mrl.plot(). The CRAN task view 'Finance' lists many more packages that address EVT under the topic 'Risk management'. Best, Bernhard -Ursprüngliche Nachricht- Von: r-help-boun...@r-project.org

Re: [R] fitdistr question

2011-02-11 Thread Antje Niederlein
Yes, I understand. If I have a distribution which is not listed in fitdistr() but I still would like to you compute the ML estimate. Would it be correct to maximize the following function? sum( log( dens_mydistr(x, my_distr_param))) As I said, I try to step into this field by reading and trying

[R] directed MST

2011-02-11 Thread amir
Hi every body, Is there any function in R to find the Directed Minimum Spanning tree? There are some for undirected but I am looking for a directed Minimum spannin tree. Regards, Amir __ R-help@r-project.org mailing list

Re: [R] Ggplot: free x-scales in a facet-grid

2011-02-11 Thread Strategische Analyse CSD Hasselt
Hello, hereby the code with example data, as an attach to my question (see mail below). Thank you! Ann library(ggplot2) library(grid) library(RColorBrewer) library(car) library(reshape) #make dataframe ID=c(a,b,c,d,e,f,g,h,i,j)

[R] How to compute yaxp and usr without plotting ?

2011-02-11 Thread Yves REECHT
Dear all, I'd like to know how I could compute the parameters yaxp and (the y components of) usr without having to plot the data first. Note that ylim is /a priori/ fixed. The aim is to automatically adjust the parameter mgp without having to make the plot twice. Then, with yaxp and usr

Re: [R] Simulation of Multivariate Fractional Gaussian Noise and Fractional Brownian Motion

2011-02-11 Thread Wonsang You
Dear Kjetil, Thank you so much for your advice on my question. Best Regards, Wonsang 2011/2/10 Kjetil Halvorsen kjetilbrinchmannhalvor...@gmail.com What you can do to find out is to type into your R session RSiteSearch(multivariate fractional gaussian) That seems to give some usefull

Re: [R] Writing R packages in an easier way?

2011-02-11 Thread Barry Rowlingson
On Fri, Feb 11, 2011 at 7:52 AM, Dr. Michael Wolf m-w...@muenster.de wrote: Dear R colleagues, is there an easier way to write R packages for the own use - without RTools and TeX? There are simpler ways of maintaining R source code than building packages. I bashed out a quick way of keeping

Re: [R] Ggplot: free x-scales in a facet-grid

2011-02-11 Thread ONKELINX, Thierry
Dear Ann, The easiest way is to seperate both plots into two subplots. And then use viewport to paste them together. Best regards, Thierry p1 - ggplot(subset(data.melt, pos = FALSE),aes(value,ID)) + geom_point(aes(groups=time,colour=time,shape=time)) +

Re: [R] Matrix of Matrices?

2011-02-11 Thread Petr Savicky
On Thu, Feb 10, 2011 at 11:54:50PM -0800, Alaios wrote: Dear all I have a few matrices that I would like to store alltogether under a bigger object. My matrixes with the same name were calculated inside a loop like for (few times){ estimatedsr- this is my matrix

Re: [R] Writing R packages in an easier way?

2011-02-11 Thread Spencer Graves
Dear Dr. Wolf: I understand your concern that the mechanics of writing an R package can be difficult. It was hard for me when I started. I came to embrace it, because I actually got more done in less time doing so. In my previous experience, as code I wrote got more

Re: [R] Writing R packages in an easier way?

2011-02-11 Thread S Ellison
Dr. Michael Wolf m-w...@muenster.de 11/02/2011 07:52 is there an easier way to write R packages for the own use - without RTools and TeX? Installing Rtools is not hard, and doesn't have to happen often; the hardest bit in Windows is making sure that the requisite executables are on the path,

Re: [R] Writing R packages in an easier way?

2011-02-11 Thread Barry Rowlingson
On Fri, Feb 11, 2011 at 12:33 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: Dear Dr. Wolf:      I understand your concern that the mechanics of writing an R package can be difficult.  It was hard for me when I started. I should add that although I did write that

[R] Large Datasets

2011-02-11 Thread John Filben
I have recently been using R - more speciifcally the GUI packages Rattle and Rcmdr. I like these products a lot and want to use them for some projects - the problem that I run into is when I start to try and run large datasets through them.  The data sets are 10-15 million in record quantity

[R] Ordinal logistic regression (lrm)- checking model assumptions

2011-02-11 Thread Anna Berthinussen
Dear all, I have been using the lrm function in R to run an ordinal logistic regression and I am a bit confused about the methods for checking the model assumptions. I have produced residual plots in R of the score.binary type which I think look ok. However, the partial type plots show

Re: [R] How can we make a vector call a function element-wise efficiently?

2011-02-11 Thread Eik Vettorazzi
Hi, you compute the same results for logx many times. So it is easier and time saving tabulating all intermediate results. smth. like n-10 CT=6000#assignment to CT NT=29535210#assignment to NT i - 0:(n-1) lookup- lchoose(NT-n, CT-i) + lchoose(n, i) lgmax-cummax(lookup)

Re: [R] R example code of Split-plot Manova

2011-02-11 Thread John Fox
Dear Xiang Gao, See the OBrienKaiser example in ?Anova in the car package. I hope this helps, John -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Xiang Gao Sent: March-15-10 4:35 PM To: r-help@r-project.org Subject: [R] R

[R] Using merge

2011-02-11 Thread Ronaldo Reis Junior
Hi, I have two tables and I need to merge both. I use the merge command, but in this way the name must be exactly. How I can make to compare independently of upper or lower-case? Look: data1-data.frame(journal=c(Ecology,Environmental Entomology,Neotropical Biology And Conservation))

[R] censReg or tobit: testing for assumptions in R?

2011-02-11 Thread E Hofstadler
Hello! I'm thinking of applying a censored regression model to cross-sectional data, using either the tobit (package survival) or the censReg function (package censReg). The dependent variable is left and right-censored. My hopefully not too silly question is this: I understand that

[R] Using filled.contour and contour functions together

2011-02-11 Thread Xavier Bodin
Dear R help contributors, I'd like to plot ground temperature with time on X-axis and depth on Y-axis on this datasets ( http://r.789695.n4.nabble.com/file/n3301033/NEdaily.csv NEdaily.csv ), and to do so I use the following commands: library(RSEIS) xNE - seq(1,

[R] extracting p-values from the Manova function (car library)

2011-02-11 Thread Bettina Kulle Andreassen
hi, i am not able to extract the p-values from the Manova function in the car library. I need to use this function in a high-throughput setting and somehow need the p-values produced. Any ideas? Best regards Bettina Kulle Andreassen -- Bettina Kulle Andreassen University of Oslo

[R] Extract a slot value from a 'SpatialPolygons' class object

2011-02-11 Thread Xavier Hoenner
Dear R-users, I’m currently trying to extract the value of a slot (area) but can’t find out how to do that. str(overlperc) List of 1 $ :Formal class 'SpatialPolygons' [package sp] with 4 slots .. ..@ polygons :List of 1 .. .. ..$ :Formal class 'Polygons' [package sp] with 5 slots ..

Re: [R] When is *interactive* data visualization useful to use?

2011-02-11 Thread Mike Marchywka
From: tal.gal...@gmail.com Date: Fri, 11 Feb 2011 08:26:16 +0200 To: r-help@r-project.org Subject: [R] When is *interactive* data visualization useful to use? Hello all, Before getting to my question, I would like to apologize for asking this

[R] Passing function arguments

2011-02-11 Thread Michael Pearmain
Hi All, Im looking for some help passing function arguments and referencing them, I've made a replica, less complicated function to show my problem, and how i've made a work around for this. However i suspect there is a _FAR_ better way of doing this. If i do: BuildDecayModel - function(x =

Re: [R] Using merge

2011-02-11 Thread Ronaldo Reis Junior
Hi, ignore my e-mail, a just use tolower function. thanks and sorry Ronaldo Em 11-02-2011 11:24, Ronaldo Reis Junior escreveu: Hi, I have two tables and I need to merge both. I use the merge command, but in this way the name must be exactly. How I can make to compare independently of

Re: [R] fitdistr question

2011-02-11 Thread Ben Bolker
Antje Niederlein niederlein-rstat at yahoo.de writes: Hi Ingmar, hi Dennis, okay, you're right. I was expecting that the result would give the best fit to my data even if it's not a real poisson distribution. It looks somehow similar... But how to judge the goodness of fit? I was using

Re: [R] Large Datasets

2011-02-11 Thread Wonsang You
I have not ever tried to use any GUI package. Thus, I cannot give you a good help. Instead, I would like to report my experience of exploiting the 'ff' package to have access to large dataset. To achieve your goal, I think that you need to make any function which handles ff objects. According to

Re: [R] Comparison of glm.nb and negbin from the package aod

2011-02-11 Thread Ben Bolker
sabwo sabsiw at gmx.at writes: [big snip; comparing aod::negbin and MASS::glm.nb fits] The thing i really dont understand is why there is such a big difference between the deviances? (glm.nb = 30.67 and negbin=52.09?) Shouldnt they be nearly the same?? I don't have time to dig into this

Re: [R] How can we make a vector call a function element-wise efficiently?

2011-02-11 Thread Eik Vettorazzi
Hi ZhaoXing, without knowledge about the ultimate purpose of your calculations its quite difficult to give further hints. best regards Am 11.02.2011 14:35, schrieb zhaoxing731: Dear Eik What a great idea!!! Thank you so much for your colossal improvment Yes, you have a unique eye on the

[R] Re. When is *interactive* data visualization useful to use?

2011-02-11 Thread Antony Unwin
Hello Tal, You asked *When is it helpful to use interactive plots? Either for data exploration (for ourselves) and data presentation (for a client)?* My answer: It's helpful for checking data quality, for exploration with and without clients, for checking results, and for data presenting.

[R] RCurl - HTTP request of header ONLY

2011-02-11 Thread Janko Thyson
Hi everyone, I'm trying to send an HTTP request using RCurl that only requests the response header, not the actual content. http://curl.haxx.se/docs/httpscripting.html says you can do this by using the following option: curl --head http://www.something.com/ However, I can't figure out how to do

Re: [R] Matrix of Matrices?

2011-02-11 Thread Alaios
Thanks that did the work. Once I have that list what is the easiest way to export the structure as well as the contents (numbers) into a file. The purpose is to share that file with a colleague and ask him to load that variable with its contents and structure. Best Regards Alex --- On Fri,

Re: [R] Matrix of Matrices?

2011-02-11 Thread Petr Savicky
On Fri, Feb 11, 2011 at 06:17:16AM -0800, Alaios wrote: Thanks that did the work. Once I have that list what is the easiest way to export the structure as well as the contents (numbers) into a file. The purpose is to share that file with a colleague and ask him to load that variable with

Re: [R] Revolution Analytics reading SAS datasets

2011-02-11 Thread Abhijit Dasgupta, PhD
I'm sure the legal ground is tricky. However, OpenOffice and LibreOffice and KWord have been able to open the (proprietary) MS Word doc format for a while now, and they are open source (and Libre Office might even be GPL'd), so the algorithm is in fact published in Jeremy's sense, and has

[R] cycle in a directed graph

2011-02-11 Thread amir
Hi, I have a directed graph and wants to find is there any cycle in it? If it is, which nodes or edges are in the cycle. Is there any way to find the cycle in a directed graph in R? Regards, Amir __ R-help@r-project.org mailing list

[R] Creating a ragged array

2011-02-11 Thread Barth B. Riley
Dear list I am trying to figure out how to create a ragged array that consists of groups of array elements (indices from the original array) of similar values. I would like to create a ragged array that might look something like this: S[1] 11, 19, 14,7 S[2] 29,4,1,13,44 S[3] 56,9,2,35 S[4]

[R] lattice auto.key gives mismatch colors

2011-02-11 Thread John Smith
Hello All, I am using the following code to draw a figure. But the legend given buy auto.key has mismatched colors. Could any one help me? I am using R2.12.1 and most current lattice on windows XP. Thanks John library(lattice) src - data.frame(t=rep(c('A','B','C','D'), rep(8,4)),

Re: [R] Loop in variable names

2011-02-11 Thread Eik Vettorazzi
Hi Stella, if you just want to print the tables, this should also work for(i in angus) { tab - paste(table, i, sep=) cut - paste(P,i, sep = ) print(table(StoreData$CompanyID, !is.na(StoreData[,cut]))) } If you want to keep them, your approach works, but you can also store them in a

Re: [R] Creating a ragged array

2011-02-11 Thread Gabor Grothendieck
On Fri, Feb 11, 2011 at 10:39 AM, Barth B. Riley bbri...@chestnut.org wrote: Dear list I am trying to figure out how to create a ragged array that consists of groups of array elements (indices from the original array) of similar values. I would like to create a ragged array that might look

Re: [R] Extract a slot value from a 'SpatialPolygons' class object

2011-02-11 Thread David Winsemius
On Feb 11, 2011, at 5:11 AM, Xavier Hoenner wrote: Dear R-users, I’m currently trying to extract the value of a slot (area) but can’t find out how to do that. Generally the authors of S4 method provide extractor functions, so the first question would be what functions were used to

Re: [R] Revolution Analytics reading SAS datasets

2011-02-11 Thread Chao(Charlie) Huang
I am right now using Revolution R Enterprise 4.2. Could somebody show me how to import/export SAS datasets. Thanks. On Fri, Feb 11, 2011 at 8:52 AM, Abhijit Dasgupta, PhD aikidasgu...@gmail.com wrote: I'm sure the legal ground is tricky. However, OpenOffice and LibreOffice and KWord have

Re: [R] Passing function arguments

2011-02-11 Thread David Winsemius
On Feb 11, 2011, at 6:14 AM, Michael Pearmain wrote: Hi All, Im looking for some help passing function arguments and referencing them, I've made a replica, less complicated function to show my problem, and how i've made a work around for this. However i suspect there is a _FAR_ better

Re: [R] Revolution Analytics reading SAS datasets

2011-02-11 Thread Chao(Charlie) Huang
Liao, Thanks for your reply. Those solutions you mentioned used CSV or 3rd party middleware. I used Revolution R for a while. Since last week Revolution R Enterprise 4.2 could read/write SAS native dataset(.sas7bdat format), I am looking for any documents to try this feature out. Anybody can

Re: [R] Revolution Analytics reading SAS datasets

2011-02-11 Thread David Winsemius
On Feb 11, 2011, at 11:32 AM, Chao(Charlie) Huang wrote: I am right now using Revolution R Enterprise 4.2. Could somebody show me how to import/export SAS datasets. Thanks. Should you be asking the company from whom you obtained this proprietary product? -- David. On Fri, Feb 11,

[R] foreach with registerDoMC on R 2.12.0 OSX 10.6 --- errors and warnings

2011-02-11 Thread ivo welch
some hints for the search engines. I just did install.packages(foreach) install.packages(doMC) library(doMC) registerDoMC() library(foreach) foreach(i = 1:3) %dopar% sqrt(i) The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec(). Break

Re: [R] Large Datasets

2011-02-11 Thread David Winsemius
On Feb 11, 2011, at 7:51 AM, John Filben wrote: I have recently been using R - more speciifcally the GUI packages Rattle and Rcmdr. I like these products a lot and want to use them for some projects - the problem that I run into is when I start to try and run large datasets through

Re: [R] Revolution Analytics reading SAS datasets

2011-02-11 Thread Martin Maechler
CH == Chao(Charlie) Huang hch...@gmail.com on Fri, 11 Feb 2011 10:32:06 -0600 writes: CH I am right now using Revolution R Enterprise 4.2. Could CH somebody show me how to import/export SAS CH datasets. Thanks. but not primarily on R-help, please. At first, note that R is GNU

Re: [R] extracting p-values from the Manova function (car library)

2011-02-11 Thread Ista Zahn
Hi, one approach is to modify getAnywhere(print.Anova.mlm) to return the information you want. Best, Ista On Fri, Feb 11, 2011 at 7:16 AM, Bettina Kulle Andreassen b.k.andreas...@medisin.uio.no wrote: hi, i am not able to extract the p-values from the Manova function in the car library. I

[R] Help optimizing EMD::extrema()

2011-02-11 Thread Mike Lawrence
Hi folks, I'm attempting to use the EMD package to analyze some neuroimaging data (timeseries with 64 channels sampled across 1 million time points within each of 20 people). I found that processing a single channel of data using EMD::emd() took about 8 hours. Exploration using Rprof() suggested

Re: [R] series of boxplots

2011-02-11 Thread Juliet Hannah
If you could provide a small example of an actual data set (using dput), you may get some suggestions specific to your goals. Here are a few examples of boxplots. If these look along the lines of what you are looking for, you may want to search the ggplot2 mailing list for more examples.

Re: [R] Where can I download/install grDevices

2011-02-11 Thread Peter Ehlers
On 2011-02-10 18:41, Dennis Murphy wrote: Hi: Here's one way: plot(1~1,ylab=expression(Areas (~mu*m^2~))) The tildes incorporate space between the math and text elements; they're optional, but useful. Another way that also works is plot(1~1,ylab=expression(paste(Areas (, mu*m^2, ), sep = '

Re: [R] Writing R packages in an easier way?

2011-02-11 Thread Uwe Ligges
On 11.02.2011 13:38, S Ellison wrote: Dr. Michael Wolfm-w...@muenster.de 11/02/2011 07:52 is there an easier way to write R packages for the own use - without RTools and TeX? Installing Rtools is not hard, and doesn't have to happen often; the hardest bit in Windows is making sure that

Re: [R] Calling symbols from dataframe for xyplot

2011-02-11 Thread Greg Snow
The more common way to do this is to use groups, the default is to have a different color for each group, but you can change that using trellis.par.set: tmp - trellis.par.get() tmp$superpose.symbol$pch = 0:10 trellis.par.set(tmp) xyplot(Sepal.Width ~ Petal.Width, data=iris, groups=Species,

Re: [R] foreach with registerDoMC on R 2.12.0 OSX 10.6 --- errors and warnings

2011-02-11 Thread David Smith
Are you using doMC within the Mac GUI or from the Terminal? The doMC package doesn't work within the GUI, you need to run R directly from the command line. # David Smith On Fri, Feb 11, 2011 at 8:56 AM, ivo welch ivo...@gmail.com wrote: some hints for the search engines. I just did  

Re: [R] Writing R packages in an easier way?

2011-02-11 Thread Dr. Michael Wolf
Dear collegues, thanks for your helpfull and persuasive comments. I see that all of you propose to work with the official method building R packages. The code of importing functions which Barry Rowlingson posted to the forum is very interesting and perhaps I can use this for solving other

Re: [R] When is *interactive* data visualization useful to use?

2011-02-11 Thread Claudia Beleites
Dear Tal, dear list, I think the importance of interactive graphics has a lot do with how visual your scientific discipline works. I'm spectroscopist, and I think we are very visually oriented: if I think of a spectrum I mentally see a graph. So for that kind of work, I need a lot of

Re: [R] Writing R packages in an easier way?

2011-02-11 Thread Gabor Grothendieck
On Fri, Feb 11, 2011 at 7:38 AM, S Ellison s.elli...@lgc.co.uk wrote: Dr. Michael Wolf m-w...@muenster.de 11/02/2011 07:52 is there an easier way to write R packages for the own use - without RTools and TeX? Installing Rtools is not hard, and doesn't have to happen often; the hardest bit

Re: [R] Writing R packages in an easier way?

2011-02-11 Thread Steve Lianoglou
Hi, Another option is to go ahead and make the package structure you're used to, but try to load and use it via Hadley's devtools package, instead of installing it for use. It might do the trick for you: https://github.com/hadley/devtools -steve On Fri, Feb 11, 2011 at 2:14 PM, Dr. Michael

Re: [R] Getting p-value from summary output

2011-02-11 Thread Alice Lin
Awesome! Thanks so much! On Thu, Feb 10, 2011 at 6:13 PM, Dennis Murphy djmu...@gmail.com wrote: Hi: Try summary(myprobit)$coefficients[, 4] HTH, Dennis On Thu, Feb 10, 2011 at 3:46 PM, Allie818 alice...@gmail.com wrote: I can get this summary of a model that I am running:

[R] linear models with factors

2011-02-11 Thread ATANU
i am trying to fit a linear model with both continuous covariates and factors. When fitted with the intercept term the first level of the factor is treated by R as intercept and the estimate of the effects of remaining levels(say i th level) are given as true estimate of i th level - estimate

[R] take my name from the list

2011-02-11 Thread Fernanda Melo Carneiro
How I can take out my name from this list? Fernanda Melo Carneiro contato: (62) 3521-1480 e 8121-7374www.ecoevol.ufg.br Laboratório de Ecologia Teórica e Síntese (UFG)   [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] Revolution Analytics reading SAS datasets

2011-02-11 Thread Gong-Yi Liao
If you have SAS, You can read Dr. Harrell's page: http://biostat.mc.vanderbilt.edu/wiki/Main/SASexportHowto if not, you can take a look on WPS: http://www.teamwpc.co.uk/products On Fri, 2011-02-11 at 10:32 -0600, Chao(Charlie) Huang wrote: I am right now using Revolution R Enterprise 4.2.

[R] Package distr and define your own distribution

2011-02-11 Thread Gabriel.Cardi
Hi all I am using the Package distr (and related) Do you know if it is possible to define your own distribution (object) GIVEN that you have an analytical form of the probability density function (pdf) ? I would then like to use the standard feature of the distr and related packages. Best

[R] About classification methods.

2011-02-11 Thread Jaeik Cho
Dear R users, I'm new of the R, I really don't know much. I want classification some data (two class, many features and huge size of data) by using R. At this case, I want using Support Vector Machine, Bayes theory based classifier, Discriminant Analysis, Regression based at least. Which

Re: [R] Need help merging two dataframes

2011-02-11 Thread B77S
## i didn't try this, but I would think it would work newAB -data.frame(AB$id, AB$age, AB$sex, AB$area) colnames(newAB)-c(id,age, sex, area) uni.newAB - unique(newAB) t3-merge(t2, uni.newAB, by=id, all=FALSE) -- View this message in context:

[R] problem with installing packages

2011-02-11 Thread xin shi
Dear: I am recnetly trying to install some libraries. However, I found this issue for both my laptop and desktop even I uninstall and install it again. I even can not update the R now. I wonder if you have the similar issue. Thakns! Xin chooseCRANmirror() Warning message: In

Re: [R] How can we make a vector call a function element-wise efficiently?

2011-02-11 Thread zhaoxing731
Dear Eik What a great idea!!! Thank you so much for your colossal improvment Yes, you have a unique eye on the numerical problem, I am worrying about this problem right now, hope you could give me new idea again Hi, you compute the same results for logx many times. So it is easier and time

Re: [R] Tinn R

2011-02-11 Thread klatinez
Hi Dieter, It works for me. Thanks Karen -- View this message in context: http://r.789695.n4.nabble.com/Tinn-R-tp878805p3301466.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]] __

Re: [R] cycle in a directed graph

2011-02-11 Thread rex.dwyer
If the graph has n nodes and is represented by an adjacency matrix, you can square the matrix (log_2 n)+1 times. Then you can multiply the matrix element-wise by its transpose. The positive entries in the 7th row will tell you all nodes sharing a cycle with node 7. This assumes all edge

Re: [R] take my name from the list

2011-02-11 Thread David Winsemius
On Feb 11, 2011, at 7:25 AM, Fernanda Melo Carneiro wrote: How I can take out my name from this list? Please read the information on the page where you signed up. Fernanda Melo Carneiro contato: (62) 3521-1480 e 8121-7374www.ecoevol.ufg.br Laboratório de Ecologia Teórica e Síntese

Re: [R] take my name from the list

2011-02-11 Thread Ista Zahn
See the link at the bottom of every message sent to this list... -Ista On Fri, Feb 11, 2011 at 7:25 AM, Fernanda Melo Carneiro fermelcar2...@yahoo.com.br wrote: How I can take out my name from this list? Fernanda Melo Carneiro contato: (62) 3521-1480 e 8121-7374www.ecoevol.ufg.br Laboratório

Re: [R] take my name from the list

2011-02-11 Thread Sarah Goslee
The answer to that question appears on each and every message to the list, including this one. But for your convenience: https://stat.ethz.ch/mailman/listinfo/r-help On Fri, Feb 11, 2011 at 7:25 AM, Fernanda Melo Carneiro fermelcar2...@yahoo.com.br wrote: How I can take out my name from this

Re: [R] take my name from the list

2011-02-11 Thread Steve Lianoglou
There is a link at the bottom of every email sent from this list: https://stat.ethz.ch/mailman/listinfo/r-help Go there, scroll to the bottom of page, and follow the unsubscribe instructions. On Fri, Feb 11, 2011 at 7:25 AM, Fernanda Melo Carneiro fermelcar2...@yahoo.com.br wrote: How I can

Re: [R] linear models with factors

2011-02-11 Thread Ista Zahn
I don't see any question here, other than can you please help me. Since long-awaited esp package has still not been released, you're going to have to be more specific than that... Best, Ista On Fri, Feb 11, 2011 at 2:05 PM, ATANU ata.s...@gmail.com wrote: i am trying to fit a linear model with

Re: [R] About classification methods.

2011-02-11 Thread David Winsemius
On Feb 11, 2011, at 1:36 PM, Jaeik Cho wrote: Dear R users, I'm new of the R, I really don't know much. I want classification some data (two class, many features and huge size of data) by using R. At this case, I want using Support Vector Machine, Bayes theory based classifier,

Re: [R] About classification methods.

2011-02-11 Thread Bert Gunter
Which package should I using, and can I compare each classifier result by predictions? By prediction on the training data, emphastically no. By prediction on new data not used for training, yes. -- Bert __ R-help@r-project.org mailing list

[R] [R-pkgs] adehabitatMA, LT, HR and HS version 0.1

2011-02-11 Thread Clément Calenge
Dear all, I have just uploaded 4 new packages on CRAN, which are on the long term designed to replace the old package adehabitat: * adehabitatMA: functions to perform spatial operations (morphology, buffer, etc.) * adehabitatHS: functions for the analysis of habitat selection by wildlife *

[R] [R-pkgs] ez version 3.0

2011-02-11 Thread Mike Lawrence
Hi folks, I'd like to announce the release of version 3.0 of the ez package. This package was developed to aid those that are new to statistical programming. Over the course of several years of helping colleagues and students learn R, I observed that folks are often initially turned off R because

[R] R for mac, default load package.

2011-02-11 Thread Jaeik Cho
Dear R users, I'm looking for solution about how can I add a package to default load package list. Because, some packages, every time I use the package for analysis. I don't want type load(package) every time. On the R instruction, I should change .Rprofile file, but I couldn't find R for

[R] Fwd: About classification methods.

2011-02-11 Thread Jaeik Cho
I mean, after done for the testing step, I want show which data classified to wrong class. That predictions. Jaeik Begin forwarded message: From: Bert Gunter gunter.ber...@gene.com Date: February 11, 2011 3:00:47 PM CST To: David Winsemius dwinsem...@comcast.net Cc: Jaeik Cho

[R] Summarizing a response variable based on an irregular time period

2011-02-11 Thread Sam Albers
Hello, I have a question about working with dates in R. I would like to summarize a response variable based on a designated and irregular time period. The purpose of this is to compare the summarized values (which were sampled daily) to another variable that was sampled less frequently. Below is

Re: [R] Rioja package, creating transfer function, WA, Error in FUN

2011-02-11 Thread mdc
Dear Peter, Thank you very much for your suggestion, I went through the matrices and removed the headings for pH, WTD etc and did the same for the site names, which I made purely numerical, and now the WA function is working, Thanks again! Matthew On Fri, Feb 11, 2011 at 12:44 AM, Peter Ehlers

Re: [R] R for mac, default load package.

2011-02-11 Thread Steve Lianoglou
Hi, On Fri, Feb 11, 2011 at 3:21 PM, Jaeik Cho choja...@gmail.com wrote: Dear R users, I'm looking for solution about how can I add a package to default load package list. Because, some packages, every time I use the package for analysis. I don't want type load(package) every time. On

[R] [R-pkgs] Update: googleVis 0.2.4 - Using the Google Visualisation API with R

2011-02-11 Thread Markus Gesmann
Hi all, Version 0.2.4 of the googVis package has been released on CRAN and will be available from your local CRAN mirror soon. googleVis provides an interface between R and the Google Visualisation API. The functions of the package allow users to visualise data stored in R with the Google

[R] Time Series in R with ggplot2

2011-02-11 Thread info
Hi Folks, First, the important information. sessionInfo() R version 2.12.1 (2010-12-16) Platform: i386-pc-mingw32/i386 (32-bit) Second, my problem. I have a series of data sets comprised in the following format. totsoc Location Year Value 1 SOUTH 199829 2 SOUTH 199920 3

Re: [R] Fwd: About classification methods.

2011-02-11 Thread David Winsemius
On Feb 11, 2011, at 4:11 PM, Jaeik Cho wrote: I mean, after done for the testing step, I want show which data classified to wrong class. That predictions. At this point my suggestion is that your (re?)-read the Posting Guide and determine whether you have adhered to the level of detail

Re: [R] lattice auto.key gives mismatch colors

2011-02-11 Thread Dennis Murphy
Hi: This seems to work: mykey - list(space = 'top', columns = 4, text = list(as.character(unique(src$s)), col = colors), points = list(pch = 1, col = colors) ) xyplot(v~t, groups=s, type='o', data=src, col=colors, key = mykey) HTH, Dennis

[R] How do I add a book title to the R bibliography?

2011-02-11 Thread Paul Teetor
R community: I would like to add a new title to the bibliography on the R website (http://www.r-project.org/doc/bib/R-books.html), but I cannot find instructions for doing that. Can anyone tell me, whom should I contact in order to add a new book? (I added the title to the wiki's list of books,

Re: [R] Writing R packages in an easier way?

2011-02-11 Thread Michael Friendly
On 2/11/2011 2:52 AM, Dr. Michael Wolf wrote: Dear R colleagues, ... From the point of the costs e. g. I had to learn writing help files in a TeX-like language. But I'm the typical Word user. My last TeX writings were done in the 1990s! If I'm changing only a letter in a source file (r-file

Re: [R] Time Series in R with ggplot2

2011-02-11 Thread Ista Zahn
Hi, You probably have Year stored as a factor. See below. totsoc - structure(list(Location = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), .Label = SOUTH, class = factor), Year = 1998:2007, Value = c(29L, 20L, 32L, 29L, 25L, 28L, 27L, 28L, 22L, 31L )), .Names = c(Location, Year,

Re: [R] How to compute yaxp and usr without plotting ?

2011-02-11 Thread Greg Snow
The usr parameter is either ylim or ylim plus 4 percent on either side (see yaxs/xaxs), see the pretty function for possible ways to get the yaxp information. Note that strwidth is based on the current coordinate system and will not give you the proper values unless the plot region has already

Re: [R] Writing R packages in an easier way?

2011-02-11 Thread Yihui Xie
I guess Emacs + ESS + roxygen might be the easiest way to write an R package. Writing or modifying Rd files/templates, in my eyes, is really time-consuming and the Rd files are difficult to maintain (unless you really have a good memory). I became reluctant to maintain my R packages simply because

Re: [R] add mean and sd to dotplot in each panel using lattice

2011-02-11 Thread Xiaokuan Wei
Hi Phil, This is exactly what I want, I just changed some trivial settings to make it plot standard error of the mean and color changing with panels. Thank you very much. -Xiaokuan library(lattice) mypanel = function(x,y,...){

Re: [R] Where can I download/install grDevices

2011-02-11 Thread Lizblip
djmuseR wrote: Here's one way: plot(1~1,ylab=expression(Areas (~mu*m^2~))) The tildes incorporate space between the math and text elements; they're optional, but useful. This worked, thanks! Elizabeth -- View this message in context:

[R] DiagnosisMed package corrupt?

2011-02-11 Thread Daryl Morris
Hi, I was borrowing someone's code today, and they were using the package DiagnosisMed. I downloaded the package using the built-in package installer in the GUI (R 2.12.1 running on Mac OS 10.6.5). The package manager lists the following information: ‘DiagnosisMed’ version 0.2.3 Every time

[R] Predictions with missing inputs

2011-02-11 Thread Axel Urbiz
Dear users, I'll appreciate your help with this (hopefully) simple problem. I have a model object which was fitted to inputs X1, X2, X3. Now, I'd like to use this object to make predictions on a new data set where only X1 and X2 are available (just use the estimated coefficients for these

Re: [R] Fwd: About classification methods.

2011-02-11 Thread David Winsemius
On Feb 11, 2011, at 9:07 PM, Jaeik Cho wrote: Yes, this point i can understand your suggestion and I should read HOW TO ASK GOOD QUESTIONS. I'm a just new mailing list, also a R user for researching on graduate school. Any person can make mistake, also it can be effect to other people,

  1   2   >