[R] (no subject)

2011-06-21 Thread Runlong Tang
Hi Everyone, When generating help files for a R package, can I specify the order of the R functions? Now I can see that the functions are sorted according to their names. However, for my case, there are two functions are closely related, but they are separated by some other functions. I think it

[R] (no subject)

2011-06-21 Thread Ungku Akashah
hello, i already include the error in blue color word. i hope it can help you to understand my question. if not burden you, please give me a guide how to correct the error or maybe you can correct the coding cause error. thank you. #lda.r # #Author:Amsha Nahid, Jairus Bowne,

Re: [R] (no subject)

2011-06-21 Thread Daniel Malter
Let us work backward. The pic_onscr() fails because lda_result does not exist. lda_result does not exist because your lda() fails. Your lda() fails because Error in lda.default(x, grouping, ...) : variables 1 3 5 8 10 15 17 20 27 29 34 appear to be constant within groups This indicates that

Re: [R] (no subject)

2011-06-21 Thread Duncan Murdoch
On 11-06-20 9:17 PM, Runlong Tang wrote: Hi Everyone, When generating help files for a R package, can I specify the order of the R functions? Now I can see that the functions are sorted according to their names. However, for my case, there are two functions are closely related, but they are

Re: [R] (no subject)

2011-06-20 Thread Ethan Brown
Hi Ungku, it's really difficult for us to take a huge block of code and understand where an error happened. There's several things that can help us help you: 1) First and foremost, what is the error message or undesired behavior you're experiencing? 2) Second, please pare down the code to the

Re: [R] (no subject)

2011-06-20 Thread Ethan Brown
, lda_result, Linear Discriminant Analysis) # end tiff # From: Ethan Brown ethancbr...@gmail.com To: Ungku Akashah kasla...@yahoo.com; r-help@r-project.org Sent: Tue, June 21, 2011 5:48:55 AM Subject: Re: [R] (no subject) Hi Ungku, it's really

Re: [R] (no subject)

2011-06-19 Thread Jim Silverton
Hello, Does anyone has software to simulate SNP data? Specifically I would like any package that produces 2 x 3 SNP data. -- Thanks, Jim. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] (no subject)

2011-06-19 Thread Bhoom Suktitipat
Hi Jim, Just want to make sure that I understand correctly.What do you mean by SNP = Single Nucleotide Polymorphism? Bhoom On Sun, Jun 19, 2011 at 5:57 PM, Jim Silverton jim.silver...@gmail.comwrote: Hello, Does anyone has software to simulate SNP data? Specifically I would like any package

[R] (no subject)

2011-06-19 Thread Ungku Akashah
HELLO, anybody... could you help me to check the below coding for volcano. what is the mistake? what the plot could not display? #volcano_plot.r # #Author:Amsha Nahid, Jairus Bowne, Gerard Murray #Purpose:Produces a volcano plot # #Input:Data matrix as specified

[R] (no subject)

2011-06-09 Thread Ungku Akashah
# # Generate the figures (on screen) # # Image generation - function definition pic_onscr-function(matrix, title, cex_val=1) + {x11() + par(mgp=c(5,2,0), # axis margins + # (title, labels, line) + mar=c(7,4,4,2), # plot margins (b,l,t,r) + las=1) #

[R] (no subject)

2011-06-02 Thread Ungku Akashah
Error in lda.default(x, grouping, ...) : variables 1 3 5 8 10 15 17 20 27 29 34 appear to be constant within groups what this sentence means?? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] (no subject)

2011-06-02 Thread Johannes Huesing
Ungku Akashah kasla...@yahoo.com [Thu, Jun 02, 2011 at 10:31:53AM CEST]: Error in lda.default(x, grouping, ...) : variables 1 3 5 8 10 15 17 20 27 29 34 appear to be constant within groups Please do read the posting guide before posing a question here. The message would have benefitted

[R] (no subject)

