[R] about the summary(cph.object)

2009-07-31 Thread zhu yao
Could someone explain the summary(cph.object)? The example is in the help file of cph. n <- 1000 set.seed(731) age <- 50 + 12*rnorm(n) label(age) <- "Age" sex <- factor(sample(c('Male','Female'), n, rep=TRUE, prob=c(.6, .4))) cens <- 15*runif(n) h <- .02*exp(.04*(age-50)+.8*(sex=='F

Re: [R] scale subsets of grouped data in data frame

2009-07-31 Thread Steve Lianoglou
Hi, On Jul 31, 2009, at 7:17 PM, Noah Silverman wrote: Hello, I'm trying to duplicate what's an easy process in RapidMiner. In RM, we can simply use two operators: subgroup iteration attribute value selection (Can use a regex for the attrribute name.) I can do this in R with a lot

Re: [R] Compare lm() to glm(family=poisson)

2009-07-31 Thread Wensui Liu
i don't understand how you can fit a poisson model with lm() function. otherwise, how could you compare lm() with glm(...family=poisson)? On Fri, Jul 31, 2009 at 7:41 PM, Mark Na wrote: > Dear R-helpers, > I would like to compare the fit of two models, one of which I fit using lm() > and the other

Re: [R] pyramid.plot: x-axis scale

2009-07-31 Thread ws
> Hi ws, > You could tweak pyramid.plot in the plotrix package to do this. I guess I will live without... Unless you can spell the process out for doing that -- where is the source, where would the package download be on my machine before (Mac OS X), who would I send a working patch to. If (the

[R] Compare lm() to glm(family=poisson)

2009-07-31 Thread Mark Na
Dear R-helpers, I would like to compare the fit of two models, one of which I fit using lm() and the other using glm(family=poisson). The latter doesn't provide r-squared, so I wonder how to go about comparing these models (they have the same formula). Thanks very much, Mark Na [[alterna

[R] scale subsets of grouped data in data frame

2009-07-31 Thread Noah Silverman
Hello, I'm trying to duplicate what's an easy process in RapidMiner. In RM, we can simply use two operators: subgroup iteration attribute value selection (Can use a regex for the attrribute name.) I can do this in R with a lot of code and manual steps. It would be really nice to find

Re: [R] scale subset of data

2009-07-31 Thread Noah Silverman
That works perfectly. Thanks! -N On 7/31/09 2:04 PM, Steve Lianoglou wrote: > Hi, > > On Jul 31, 2009, at 4:13 PM, Noah Silverman wrote: > >> Hi, >> >> This should be an easy one, but I have some trouble formatting the data >> right >> >> I'm trying to replace the column of a subset of a datafra

[R] SVG output on Windows OS

2009-07-31 Thread Michael Roessler
How may one save a graphic as svg on Windows? The svg() command is recognized and functions well on Linux, etc., but not on Windows, it seems. I'm trying to use Hadley Wickam's ggplot2 and I would like to be able to save created charts as svg for later input into Illustrator. I am able to accomplis

Re: [R] another automation question

2009-07-31 Thread stephen sefick
where is the variable used? On Fri, Jul 31, 2009 at 4:01 PM, RR! wrote: > > This code works: > > x<-letters[1:6] > ycols<-23:28 > xcols<-rep(c(3,4,5,8),each=length(ycols)) > > somertime<-function(i,j)somers2(Pred_pres_a_indpdt[,i,,], population[,j]) > results<-mapply(somertime,xcols,ycols)

Re: [R] string

2009-07-31 Thread Ted Harding
On 31-Jul-09 22:10:46, Mohsen Jafarikia wrote: > Hello All: > I am wondering how I can have "dat1" and "dat2" in the following > loop where 'dat' and 'i' stick together to make dat1 and dat2 : > > ifn <- "MyData" > dat <- read.table(ifn) > > MyData: > 01 0.40 > 02 0.40 > 03

Re: [R] Creating a column based on data in another column

2009-07-31 Thread Mehdi Khan
got it, thank you everyone! On Fri, Jul 31, 2009 at 12:04 PM, Mehdi Khan wrote: > hello all, > > I have a data frame and I want to create a column which assigns a letter > based upon the value in another column. The data column has velocities > ranging from 0 to 1000. So for example, for veloc

[R] string

2009-07-31 Thread Mohsen Jafarikia
Hello All: I am wondering how I can have "dat1" and "dat2" in the following loop where 'dat' and 'i' stick together to make dat1 and dat2 : ifn <- "MyData" dat <- read.table(ifn) MyData: 01 0.40 02 0.40 03 0.40 04 0.35 05 0.34 06 0.33 names(d

[R] string

2009-07-31 Thread Mohsen Jafarikia
Hello All: I am wondering how I can have "dat1" and "dat2" in the following loop where 'dat' and 'i' stick together to make dat1 and dat2 : ifn <- "MyData" dat <- read.table(ifn) MyData: 01 0.40 02 0.40 03 0.40 04 0.35 05 0.34 06 0.33 names(d

[R] string

2009-07-31 Thread Mohsen Jafarikia
Hello All: I am wondering how I can have "dat1" and "dat2" in the following loop where 'dat' and 'i' stick together to make dat1 and dat2 : ifn <- "MyData" dat <- read.table(ifn) MyData: 01 0.40 02 0.40 03 0.40 04 0.35 05 0.34 06 0.33 names(d

Re: [R] How to stop an R script when running JGR on a Linux/SuSE system

2009-07-31 Thread Bernd
> I wonder whether there is a more gentle way to stop an R script running on > top of JGR aother than ... unplugging the power cord. > there must be a bug in JGR on Lunux. Clicking the stop button should stop the script, clicking it here on my linux machine will immediately crash R together with

[R] Using R with Hadoop/Hive for Big Data

2009-07-31 Thread Ajay ohri
Hive is a data warehouse infrastructure built on top of Hadoop that provides tools to enable easy data summarization, adhoc querying and analysis of large datasets data stored in Hadoop files. It provides a mechanism to put structure on this data and it also provide

[R] another automation question

2009-07-31 Thread RRRRRRRRRR!
This code works: x<-letters[1:6] ycols<-23:28 xcols<-rep(c(3,4,5,8),each=length(ycols)) somertime<-function(i,j)somers2(Pred_pres_a_indpdt[,i,,], population[,j]) results<-mapply(somertime,xcols,ycols) How can I make variable "h" work? x<-letters[1:6] ycols<-23:28 xcols<-rep(c(3,4,5,8),each=l

Re: [R] scale subset of data

2009-07-31 Thread Steve Lianoglou
Hi, On Jul 31, 2009, at 4:13 PM, Noah Silverman wrote: Hi, This should be an easy one, but I have some trouble formatting the data right I'm trying to replace the column of a subset of a dataframe with the scaled data for that column of the subset subset(rawdata, code== "foo", select = a)

Re: [R] automation question

2009-07-31 Thread stephen sefick
look at the apply family of functions and look at the MARGIN argument. On Fri, Jul 31, 2009 at 2:30 PM, RR! wrote: > > I have columns in two tables that need to be compared in order to get a > statistic. The function calculating the statistic is somers2. Here are the > two columns I must c

[R] scale subset of data

2009-07-31 Thread Noah Silverman
Hi, This should be an easy one, but I have some trouble formatting the data right I'm trying to replace the column of a subset of a dataframe with the scaled data for that column of the subset subset(rawdata, code== "foo", select = a) <- scale( subset(rawdata, code== "foo", select = a) ) It

Re: [R] merging two data frame with colomns of different length

2009-07-31 Thread Henrique Dallazuanna
Try this: merge(transform(data1, .Id01 = ave(as.character(Id01), Id01, FUN=seq)), transform(data2, .Id02 = ave(as.character(Id02), Id02, FUN=seq)), by.x = c('Id01', '.Id01'), by.y = c('Id02', '.Id02'), all = TRUE) On Fri, Jul 31, 2009 at 3:05 PM, Julien Beguin wrote: > I forg

Re: [R] merging two data frame with colomns of different length

2009-07-31 Thread Etienne B. Racine
Salut Julien, t1 <- table(data1$Id01) t2 <- table(data2$Id02) # compute difference between the two tables diff <- t1-t2 # create your data frame from data2 res <- data2 names(res)[1] <- "Id01" lsAdd <- rep(attributes(diff)$dimnames[[1]],diff) defVal <- NA rbind(res,data.frame(Id01 =lsAdd, Are

[R] automation question

2009-07-31 Thread RRRRRRRRRR!
I have columns in two tables that need to be compared in order to get a statistic. The function calculating the statistic is somers2. Here are the two columns I must calculate, row by row. name1 name2 1 Pred_pres_a_indpdt[,3,,] population[,23] 2 Pred_pres_b_indp

Re: [R] Creating a column based on data in another column

2009-07-31 Thread Henrique Dallazuanna
Try this: cut(sample(0:1000, 100), breaks = c(0, 300, 600, 900, 1000), labels = c('A', 'B', 'C', 'D')) On Fri, Jul 31, 2009 at 4:04 PM, Mehdi Khan wrote: > hello all, > > I have a data frame and I want to create a column which assigns a letter > based upon the value in another column. The data

Re: [R] Creating a column based on data in another column

2009-07-31 Thread Dimitris Rizopoulos
have a look at ?cut(); for instance, x <- sample(1000, 20, TRUE) x cut(x, c(0, 300, 600, 1000), c("A", "B", "C")) I hope it helps. Best, Dimitris Mehdi Khan wrote: hello all, I have a data frame and I want to create a column which assigns a letter based upon the value in another column.

Re: [R] Getting file name from pdf device?

2009-07-31 Thread cameron.bracken
Rainer M Krug-6 wrote: > > Hi > > IU would like to modify the dev.off function, so that it automatically > compresses the created pdf. > I am thinking of doing the following in the modified dev.off: > > 1) Get the filename of the pdf device > 2) close the device by calling the original dev.of

Re: [R] Creating a column based on data in another column

2009-07-31 Thread Jorge Ivan Velez
Dear Medhi, Take a look at ?cut or ?recode (in the car package). HTH, Jorge On Fri, Jul 31, 2009 at 3:04 PM, Mehdi Khan <> wrote: > hello all, > > I have a data frame and I want to create a column which assigns a letter > based upon the value in another column. The data column has velocities

Re: [R] x and y Error Bars

2009-07-31 Thread Ben Bolker
Sarah B wrote: > > Hi All, > > I have a question about plotting a one-to-one line and x-and-y error bars > on a scatterplot for my data. I just can't seem to work it out! > > > I have data from an experiment with 7 different treatment levels with 3 > replicates, that is set-out as follows: >

[R] Creating a column based on data in another column

2009-07-31 Thread Mehdi Khan
hello all, I have a data frame and I want to create a column which assigns a letter based upon the value in another column. The data column has velocities ranging from 0 to 1000. So for example, for velocities between 0 and 300 I'd like to assign the letter "A" in the new column, for 300-600, "B

[R] Displaying function arguments using a Windows R console

2009-07-31 Thread Laura S.
I am relatively new to R, and would appreciate any suggestions you may have. I noticed on a Mac the functions' arguments are listed at the bottom of the R console. Is it possible to add such a feature to a Windows R console? I have Windows XP if that helps. I know function arguments can be fou

Re: [R] xyplot with 2 panels and 2 different x-scales

2009-07-31 Thread baptiste auguie
Hi, you want only the x scale to be free, xyplot(place~rank|type, data=df1, panel= function(x, y, ..., subscripts) { panel.xyplot(x,y,..., subscripts) require(grid) panel.grid(h = -1,v = 0, lty="dotted") grid.text(unit(x,"native"),

[R] x and y Error Bars

2009-07-31 Thread Buckmaster, Sarah
Hi All, I have a question about plotting a one-to-one line and x-and-y error bars on a scatterplot for my data. I just can't seem to work it out! I have data from an experiment with 7 different treatment levels with 3 replicates, that is set-out as follows: Treatment LevelReplicateRep

Re: [R] about BRugs package

2009-07-31 Thread Uwe Ligges
Zuofeng Shang wrote: Hi all, There seems a problem when I was installing this package. This question has been frequently asked but I didn't find any clue to solve it from previous answers and comments. And please forgive me if my question has been really answered before! My system is windows

Re: [R] merging two data frame with colomns of different length

2009-07-31 Thread Julien Beguin
I forgot to mention that I tried with "merge" and "join" (package analogue) without success... Julien Selon Julien Beguin , 31.07.2009: > Dear all, > > I am trying to merge two data frames based on a common column but for this > common column both data frame do not have the same length and assoc

[R] about BRugs package

2009-07-31 Thread Zuofeng Shang
Hi all, There seems a problem when I was installing this package. This question has been frequently asked but I didn't find any clue to solve it from previous answers and comments. And please forgive me if my question has been really answered before! My system is windows xp and R is 2.7x, when I

Re: [R] xyplot with 2 panels and 2 different x-scales

2009-07-31 Thread taz9
I used the scales relation to obtain different x-scales for each panel. However, there's a gap between the 2 panels. Any ideas on how I could remove it? xyplot(place~rank|type, data=df1, scales=(relation="free"), panel= function(x, y, ..., subscripts) { panel.xyplot(x,y,..., subscrip

[R] merging two data frame with colomns of different length

2009-07-31 Thread Julien Beguin
Dear all, I am trying to merge two data frames based on a common column but for this common column both data frame do not have the same length and associated information. I checked previous exemples in the list but was not able to apply them in my case... Is someone know how to do that? Below is m

[R] xyplot with 2 panels and 2 different x-scales

2009-07-31 Thread taz9
Hi All, I have this data: type<-c("country","country","country","world","world","world") place<-c("A","B","C","A","B","C") rank<-c(1,3,5,512,420,320) df1<-data.frame(type,place,rank) and need to produce an xyplot with 2 panels, where the x-values are labelled: xyplot(place~rank|type, data=df1

Re: [R] function problem

2009-07-31 Thread RRRRRRRRRR!
I am sorry I should have stated the whole problem: I appreciate all the help I have received from this list and also not being flamed because I am new to R. Many of my problems are in automation so far. I am trying to create multiple objects that are outputs of functions. Here are the tasks: aG

Re: [R] Question regarding sqldf

2009-07-31 Thread Gabor Grothendieck
Your sql statement is using a variable in the having clause that is not in the group by clause. Given that group by is supposed to produce a single output per group we see that this construct is problematic since what should happen in the case that there are two equal maximum values in the same gr

Re: [R] Fill dataframe from a table according to a criteria

2009-07-31 Thread John Kane
Your posting arrives as plain text so it is impossible to see what you had highlighed in red. Also it is very difficult to see what is in that data.frame. Could you either reduce the data.frame to make minimal, self-contained, reproducible code. A good approach might be to use dput to cre

Re: [R] Tests for Two Independent Samples

2009-07-31 Thread Ted Harding
On 31-Jul-09 13:38:10, tedzzx wrote: > Dear R users, > I have got two samples: > sample A with observation of 223: >sample A has five categories: 1,2,3,4,5 (I use the numer >1,2,3,4,5 to define the five differen categories) >there are 5 observations in category 1; 81 observations in >

Re: [R] Scatter Plot

2009-07-31 Thread baptiste auguie
please Cc. the list next time Two suggestions, 1) read the help page, e.g. ?points would have told you why pch="10" produces "1". 2) Try the following and see which you prefer, x = y = labels = 1:20 ?text plot(x, y, type='n') # empty plot text(x, y, paste(labels)) library(ggplot2) ?qplot qplo

Re: [R] function problem

2009-07-31 Thread Steve Lianoglou
Hi, On Jul 31, 2009, at 12:25 PM, RR! wrote: I have a series of columns that need to be evaluated in various tables. I need to apply a function in the following manner somers2(name1,name2). name1 is a vector of x inputs for the function which correspond to a vector of y inputs in

[R] Porting S code to R (USGS Library for S-PLUS for Windows)

2009-07-31 Thread stephen sefick
I would like to port the code contained in http://water.usgs.gov/software/S-PLUS/. Especially the move.1 model. I have downloaded the software, but it doesn't seem to display correctly in smultron or text edit. This I believe is a windows binary distribution. I have sent a message through the US

[R] function problem

2009-07-31 Thread RRRRRRRRRR!
I have a series of columns that need to be evaluated in various tables. I need to apply a function in the following manner somers2(name1,name2). name1 is a vector of x inputs for the function which correspond to a vector of y inputs in name2. y<-rep(c(3,4,5,8),6) z<-rep(c(23,24,25,26,27,28),4) na

Re: [R] constrained input for optimization algorithm

2009-07-31 Thread Ravi Varadhan
CRAN task view on "optimization and mathematical programming" shows the following packages for integer programming: IP (Integer programming, 90C10): glpk, lpSolve, lpSolveAPI, Rcplex, Rglpk, Rsymphony MIP (Mixed integer programming and its variants MILP for LP and MIQP for QP, 90C11): glpk, lpSo

[R] Fill dataframe from a table according to a criteria

2009-07-31 Thread Meenu Sahi
Deare R users I am new to R. What I want to do is explained below;- I have table called States.Prob which is given below Prob of States Changes State1 State2 State3 State4 A Pa1 Pa2 Pa3 Pa4 B Pb1 Pb2 Pb3 Pb4 C Pc1

Re: [R] Newbie in R: Reading .txt files and storing the 'numbers' in a vector

2009-07-31 Thread 1Rnwb
I am also a newbie, but here are the few thing i do eo=read.table(file="path where you have saved your text file/xxx.txt",header=T, ) #this will only read excelfiles saved as *.csv file attach(eo)

[R] Tests for Two Independent Samples

2009-07-31 Thread tedzzx
Dear R users, I have got two samples: sample A with observation of 223: sample A has five categories: 1,2,3,4,5 (I use the numer 1,2,3,4,5 to define the five differen categories) there are 5 observations in category 1; 81 observations in category 2;110 observations in category 3; 27 obs

Re: [R] Antw: How to extract the upper xlim and ylim of my plot?

2009-07-31 Thread 1Rnwb
use hilox<-range.x=range(x variable) and hiloy<-range.y=range(y variable) or store these values in vectors to be later on user as xlim=hilox, ylim=hiloy Frank Bloos wrote: > > You may want to use the function corner.label from the plotrix-package. > > Frank > Mark Na 21.07.2009 23:03 >

Re: [R] R Codes for fitting Logistic Regression for Multivaraite Data

2009-07-31 Thread 1Rnwb
usually i go thru the manuals of the libraries and the data attached with the libraries to get the code working for my data. not a good way but usually it works out. Nimal Fernando wrote: > > Hi > > It would be a great help if someone can direct me to access some existing > R > codes for fittin

[R] Matrix Integral

2009-07-31 Thread nhawrylyshyn
Hi, Any help on this would be appreciated: I need to integrate where K is a 4x4 matrix, and SIGMA is a 4x4 matrix from say a to b, i.e. 0 to 5: integral MatrixExp(-K * s) %*% SIGMA %*% t(SIGMA) %*% MatrixExp(t(-K) s) ds t is tranpose , %*% : matrix mult , MatrixExp : matrix exponential I've

[R] MLE estimation of constrained mean Singh-Maddala distribution

2009-07-31 Thread Josh Parcel
INTRODUCTION TO THE PROBLEM I am trying to fit a distribution to a dataset. The distribution that I am currently considering is the (3-parameter) Singh-Maddala (Burr) distribution. The final model will fix the mean of the distribution to a given value and estimate the remaining parameters accordin

Re: [R] automate multiple object creation

2009-07-31 Thread waltzmiester
x<-c("a","b","c","d","e","f") y<-rep(c(3,4,5,8),6) z<-rep(c(23,24,25,26,27,28),6) name1<-sprintf("Pred_pres_%s_indpdt[,%s,,]",x,y) name2<-sprintf("population[,%s]",z) rank<-function(i,j){ for(i in name1){ for(j in name2){ somers2(i,j) }}} rank(name1,name2) waltzmie

Re: [R] automate multiple object creation

2009-07-31 Thread waltzmiester
I believe this is a little bit closer: rank<-function(i,j){ for(i in name1){ for(j in name2){ somers2(i,j) }}} rank(name1,name2) bu still not there waltzmiester wrote: > > I appreciate all the help I have received from this list and also not > being flamed because

[R] How to stop an R script when running JGR on a Linux/SuSE system

2009-07-31 Thread mauede
When I need to stop a running R script on Windows or Mac I just use the key which kills the current script and returns the control to R interpreter. But when I run R from JGR the is useless as well as the other available keyboard keys. Just recently not even clicking on the STOP-symbol (a big

Re: [R] truncating values into separate categories

2009-07-31 Thread Albyn Jones
It appears that your difficulty lies in miscounting the number of intervals. cut(NP, breaks=c(0,1,2,3,4,max(NP))) [1] (0,1] (0,1] (1,2] (0,1] (0,1] (1,2] (1,2] (0,1] (3,4] (0,1] (4,6] (2,3] (2,3] (0,1] [16] (4,6] (2,3] (4,6] (0,1] (4,6] (0,1] (1,2] (1,2] (1,2] (3,4] (3,4] (0,1] (1,2] (0,1

Re: [R] Function to standardize matriz?

2009-07-31 Thread Sam
Yes, I was looking for something to convert to a Z matrix, (the var minus the mean, divided by the standard deviation). Thank you very much for your help! I'll take a look at that. On Thu, Jul 30, 2009 at 2:14 AM, wrote: > scale? > > This transforms the columns of a matrix to z-scores.  That's on

Re: [R] Preparing for multi-core CPUs and parallel processing applications

2009-07-31 Thread Dirk Eddelbuettel
Steve, Martin already mentioned r-sig-hpc and the HPC task view for the bulk of your questions. The Schmidbger et al paper (linked from the Task View) should address a few of your questions. Just two more quick add-ons: On 31 July 2009 at 09:22, steve_fried...@nps.gov wrote: | 5) Can we take

Re: [R] Runtime Error with multinom

2009-07-31 Thread Prof Brian Ripley
Well, I get multinom(formula(data),data=data[Z,]) # weights: 6 (0 variable) initial value 0.00 final value 0.00 converged Call: multinom(formula = formula(data), data = data[Z, ]) Coefficients: (Intercept) factor2f factor2g factor2h size Residual Deviance: 0 AIC: 0 Warning mes

Re: [R] help in using gsub and ?

2009-07-31 Thread Henrique Dallazuanna
Try this: cat(str2, "\n") On Fri, Jul 31, 2009 at 10:30 AM, ravi wrote: > > Hi all, > I would like to strip the R prompt from a series of code lines and copy the > resulting text into a R script. For example, consider the following : > # > str1<-" > > library(MASS) > > data(Cars93) > > att

Re: [R] Systematic resampling

2009-07-31 Thread Giovanni Petris
Dear all, This is the sequel to a question of mine a couple of days ago about how to implement systematic resampling from a discrete distribution efficiently. (See below the original question and description of the problem - the problem, in a nutshell, is how to draw N points from a discrete dis

Re: [R] Preparing for multi-core CPUs and parallel processing applications

2009-07-31 Thread Martin Morgan
Hi Steve -- steve_fried...@nps.gov wrote: > Hello > > I am fortunate (or in really big trouble) in that the research group I work > with will soon be receiving several high end dual quad core machines. We > will use the Ubuntu OS on these. We intend to use this cluster for some > extensive model

[R] Re : what meaning missing value True /False needed

2009-07-31 Thread Inchallah Yarab
Thank you SARAH De : Sarah Goslee rg> Envoyé le : Vendredi, 31 Juillet 2009, 15h21mn 50s Objet : Re: [R] what meaning missing value True /False needed You are far more likely to get helpful volunteers to answer your questions if you distill your problem down

Re: [R] Question regarding sqldf

2009-07-31 Thread Rizzo . Michael
My sqldf package was already updated. The result from the example you ran is also missing 2 of the five days so something still isn't working correctly. |> | From: | |> >-

Re: [R] tweak a bit the legend wiht ggplot2

2009-07-31 Thread hadley wickham
Hi Benoit, Unfortunately there's currently no way to do that - the legend automatically corresponds to the geom in the plot. Hadley On Thu, Jul 23, 2009 at 11:30 AM, Benoit Boulinguiez wrote: > Hi all, > > I've this ggplot2 graph > (http://www.4shared.com/file/120101043/f3e9350/isotherm.html). >

Re: [R] how can i delete a message in R-help?

2009-07-31 Thread ONKELINX, Thierry
You can't delete post for the mailing list. The posting guide reads: "Posters should be aware that the R lists are public discussion lists and anything you post will be archived and accessible via several websites for many years."

[R] automate multiple object creation

2009-07-31 Thread waltzmiester
I appreciate all the help I have received from this list and also not being flamed because I am new to R. Many of my problems are in automation so far. I am trying to create multiple objects that are outputs of functions. Here are the tasks: aGAM<-somers2(Pred_pres_a_indpdt[,3,,],population[,23]

Re: [R] Automatic datasets creation from multiple data sheets in a single excel file

2009-07-31 Thread Dieter Menne
rajclinasia wrote: > > Please let us know how to create automatic datasets from multiple data > sheets in a single excel file... > > For example if there are 10 sheets in a single excel file, automatically > 10 datasets need to be created at a time when i read an excel file as a > whole at onc

Re: [R] how can i delete a message in R-help?

2009-07-31 Thread Marc Schwartz
On Jul 31, 2009, at 8:18 AM, Inchallah Yarab wrote: Hi i need to delete a message that a send to r -help ?? Can you please tell me how? Thank you You really can't. r-help is a public mailing list with live archives, not only stored by R's various servers, but by several other online

Re: [R] Getting file name from pdf device?

2009-07-31 Thread ONKELINX, Thierry
Dear Rainer, You could have a look at ggsave() from the ggplot2 package. I guess that such an approach to save a plot is easier to combine with a tool like pdftk. HTH, Thierry ir. Thierry Onkelinx Instituut voor natu

[R] help in using gsub and ?

2009-07-31 Thread ravi
Hi all, I would like to strip the R prompt from a series of code lines and copy the resulting text into a R script. For example, consider the following : # str1<-" > library(MASS) > data(Cars93) > attach(Cars93) > imosaic(data.frame(AirBags,Cylinders,Origin))" str2<-gsub('>','',str1) ## T

Re: [R] how can i delete a message in R-help?

2009-07-31 Thread Sarah Goslee
I'm not sure it's possible, but a good place to start would be the mailman and posting guide links that appear at the bottom of each and every message to the list. Sarah On Fri, Jul 31, 2009 at 9:18 AM, Inchallah Yarab wrote: > Hi > > i need to delete a message that a send to r -help ?? Can you p

Re: [R] Getting file name from pdf device?

2009-07-31 Thread Dieter Menne
Rainer M Krug-6 wrote: > > > My question: how can I get the filename of the pdf from the device > before it is closed? > Setting a hook might work (not tried, though) http://finzi.psych.upenn.edu/R/Rhelp08/2009-February/188168.html Dieter -- View this message in context: http://www.nab

[R] Preparing for multi-core CPUs and parallel processing applications

2009-07-31 Thread Steve_Friedman
Hello I am fortunate (or in really big trouble) in that the research group I work with will soon be receiving several high end dual quad core machines. We will use the Ubuntu OS on these. We intend to use this cluster for some extensive modeling applications. Our programming guru has demonstrate

Re: [R] what meaning missing value True /False needed

2009-07-31 Thread Sarah Goslee
You are far more likely to get helpful volunteers to answer your questions if you distill your problem down to the smallest point. That's a lot of code to wade through. But since I was waiting for something else to run, I took a stab at it. It also would have been helpful if you'd given the *comple

[R] how can i delete a message in R-help?

2009-07-31 Thread Inchallah Yarab
Hi i need to delete a message that a send to r -help ?? Can you please tell me how? Thank you [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

Re: [R] colored 3D pillar plots

2009-07-31 Thread Eik Vettorazzi
Hi Thomas, for a start you may use lattice, see fig 6.15 on http://lmdvr.r-forge.r-project.org/figures/figures.html hth. Thomas von Känel schrieb: hi, I'd like to do graphs like shown on the right panel on the following link: http://www.clinchem.org/cgi/content/full/53/8/1544/F1 (if link doe

Re: [R] have the value of variable in a function

2009-07-31 Thread MORNEAU François
Hello, Perhaps have a look at ?debug and ?browser... ... and at fortune(159) in the 'fortunes' package ;) ! Regards, François -Message d'origine- De : r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] De la part de Inchallah Yarab Envoyé : vendredi 31 juillet 2009 14:24

[R] Getting file name from pdf device?

2009-07-31 Thread Rainer M Krug
Hi IU would like to modify the dev.off function, so that it automatically compresses the created pdf. I am thinking of doing the following in the modified dev.off: 1) Get the filename of the pdf device 2) close the device by calling the original dev.off() 3) compress the pdf file with a system ca

Re: [R] Retrieving original data frame after repetition

2009-07-31 Thread Marc Schwartz
On Jul 31, 2009, at 5:52 AM, Jose Iparraguirre D'Elia wrote: Hi Marc (et al) I've spoken too soon... Please, have a look at this chunk of real world data. The data frame a below contains the first ten records (and first two columns) of a survey dataset. It reads as follows: 1662 people have

Re: [R] Retrieving original data frame after repetition

2009-07-31 Thread Jose Iparraguirre D'Elia
Hi Marc (et al) I've spoken too soon... Please, have a look at this chunk of real world data. The data frame a below contains the first ten records (and first two columns) of a survey dataset. It reads as follows: 1662 people have an income of 279, etc. If you see lines 2 and 3, there are 1956

[R] have the value of variable in a function

2009-07-31 Thread Inchallah Yarab
hi , i need to know the value of variable used in a function i don't know if it is easy to do??? thank you [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

[R] what meaning missing value True /False needed

2009-07-31 Thread Inchallah Yarab
This is my code i don't understand the error message: library(rgenoud) rm(list=ls()) set.seed(666) # # As a first step, it is assumed that all input parameters are independent of ageing : #

Re: [R] how use the subset?

2009-07-31 Thread jim holtman
'scan' creates a 'list'; subset is typically used on dataframes. I can get a similar message below: > x <- list(a=1:10, b=1:10) > subset(x, a<5) Error in subset.default(x, a < 5) : object 'a' not found > # now convert the list to a dataframe > x.df <- as.data.frame(x) > subset(x.df, a < 5) a b

Re: [R] (no subject)

2009-07-31 Thread jim holtman
Type: library() at the prompt to see what libraries are known to your system. You might have a path name messed up or something. Here is part of the output that shows on my system with 'lattice' shown Packages in library 'C:/PROGRA~1/R/R-29~1.0/library': base

Re: [R] constrained input for optimization algorithm

2009-07-31 Thread Prof. John C Nash
As someone very involved with optim and its evolution I can say it is not at all suited to this sort of combinatoric optimization. I don't know if there are packages in R to help out -- it would be nice. If (this may be a big IF) your set of possible combinations is not too large, combn() gene

Re: [R] R User Group listings

2009-07-31 Thread Prof. John C Nash
Further to my posting about R UG mailing lists etc., and David Smith's post about the list he is maintaining (I was aware of his blog, but not that he was updating -- good show), I'm in communication with him to try to ensure we get appropriate information out to useRs. Already there has bee

Re: [R] R User Group in Canberra

2009-07-31 Thread John Maindonald
Please add AUSTRALIA Canberra: Canberra R Users Group (CANRUG) http://canrug.togaware.com/ Cheers john. John Maindonald email: john.maindon...@anu.edu.au phone : +61 2 (6125)3473fax : +61 2(6125)5549 Centre for Mathematics & Its Applications, Room 1194, John Dedman Mathematical

Re: [R] Logistic regression and R

2009-07-31 Thread ONKELINX, Thierry
Dear Marlene, Have a look at the polr() function in the MASS package. HTH, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest Cel biometrie, methodologie

[R] Automatic datasets creation from multiple data sheets in a single excel file

2009-07-31 Thread rajclinasia
Please let us know how to create automatic datasets from multiple data sheets in a single excel file... For example if there are 10 sheets in a single excel file, automatically 10 datasets need to be created at a time when i read an excel file as a whole at once. Please attach the necessary code

Re: [R] what is the meaning of this error message?

2009-07-31 Thread Jim Lemon
Inchallah Yarab wrote: Hi, I need your help :: what i the meaning of this error message"Missing value where true / false needed??" Hi Inchallah, This usually happens when you have a conditional (if or while) statement like this: if(var81 == 0) { ... } while(var73 > 0) { ... } ifelse(var1

[R] any advice on noparametric statistics

2009-07-31 Thread Mao Jianfeng
Dear R-lister and Prof. Harrell, To Prof. Harrell: I feel very sorry to bothering you. The ecological data usually do not follow strictly-defined normal distribution. So, there are many more works before any parametric testing or any regression modeling-fitting . Tens of days ago, when I ask for

Re: [R] Logistic regression and R

2009-07-31 Thread marlene marchena
Hi there, I take advantage of this chat to ask other question related to logistic regression. This is my first time as well. I have data that I want to model but I’m not sure if glm() is the correct function to use. My problem is as follow, I used Oxford Instability Score of the shoulder (OIS,

Re: [R] gbm package: relationship between interaction.depth and number of features?

2009-07-31 Thread Patrick Connolly
On Thu, 30-Jul-2009 at 12:36AM +0400, Boris Yangel wrote: |> Hello. I'm currently stuck with the same "what does interaction.depth really |> mean" stuff. Did you find out what the right answer is? |> I stand to be corrected, but I think it is one fewer than the number of leaves in the final tree

Re: [R] package lattice can't be loeaded

2009-07-31 Thread Stein, Luba (AIM SE)
You are right, the installation went wrong although I do not know why because this never occured to me before. So I unzipped lattice manually and afterwards everything worked fine. Thank you for your help, Luba -Urspr?ngliche Nachricht- Von: Petr PIKAL [mailto:petr.pi...@precheza.cz]

[R] colored 3D pillar plots

2009-07-31 Thread Thomas von Känel
hi, I'd like to do graphs like shown on the right panel on the following link: http://www.clinchem.org/cgi/content/full/53/8/1544/F1 (if link doesn't work see attached file) Any help and ideas highly appreciated, thanks in advance. Thomas von Känel Human Genetics Uni Berne ___

Re: [R] CRAN + geography = Cranography

2009-07-31 Thread Bjørn-Helge Mevik
Barry Rowlingson writes: > http://www.maths.lancs.ac.uk/~rowlings/R/Cranography/ Absolutely beautiful! > Note this is just for fun. No warranties. Maybe I should use a little > 'R' as a marker. That would be cool. > Maybe I should get a life. :-) -- Bjørn-Helge Mevik _

Re: [R] Forecasting Inflation

2009-07-31 Thread Dilip Bayas
On Mon, Jul 27, 2009 at 4:51 PM, Dilip Bayas < agrikonnect.dilipba...@gmail.com> wrote: > Dear All, > > I wanted to forecast Inflation for Indian Economy. please send what > techniques to be used after the variable selection. WPI, CPI, Money supply, > IIP, Interest rate and so on..How i can use R

  1   2   >