2011-05-24 Thread Ernest Koji
SVP: puisje avoir les exercices proposées sur R en biostat Merci ___ KOJI ERNEST Hydrobiologiste/Environnementaliste Université de Yaoundé I-Cameroun S/C Facultés des Sciences B.P 812 E-mail: kojiairn...@yahoo.fr Tel :(237) 74-33-44-57 [[alternative HTML version deleted]]

[R] (no subject)

2011-05-21 Thread Ramnath R
What does *strip=function *and *strip.default *means for eg: *strip=function(bg='white', ... ) strip.default(bg='white', ...) *Ram [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] (no subject)

2011-05-21 Thread David Winsemius
On May 21, 2011, at 3:15 PM, Ramnath R wrote: What does *strip=function *and *strip.default *means for eg: *strip=function(bg='white', ... ) strip.default(bg='white', ...) I am guessing from my experience that you are working on a plotting problem and trying to understand some

Re: [R] (no subject)

2011-05-21 Thread Bert Gunter
Amen to David's comments (I'm sorry to say ...) In addition: Learn to use the Help system. ?help (at the command line) and An Introduction to R manual provide info. To answer your question: library(lattice) ?strip.default -- Bert On Sat, May 21, 2011 at 1:27 PM, David Winsemius

[R] (no subject)

2011-05-14 Thread Ramnath R
Can any one help me where i can find small standalone R programs that do things like: scatterplot, mean/median, kernel density estimation etc. Ram [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] (no subject)

2011-05-14 Thread John Kane
--- On Sat, 5/14/11, Ramnath R vrramn...@gmail.com wrote: From: Ramnath R vrramn...@gmail.com Subject: [R] (no subject) To: r-help@r-project.org Received: Saturday, May 14, 2011, 9:45 AM Can any one help me where i can find small standalone R programs that do things like scatterplot

[R] (no subject)

2011-05-12 Thread Fabian
#subject: type III sum of squares - anova() Anova() AnovaM() #R-version: 2.12.2 #Hello everyone, #I am currently evaluating experimental data of a two factor experiment. to illustrate de my problem I will use following #dummy dataset: Factor T1 has 3 levels (A,B,C) and factor T2 has 2 levels

Re: [R] (no subject)

2011-05-12 Thread Ista Zahn
Hi Fabian, You my find my discussion of types of SS helpful. My website has been down for some time, but you can retrieve it from http://psychology.okstate.edu/faculty/jgrice/psyc5314/SS_types.pdf among other places. Best, Ista On Thu, May 12, 2011 at 10:33 AM, Fabian fabian_ro...@gmx.de wrote:

Re: [R] (no subject)

2011-05-07 Thread Dennis Murphy
Hi: To quote one of the sages of this list: 'Loops? We don't need no steenking loops!!'. Here's one way to do what you were asking with a two-pass approach. Generate some random data, use the sample() function to get 20 indices which are then used to generate NAs in the original vector. Then

[R] (no subject)

2011-05-07 Thread Giulio Di Giovanni
http://kabarknives.handmadebestgifts.com/wp-content/plugins/mylife.html [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] (no subject)

2011-05-06 Thread Nick Manginelli
I'm using the survey api. I am taking 1000 samples of size of 100 and replacing 20 of those values with missing values. Im trying to use sequential hot deck imputation, and thus I am trying to figure out how to replace missing values with the value before it. Other things I have to keep in

[R] (no subject)

2011-05-02 Thread Oliver Sonnentag
[[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained,

[R] (no subject)

2011-04-18 Thread Ramnath R
Hai From which CRAN mirror can get the package ‘LPP2005REC’ Ram [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] (no subject)

2011-04-18 Thread Philipp Pagel
On Mon, Apr 18, 2011 at 04:11:57PM +0530, Ramnath R wrote: Hai From which CRAN mirror can get the package ?LPP2005REC? As the first hit of a google search for LPP2005REC told me it is not a package but a dataset in package timeSeries. cu Philipp -- Dr. Philipp Pagel Lehrstuhl für

Re: [R] (no subject)

2011-04-18 Thread David Winsemius
On Apr 18, 2011, at 6:41 AM, Ramnath R wrote: Hai From which CRAN mirror can get the package ‘LPP2005REC’ What makes you think any CRAN mirror should have such package? -- David Winsemius, MD West Hartford, CT __ R-help@r-project.org mailing

[R] (no subject)

2011-04-18 Thread Ramnath R
Hai, Where can i get the dataset votes.repub Ram [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] (no subject)

2011-04-18 Thread Ramnath R
Hai i just wanted to know how we can find the package of a dataset, eg: how can i find the package in which the dataset *iris* is present Ram [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] (no subject)

2011-04-18 Thread Uwe Ligges
On 18.04.2011 14:58, Ramnath R wrote: Hai i just wanted to know how we can find the package of a dataset, eg: how can i find the package in which the dataset *iris* is present Type ?iris Uwe Ligges Ram [[alternative HTML version deleted]]

Re: [R] (no subject)

2011-04-18 Thread David Winsemius
On Apr 18, 2011, at 8:58 AM, Ramnath R wrote: Hai i just wanted to know how we can find the package of a dataset, eg: how can i find the package in which the dataset *iris* is present ?data -- David Winsemius, MD West Hartford, CT __

Re: [R] (no subject)

2011-04-18 Thread Alexander Engelhardt
Am 18.04.2011 14:58, schrieb Ramnath R: Hai i just wanted to know how we can find the package of a dataset, eg: how can i find the package in which the dataset *iris* is present Ram Hi, if you have the package installed, go ?iris to find out which package it belongs to. If not, just

Re: [R] (no subject)

2011-04-18 Thread Ramnath R
Hai, Where can i get the dataset votes.repub Ram On Mon, Apr 18, 2011 at 4:11 PM, Ramnath R vrramn...@gmail.com wrote: Hai From which CRAN mirror can get the package ‘LPP2005REC’ Ram [[alternative HTML version deleted]] __

Re: [R] (no subject)

2011-04-18 Thread Ramnath R
Hai i just wanted to know how we can find the package of a dataset, eg: how can i find the package in which the dataset *iris* is present Ram On Mon, Apr 18, 2011 at 6:02 PM, Ramnath R vrramn...@gmail.com wrote: Hai, Where can i get the dataset votes.repub Ram On Mon, Apr 18, 2011 at

Re: [R] (no subject)

2011-04-18 Thread David Winsemius
On Apr 18, 2011, at 8:58 AM, Ramnath R wrote: Hai, Where can i get the dataset votes.repub Time for you to do your own searching. -- David Winsemius, MD West Hartford, CT __ R-help@r-project.org mailing list

Re: [R] (no subject)

2011-04-18 Thread Uwe Ligges
This is a bug in the very recent version of the plyr package. Its maintainer has been notified and promised an update. Uwe Ligges On 17.04.2011 22:51, Bryan Hanson wrote: Is there any news on this issue? I have the same problem but on a Mac. I have upgraded R and updated the built

Re: [R] (no subject)

2011-04-18 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 18.04.2011 14:32:11: Hai, Where can i get the dataset votes.repub Ram Use your favourite browser, put R votes.repub in its search facilities and you shall be lucky enough to get it from first several hits. If you have installed R you can start

Re: [R] (no subject)

2011-04-18 Thread Hadley Wickham
Yes, it's fixed and a new version of plyr has been pushed up to cran - hopefully will be available for download soon. In the meantime, I think you can fix it by running library(stats) before library(ggplot2). Hadley On Sun, Apr 17, 2011 at 3:51 PM, Bryan Hanson han...@depauw.edu wrote: Is

Re: [R] (no subject)

2011-04-17 Thread Bryan Hanson
Is there any news on this issue? I have the same problem but on a Mac. I have upgraded R and updated the built packages. The console output and sessionInfo are below. The problem is triggered by library(ggplot2) my .Rprofile If I do library(ggplot2) after the aborted start up ggplot2 is

[R] (no subject)

2011-04-16 Thread stephen sefick
I have just upgraded to R 2.13 and have library(ggplot2) in my .Rprofile (among other things). when i start R I get an error message. Has something in the start up scripts changed? Is there a better way to specify the library calls in .Rprofile? Thanks for all of the help in advance. Error:

Re: [R] (no subject)

2011-04-16 Thread Steve Lianoglou
Out of curiosity, do you have a problem calling `library(ggplot2)` from the R prompt (after R is finished spinning up)? I vaguely recall (~ 2 years ago) that I was trying to load some packages in my ~/.Rprofile since I thought I always wanted them in R anyway and had problems ... I've given up

[R] (no subject)

2011-04-02 Thread Asan Ramzan
Take care about your security http://users5.nofeehost.com/fohadim/wovifuhu.html Love- ItSee msToMeA Dream There are times when all you need is a touch; __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] (no subject)

2011-03-29 Thread Meytar Sorek-Hamer
Hellp I posted a message but didn't get any reply How can I send it again please? Thank you Meytar __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] (no subject)

2011-03-29 Thread Uwe Ligges
On 29.03.2011 11:31, Meytar Sorek-Hamer wrote: Hellp I posted a message but didn't get any reply How can I send it again please? Thank you Meytar __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] (no subject)

2011-03-27 Thread filame uyaco
http://dix4life.leadhoster.com/molo.php [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

[R] (no subject)

2011-03-20 Thread Mitri, Joanna
HI, While I was working on R , I had a pop up from mcafee asking me if I wasih to block or allow something to connect. I did not see r in the question, so I had clicked on the option block. since then, when I start R through excel , I only get R console and I do nto get R script anymore.

Re: [R] (no subject)

2011-03-20 Thread Jeff Newmiller
1) If you think McAfee is interfering, then you should look toward your support options for that software to help you remove the setting that relates to R or rcom. You may be able to test your theory by disabling that software temporarily. 2) If R is working at the console, and RGui is

[R] (no subject)

2011-03-15 Thread Jonathan P Daily
I was wondering if there is a way to get read in a single keystroke at a time in R as a string, akin to ncurses-style interfaces. I looked into readLines, readChar, etc. using stdin, but these all require the use of an end of line. Has anyone ever had need to do this or have any ideas on how

Re: [R] (no subject)

2011-03-15 Thread Bert Gunter
?strsplit x - ThisIsaString y- strsplit(x,) This gives a list, which you can convert to a vector by unlist(y) Incidentally, you could have found out about strsplit via R's help.search(character string) (or similar) or even googling R string function . Please use R's native Help capabilities

Re: [R] (no subject)

2011-03-15 Thread rex.dwyer
AM To: Jonathan P Daily Cc: r-help@r-project.org Subject: Re: [R] (no subject) ?strsplit x - ThisIsaString y- strsplit(x,) This gives a list, which you can convert to a vector by unlist(y) Incidentally, you could have found out about strsplit via R's help.search(character string) (or similar

[R] (no subject)

2011-03-14 Thread Andreas Emanuelsson
Hi everyone, I have problems with a double for loop and the program response: Error in 1:mass[j] : NA/NaN argument I'm trying to create a very simple script to generate a vector full of objects with the value [fuel] and in the amount [mass] for a hist plot. H=1 for (j in 1:63)

Re: [R] (no subject)

2011-03-14 Thread Daniel Nordlund
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Andreas Emanuelsson Sent: Monday, March 14, 2011 9:25 AM To: r-help@r-project.org Subject: [R] (no subject) Hi everyone, I have problems with a double for loop and the program

Re: [R] (no subject)

2011-03-14 Thread David Winsemius
On Mar 14, 2011, at 12:25 PM, Andreas Emanuelsson wrote: Hi everyone, I have problems with a double for loop and the program response: Error in 1:mass[j] : NA/NaN argument I'm trying to create a very simple script to generate a vector full of objects with the value [fuel] and in the

[R] (no subject)

2011-03-11 Thread Andreas Emanuelsson
Hi, I have tried to load a file originally from Excel, via csv, text and clipboard today. When I succeed I cannot change the format from factor, and when I try to convert it to numerical it only gives the position of the factor-group, not the real value in the column? Any quick suggestions?

Re: [R] (no subject)

2011-03-11 Thread jim holtman
If you are using 'read.csv', add the parameteras.is=TRUE to prevent conversion to factors. If you have factors that are supposed to be numeric, use the following df$mydata - as.numeric(as.character(df$mydata)) On Fri, Mar 11, 2011 at 10:45 AM, Andreas Emanuelsson

Re: [R] (no subject)

2011-03-11 Thread Joshua Wiley
Hi Andreas, Assuming you are using read.table(), try setting the argument: stringsAsFactors = FALSE Also consider what about the Excel file is making R default to a factor rather than numerical? There may be a nonstandard reprsentation of missing data (e.g., .), which could also be specified to

Re: [R] (no subject)

2011-03-11 Thread Ista Zahn
Hi Andreas, if your factor is named x, you can do as.numeric(as.character(x)) Best, Ista On Fri, Mar 11, 2011 at 10:45 AM, Andreas Emanuelsson andreas.emanuels...@sik.se wrote: Hi, I have tried to load a file originally from Excel, via csv, text and clipboard today. When I succeed I cannot

Re: [R] (no subject)

2011-03-11 Thread Joshua Wiley
Just as a note, if you are going to convert a factor to numeric, the preferred idiom is: ## hypothetical numeric factor x - factor(paste(10:15)) ## preferred method for conversion as.numeric(levels(x))[x] Cheers, Josh __ R-help@r-project.org mailing

[R] (no subject)

2011-03-08 Thread Stephen T.
Hi, I am exporting an HDF5 file from Matlab (hdf5write function). It contains several datasets: one scalar, one vectory, one 2-D array, and one 3-D array. The hdf5read() function in the hdf5 library seems to load everything except the 3-D array. There are no errors reported even with

[R] (no subject)

2011-02-26 Thread Hamaad Shah
Greetings, I have been trying to use the RInside package with C++ however I am running into an error. I use Ubuntu Linux 10.04 (64-bit) and my R version is 2.12.2. I compiled R from source to give me a shared R library, shared BLAS (ATLAS). When I try to compile one of the examples given in

[R] (no subject)

2011-02-23 Thread michele tettamanzi
dear R-utents, does anybody of you knows if there are some specific function, already stored in some libraries, which allow me to calculate straightforward McFadden-R^2,,pseudo-R^2, p-hat (the ML estimator for p) and the goodness of fit R^2p? thanks in advance! michi

[R] (no subject)

2011-02-21 Thread Schmidt, Lindsey C (MU-Student)
What is plot.new? How can I fix this data or add plot.new so it works? library(maps) library(splancs) area = 6*4 lambda = 1.5 N = rpois(1,lambda*area) u = runif(N,-2,4) v = runif(N,0,4) plot(u,v,asp=1) h = chull(u,v) h = c(h,h[1]) plot(u[h],v[h],1,asp=1) Error in plot.xy(xy, type,

Re: [R] (no subject)

2011-02-21 Thread K. Elo
Hi! 21.02.2011 08:50, Schmidt, Lindsey C (MU-Student) wrote: What is plot.new? How can I fix this data or add plot.new so it works? ?plot.new ?plot plot(u[h],v[h],type=l,asp=1) seems to work for me... HTH, Kimmo __ R-help@r-project.org mailing list

[R] (no subject)

2011-02-21 Thread Schmidt, Lindsey C (MU-Student)
What is plot.new? and how can i get it to work so i can load other data? library(splancs) area = 6*4 lambda = 1.5 N = rpois(1,lambda*area) u = runif(N,-2,4) v = runif(N,0,4) plot(u,v,asp=1) h = chull(u,v) h = c(h,h[1]) plot(u[h],v[h],1,asp=1) Error in plot.xy(xy, type, ...) : invalid

Re: [R] (no subject)

2011-02-21 Thread Phil Spector
Please start R and enter the following commands: library(splancs) area = 6*4 lambda = 1.5 N = rpois(1,lambda*area) u = runif(N,-2,4) v = runif(N,0,4) h = chull(u,v) h = c(h,h[1]) plot(u[h],v[h],l,asp=1) points(u,v) If you do not get the plot you're expecting, then repost 1) adding an

Re: [R] (no subject)

2011-02-21 Thread Jim Lemon
On 02/22/2011 03:31 AM, Schmidt, Lindsey C (MU-Student) wrote: What is plot.new? and how can i get it to work so i can load other data? Hi Lindsey, It looks to me as though spelling mistakes in your code are causing failures to generate some of the objects that you then pass to plot. The

Re: [R] (no subject)

2011-02-14 Thread Jannis
First of all I would advice you to use meaningful subjects when posting to the list. My second point is only a vague guess, but if you use the exact code that you posted there may be bracket missing(its the closing bracket of the jpg() call ). May this produce your error? Third, you

[R] (no subject)

2011-02-13 Thread Smith, Taylor Taran
Hey, I am trying to graph a series of XY plots from a set of .csv files. Getting the csv files read in and the original plot set up is not a problem, but I cannot figure out a way to call get(iterator) within a separate dataset. A chunk of my code is below. data - read.csv(file= filename)

[R] (no subject)

2011-02-05 Thread pete
-- View this message in context: http://r.789695.n4.nabble.com/no-subject-tp3262024p3262024.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] (no subject)

2011-02-04 Thread Yan Jiao
Dear R users? I want to know how to use strata in survival analysis, I want to combine multiple dataset: Coxph(Surv(merged.time.v, merged.event.v)~merged.score+ strata(dataset.v)) So merged.time.v and merged.event.v are from multiple datasets. How should I define dataset.v here?

[R] (no subject)

2011-02-01 Thread A. Ramzan
Hello I am trying to find a way to find the max value, for only a subset of a dataframe, depending on how the data is grouped for example, How would I find the maxmium responce, for all the GPR119a condition below: responce,mouce,condition 0.105902,KO,con 0.232018561,KO,con

Re: [R] (no subject)

2011-02-01 Thread Erik Iverson
?tapply would be one way to get the max for all conditions at once. Your example is not reproducible, so I cannot give you a reproducible answer, but adapt the following: tapply(df$responce, df$condition, max) A. Ramzan wrote: Hello I am trying to find a way to find the max value, for only

Re: [R] (no subject)

2011-02-01 Thread Den
max(subset(dataName, condition==GPR119a)$responce) У Аўт, 01/02/2011 у 19:05 +, A. Ramzan піша: Hello I am trying to find a way to find the max value, for only a subset of a dataframe, depending on how the data is grouped for example, How would I find the maxmium responce, for all the

Re: [R] (no subject)

2011-02-01 Thread Dario Strbenac
If your data frame is called myDF, max(myDF[myDF[, condition] == GPR119a, responce]) Original message Date: 01 Feb 2011 19:05:46 + From: r-help-boun...@r-project.org (on behalf of A. Ramzan ar...@cam.ac.uk) Subject: [R] (no subject) To: r-help@r-project.org Hello I am trying

Re: [R] (no subject)

2011-02-01 Thread Ista Zahn
max(dat[dat$condition==GPR119a, responce]) aggregate(dat$responce, by=list(dat$condition), max) see ?[ and ?aggregate -Ista On Tue, Feb 1, 2011 at 2:05 PM, A. Ramzan ar...@cam.ac.uk wrote: Hello I am trying to find a way to find the max value, for only a subset of a dataframe, depending on

Re: [R] (no subject)

2011-02-01 Thread Dennis Murphy
Hi: Here are three more 'solutions' using packages doBy, plyr and data.table. ### For illustration: maxima for all mouce/GPR* conditions (1) doBy: library(doBy) dfsub - subsetBy( ~ 1, subset = condition != 'con', data = df) summaryBy(responce ~ mouce + condition, data = dfsub, FUN = max)

[R] (no subject)

2011-01-31 Thread karuna m
Dear R-help, I am doing clustering via finite mixture model. Please suggest some packages in R to find clusters via finite mixture model with continuous variables. And also I wish to verify the distributional properties of the mixture distributions by fitting the model with lognormal, gamma,

[R] (no subject)

2011-01-28 Thread Marine Andersson
Hello, I have a data set with each column containing data like this: row column1 1 1.2 2 NA 3 NA 4 3 5 5 6 NA 7 1.5 8 NA 9 NA 10 NA 11 3 12 NA 13 3 14 NA 15 NA 16 NA 17 NA 18 3 19 1.2 20 NA From this I would like to extract the sequence containing at least three rows of 3 in

Re: [R] (no subject)

2011-01-28 Thread Siri Bjoner
This looks like homework. We don't do homework. Certainly not when you obviously haven't a) read the posting guide, b) asked your professor/tutor, c) googled to see if you find something online, d) at least made an effort to try, and e) read the posting guide. Do all the points above and

[R] (no subject)

2011-01-17 Thread carpan
Dear R community,and especially Giovanni Millo, For my master's thesis i need to simulate a panel data with the fixed effects correlated with the predicor, so i run the the following code: set.seed(1970) ###Panel data simulation with alphai correlated with

[R] (no subject)

2010-12-30 Thread Raffaello Vardavas
Dear Help, I am using the library RODBC to export data into an excel file with different sheets. Here is the code: library(RODBC) save2excel - function(x, t.name,channel) { sqlSave(channel, x, tablename = t.name, rownames = FALSE) } ## Write Parameters to Excel channel -

Re: [R] (no subject)

2010-12-11 Thread Dennis Murphy
Hi: Here's a plyr solution: library(plyr) dg - data.frame(x1 = rep(1:2, c(10, 15)), x2 = 1:25) f - function(x) head(rev(sort(x)), 5) ddply(dg, 'x1', summarise, x2 = f(x2)) x1 x2 1 1 10 2 1 9 3 1 8 4 1 7 5 1 6 6 2 25 7 2 24 8 2 23 9 2 22 10 2 21 HTH, Dennis On Fri,

[R] (no subject)

2010-12-10 Thread andrija djurovic
Hi R-help, I am trying to find a way to select five highest values in data frame according some variable. I will demonstrate: c X1 X2 1 1 1 2 1 2 3 1 3 4 1 4 5 1 5 6 1 6 7 1 7 8 1 8 9 1 9 10 1 10 11 2 11 12 2 12 13 2 13 14 2 14 15 2 15 16 2

Re: [R] (no subject)

2010-12-10 Thread jim holtman
try this: do.call(rbind, lapply(split(x, x$X1), function(.grp){ + .ord - .grp[order(.grp$X2, decreasing = TRUE),] + .ord[seq(min(5, nrow(.grp))),] + })) X1 X2 1.10 1 10 1.9 1 9 1.8 1 8 1.7 1 7 1.6 1 6 2.25 2 25 2.24 2 24 2.23 2 23 2.22 2 22 2.21 2 21 On Fri, Dec

Re: [R] (no subject)

2010-12-10 Thread David L Lorenz
. Dave From: andrija djurovic djandr...@gmail.com To: r-help@r-project.org Date: 12/10/2010 08:21 AM Subject: [R] (no subject) Sent by: r-help-boun...@r-project.org Hi R-help, I am trying to find a way to select five highest values in data frame according some variable. I will demonstrate: c

[R] (no subject)

2010-11-22 Thread Mari Pesek
Dear R Help - I am analyzing data from an ecological experiment and am having problems with the ANOVA functions I've tried thus far. The experiment consists of a blocked/split-plot design, with plant biomass as the response. The following is an overview of the treatments applied (nitrogen

[R] (no subject)

2010-11-20 Thread Stephen Liu
Hi folks, Please advise where can I down free data files for learning R? Google search brought me many, not easy for to screen. TIA B.R. Stephen L __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] (no subject)

2010-11-20 Thread Michael Bedward
Type data() to list the numerous example data sets included with the standard R distribution. Michael On 20 November 2010 20:42, Stephen Liu sati...@yahoo.com wrote: Hi folks, Please advise where can I down free data files for learning R?  Google search brought me many, not easy for to

Re: [R] (no subject)

2010-11-20 Thread Stephen Liu
: Michael Bedward michael.bedw...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Sat, November 20, 2010 5:46:35 PM Subject: Re: [R] (no subject) Type data() to list the numerous example data sets included with the standard R distribution. Michael On 20 November 2010 20:42

Re: [R] (no subject)

2010-11-20 Thread Michael Bedward
On 20 November 2010 20:57, Stephen Liu sati...@yahoo.com wrote: Hi Michael, Thanks for your advice. data() only displays a list of files.  Is there an easy to show the brief summary of files rather than calling each file. What sort of summary do you want ? The data() command should display

[R] (no subject)

2010-11-13 Thread sundar
Gud evening sir ,I want do the cluster analysis algorithm in r software can u guide me sir My mail id is :sundars...@gmail.com And I want the brief explanation to for,do.while,if etc loops and conditions. Thank you sir. -- __

Re: [R] (no subject)

2010-11-13 Thread Uwe Ligges
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html Uwe Ligges On 13.11.2010 17:18, sundar wrote: Gud evening sir ,I want do the cluster analysis algorithm in r software can u guide me sir My mail id is :sundars...@gmail.com And I want the brief explanation to

Re: [R] (no subject)

2010-11-05 Thread Michael Bedward
Hello, One approach would be to fit your distribution using MCMC with, for example, the rjags package. Then you can use the zeroes trick or ones trick to implement your new distribution as described here... http://mathstat.helsinki.fi/openbugs/data/Docu/Tricks.html You will find a summary of

[R] (no subject)

2010-11-04 Thread Roes Da
hello,i'm roesda from indonesia I have trouble when they have to perform parameter estimation by MLE method using the R programming.because, the distribution that will be used instead of not like the distribution that already known distributions such as gamma distribution, Poisson or binomial.

[R] (no subject)

2010-11-04 Thread Matilda Gogos
Matilda Gogos mgog...@gmail.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible

[R] (no subject)

2010-10-27 Thread Timothy Spier
I am interested in using multcompLetters after running kruskalmc but I'm a newbie and I'm not having luck figuring it out. I can run kruskalmc just fine, but after studying the documentation for multcompletters for a long time, I cannot figure out how to make it work. Any ideas? R input is

[R] (no subject)

2010-10-27 Thread Czerminski, Ryszard
I would appreciate any advice about how to add rectangular grid to the plot generated by levelplot() similarly as grid() function adds grid to the regular plot() Best regards, Ryszard -- Confidentiality Notice: This message

Re: [R] (no subject)

2010-10-27 Thread David Winsemius
On Oct 27, 2010, at 2:20 PM, Czerminski, Ryszard wrote: I would appreciate any advice about how to add rectangular grid to the plot generated by levelplot() similarly as grid() function adds grid to the regular plot() ?panel.grid Best regards, Ryszard -- David Winsemius, MD West

[R] (no subject)

2010-10-26 Thread Arsalan Fathi
hello. how are you? my name is arsalan. I'm from iran. i want to write the program that done random walk(one variable and two variable). please help me. thank you __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] (no subject)

2010-10-26 Thread David Winsemius
On Oct 25, 2010, at 11:17 PM, Arsalan Fathi wrote: hello. how are you? my name is arsalan. I'm from iran. i want to write the program that done random walk(one variable and two variable). please help me. You should learn to use a search engine that is specific to R. Here's an example:

<    1   2   3   4   5   6   7   8   9   10   >