Re: [R] NAs introduced by coercion in dist()

2007-05-03 Thread Petr PIKAL
[EMAIL PROTECTED] napsal dne 02.05.2007 16:47:55: It was suggested that the 'NAs introduced by coercion' message might be warning me that my data are not what they should be. I checked this using str(PeaksMatrix), as suggested, and the data seem to be what I thought they were:

[R] Odp: about using read.table

2007-05-03 Thread Petr PIKAL
Hi Did you see FAQ 2.16? Try file.choose() Regards Petr [EMAIL PROTECTED] [EMAIL PROTECTED] napsal dne 03.05.2007 02:26:27: Hi,Dear R users, I have a file text nommed chif which contains 16 lines and 4 columns in the disc dur. I have a difficulty to read this file in R console I have

Re: [R] Problem with the installation of install R on Sun Solaris

2007-05-03 Thread Vipin Singhal
Hi All, First we install sun studio 11 on the server and then tried to install R This time I am getting the different errors. Please find attached the config.log files 1. old_config: before installation of sun studio 2. new_config: after installation of sun studio Thanks,

[R] Sharpe-Ratio

2007-05-03 Thread Soare Marcian-Alin
Hello, Is there any possibility how i can calculate the Sharpe Ratio of a ts? KR, Alin Soare [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] Bayesian logistic regression with a beta prior (MCMClogit)

2007-05-03 Thread francogrex
Dear all, I am trying to use the logistic regression with MCMClogit (package: MCMCpack/Coda) and I want to put a beta prior on the parameters, but it's giving me error message (please see output below) no matter what shape 1 or 2 I use. It works perfect with the cauchy or normal priors. Do you

[R] Single Title for the Multiple plot page

2007-05-03 Thread Mohammad Ehsanul Karim
Dear List, In R we can plot multiple graphs in same page using par(mfrow = c(*,*)). In each plot we can set title using main and sub commands. However, is there any way that we can place an universal title above the set of plots placed in the same page (not individual plot titles, all i need

[R] searching for special variables

2007-05-03 Thread Schmitt, Corinna
Dear R-Experts, in my program I have a big workspace. Now I want to look for all variables which have the letters 777 in their name (e.g. ask777first) and afterwards I need to delete those variables. How can I reach this aim? Any ideas, Corinna __

Re: [R] Query about RODBC to access MySQL from Windows

2007-05-03 Thread Bruno C\.
First, try this kind of connection string channel - odbcConnect(mysqldsn,uname;Password=pwd;Database=default_db) If it doesn't work, in order to understand if it's a permission issue, try to connect with another client (still using the RODBC!!if you use the mysql client, you

Re: [R] searching for special variables

2007-05-03 Thread Dimitris Rizopoulos
one option is use something like the following: a - 1:10 b777 - rnorm(10) c777 - letters[1:6] fit - lm(b777 ~ a) a777d777 - 5 ## lis - ls() rm(list = c(lis[grep(777, lis)], lis)) ls() I hope it helps. Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre

[R] help with plot axis

2007-05-03 Thread Rina Miehs
Hello i have a plot, and want the axis too be with larger writing, i found some functions but they didnt work this is my plot, and if the axis can be with bigger writing can the legend inside the plot be in same the size?? plot(femsplot, xlab='Indeks',ylab='Kødprocent', pch=22)

Re: [R] searching for special variables

2007-05-03 Thread Vladimir Eremeev
ls(pattern=.*777.*) Schmitt, Corinna wrote: Dear R-Experts, in my program I have a big workspace. Now I want to look for all variables which have the letters 777 in their name (e.g. ask777first) and afterwards I need to delete those variables. How can I reach this aim? -- View

Re: [R] Single Title for the Multiple plot page

2007-05-03 Thread Chuck Cleland
Mohammad Ehsanul Karim wrote: Dear List, In R we can plot multiple graphs in same page using par(mfrow = c(*,*)). In each plot we can set title using main and sub commands. However, is there any way that we can place an universal title above the set of plots placed in the same page

Re: [R] Query about RODBC to access MySQL from Windows

2007-05-03 Thread Prof Brian Ripley
On Thu, 3 May 2007, Bruno C. wrote: First, try this kind of connection string channel - odbcConnect(mysqldsn,uname;Password=pwd;Database=default_db) I presume the DSN was set up in a dialog box under Windows, and tested there (which provides a different client). This makes me suspect the DSN

[R] Odp: help with plot axis

2007-05-03 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 03.05.2007 10:33:22: Hello i have a plot, and want the axis too be with larger writing, i found some functions but they didnt work this is my plot, and if the axis can be with bigger writing can the legend inside the plot be in same the size??

Re: [R] Install SciView under Windows Vista

2007-05-03 Thread Uwe Ligges
I guess you have an outdated version of R2HTML. Please run update.packages(checkBuilt=TRUE) and try again. If it still does not work, please notify its package maintainer and tell him the package's version number. Uwe Ligges Tim Sippel wrote: Hello- I have been trying to install SciView

[R] Nested ANOVA in R

2007-05-03 Thread Majid Iravani
Dear R users, I installed an experiment as following setup: - Four plant species - Seed addition as main factor with two levels: control and seed addition. - Four replicates (sites) - 8 plots in each site arranged as two rows (each rows 4 plots) one meter far from each other - Four sub-plots in

Re: [R] Install SciView under Windows Vista

2007-05-03 Thread Prof Brian Ripley
Are you sure your version of R2HTML is up-to-date and built under R 2.5.0? Use update.packages(checkBuilt=TRUE) if you have not already done so. That got me R2HTML 1.58, not 1.54. On Thu, 3 May 2007, Tim Sippel wrote: Hello- I have been trying to install SciView under Windows Vista (Home

[R] Filling array: No recycling

2007-05-03 Thread Felix Wave
Hello, is it possible to fill an array with no using of the recycling rule? My problem. I want to fill an array but my values have not always the same length. My aim. I want to fill the array only ONE TIME. All vacent places should be written with NA. Thank's a lot. Felix Example:

Re: [R] Filling array: No recycling

2007-05-03 Thread Petr Klasterecky
First make your vectors to have the same length and then put them to the array. x - c(1,2) x [1] 1 2 length(x) - 5 x [1] 1 2 NA NA NA Petr Felix Wave napsal(a): Hello, is it possible to fill an array with no using of the recycling rule? My problem. I want to fill an array but my

[R] Problem with the installation of install R on Sun Solaris

2007-05-03 Thread Jomy Jose
*** Error code 1 make: Fatal error: Command failed for target `R.bin' Current working directory /opt/dev/R/R-2.4.1/src/main *** Error code 1 The following command caused the error: make install-bin-local make: Fatal error: Command failed for target `R' Current working directory

Re: [R] Filling array: No recycling

2007-05-03 Thread Prof Brian Ripley
How about A - array(NA, c(2,4) ) x - 1:3 A[seq_along(x)] - x ? On Thu, 3 May 2007, Felix Wave wrote: Hello, is it possible to fill an array with no using of the recycling rule? My problem. I want to fill an array but my values have not always the same length. My aim. I want to fill the

Re: [R] Filling array: No recycling

2007-05-03 Thread Robin Hankin
Felix I'm not quite sure I understand your example, but try: a - array(NA,c(2,2,3)) jj - c(12,33,22) a[1:length(jj)] - jj a which will fill only the first three elemens of array a HTH rksh On 3 May 2007, at 10:41, Felix Wave wrote: Hello, is it possible to fill an array with no using

Re: [R] searching for special variables

2007-05-03 Thread Vladimir Eremeev
sorry, forgot to delete objects. rm(list=ls(pattern=.*777.*)) Vladimir Eremeev wrote: ls(pattern=.*777.*) Schmitt, Corinna wrote: in my program I have a big workspace. Now I want to look for all variables which have the letters 777 in their name (e.g. ask777first) and afterwards I

[R] Plotting more errorbar-functions in one plot

2007-05-03 Thread Hedwig Franziska Maria Zimmerer
Hello, it´s new for me tu use R for my statistics analysis, so I need some help. The problem is: I want to plot errorbar-functions from two measurements in one coordinate-system. For that I use the following code: library(sfsmisc) errbar(XAchse,Means,Mins,Maxs,xlab=,ylab=,xlim=range(0,100))

Re: [R] searching for special variables

2007-05-03 Thread Gabor Grothendieck
Try: rm(list = ls(patt = 777)) On 5/3/07, Schmitt, Corinna [EMAIL PROTECTED] wrote: Dear R-Experts, in my program I have a big workspace. Now I want to look for all variables which have the letters 777 in their name (e.g. ask777first) and afterwards I need to delete those variables. How

Re: [R] Single Title for the Multiple plot page

2007-05-03 Thread Stephen Tucker
Sometimes I just overlay a blank plot and annotate with text. par(mfrow=c(1,2), oma=c(2,0,2,0)) plot(1:10) plot(1:10) oldpar - par() par(mfrow=c(1,1),new=TRUE,mar=rep(0,4),oma=rep(0,4)) plot.window(xlim=c(0,1),ylim=c(0,1),mar=rep(0,4)) text(0.5,c(0.98,0.02),c(Centered Overall Title,Centered

Re: [R] Single Title for the Multiple plot page

2007-05-03 Thread jim holtman
Here is a way of putting a title in the outer margin: par(mfrow=c(2,2), oma=c(0,0,3,0)) # leave space in outer margin plot(1) plot(2) plot(3) plot(4) mtext('Outer Title', adj=0.5, side=3, outer=TRUE) On 5/3/07, Mohammad Ehsanul Karim [EMAIL PROTECTED] wrote: Dear List, In R we can plot

[R] hi

2007-05-03 Thread elyakhlifi mustapha
hi, I have a problem to use union function because one of the elements is a character and the others are numeric for(j in 1:length(I)) { + C1 - levels(factor(subset(donParEssai, Id_Essai == 1006961 Id_Cara == I[j], select = Date_O)[,1])) + C2 - as.numeric(levels(factor(subset(donParEssai,

Re: [R] Odp: about using read.table

2007-05-03 Thread John Kane
I believe you mean R for Windows 2.16 ? --- Petr PIKAL [EMAIL PROTECTED] wrote: Hi Did you see FAQ 2.16? Try file.choose() Regards Petr [EMAIL PROTECTED] [EMAIL PROTECTED] napsal dne 03.05.2007 02:26:27: Hi,Dear R users, I have a file text nommed chif which contains 16

Re: [R] Multiple scatterplots

2007-05-03 Thread John Kane
--- Bert Gunter [EMAIL PROTECTED] wrote: Please note: in R you can specify (some of the) graphics parameters as the appropriate length vectors. So your plot example below can also be done as, for example: plot( rep.int(aa,3),c(cc,bb,dd),col=rep(c(red,blue,green),e=length(aa)))

[R] Odp: hi

2007-05-03 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 03.05.2007 14:01:27: hi, I have a problem to use union function because one of the elements is a character and the others are numeric for(j in 1:length(I)) { + C1 - levels(factor(subset(donParEssai, Id_Essai == 1006961 Id_Cara == I[j], select =

Re: [R] upgrade to 2.5

2007-05-03 Thread bogdan romocea
I find it easier to install all the packages again: #---run in previous version packages - installed.packages()[,Package] save(packages, file=Rpackages) #---run in new version load(Rpackages) for (p in setdiff(packages, installed.packages()[,Package])) install.packages(p) -Original

[R] convert text to exprission good for lm arguments

2007-05-03 Thread Vadim Ogranovich
Hi, I ran into a problem of converting a text representation of an expression into parsed expression to be further evaluated inside lm (). n - 100 data - data.frame(x= rnorm (n), y= rnorm (n)) data. lm - lm (y ~ x, data=data) ## this works update(data. lm , subset=x0) Call: lm

Re: [R] Sharpe-Ratio

2007-05-03 Thread John Kane
http://finzi.psych.upenn.edu/R/library/tseries/html/sharpe.html --- Soare Marcian-Alin [EMAIL PROTECTED] wrote: Hello, Is there any possibility how i can calculate the Sharpe Ratio of a ts? KR, Alin Soare [[alternative HTML version deleted]]

Re: [R] adding a column to a matrix

2007-05-03 Thread Vladimir Eremeev
Hello, Please, consider the functions pmin and pmax. Tuesday, May 1, 2007, 3:29:54 PM, you wrote: rc thanks for the previous advice it seems to have worked what about the following rc l have the following dataset and would like to calculate the actual survival time by rc if censoring time

Re: [R] convert text to exprission good for lm arguments

2007-05-03 Thread Gabor Grothendieck
Try: do.call(update, list(data.lm, subset = parse(text = subset))) On 5/3/07, Vadim Ogranovich [EMAIL PROTECTED] wrote: Hi, I ran into a problem of converting a text representation of an expression into parsed expression to be further evaluated inside lm (). n - 100 data -

Re: [R] convert text to exprission good for lm arguments

2007-05-03 Thread Vladimir Eremeev
Vadim Ogranovich wrote: Hi, I ran into a problem of converting a text representation of an expression into parsed expression to be further evaluated inside lm (). n - 100 data - data.frame(x= rnorm (n), y= rnorm (n)) data. lm - lm (y ~ x, data=data) ## this works

[R] factanal AIC?

2007-05-03 Thread Jens Oehlschlägel
Dear list members, Could any expert on factor analysis be so kind to explain how to calculate AIC on the output of factanal. Do I calculate AIC wrong or is factanal$criteria[objective] not a negative log-likelihood? Best regards Jens Oehlschlägel The AIC calculated using summary.factanal

Re: [R] upgrade to 2.5

2007-05-03 Thread Vladimir Eremeev
I usually install a new version over the old one (in the same directory). I did this since R 1.xx, using windows 2000 and then windows XP. No bugs were found, everything always works fine. Iasonas Lamprianou wrote: Hi I am using R version 2.4.1. How can I upgrade to version 2.5 without

[R] Problem with GARCH models in R compared to S-PLUS

2007-05-03 Thread Shubha Karanth
Hi R, I have three queries regarding handling GARCH functions in R. Below I document the same: Unlike S-Plus, R doesn't handle Multivariate GARCH models. R has a package for BEKK GARCH model but not for DVEC GARCH models. The GARCH function in S-PLUS has the capability of fixing some model

Re: [R] convert text to exprission good for lm arguments

2007-05-03 Thread Gabor Grothendieck
On 5/3/07, Vladimir Eremeev [EMAIL PROTECTED] wrote: Vadim Ogranovich wrote: Hi, I ran into a problem of converting a text representation of an expression into parsed expression to be further evaluated inside lm (). n - 100 data - data.frame(x= rnorm (n), y= rnorm (n)) data.

Re: [R] Sharpe-Ratio

2007-05-03 Thread AA
have a look at Rmetrics www.rmetrics.org for R in finance in general and the taskview http://cran.r-project.org/src/contrib/Views/ I hope that helps. AA. - Original Message - From: Soare Marcian-Alin [EMAIL PROTECTED] To: R-help@stat.math.ethz.ch Sent: Wednesday, May 02, 2007 6:32 PM

Re: [R] How to install previous packages after upgrading to R 2.5.0?

2007-05-03 Thread Don MacQueen
I use a script, i.e., place a few lines of R code in a file: ## create a vector of package names my.packages - c('pkgname1','pkgname2','pkgname3') ## install them (check whether other args to install.packages() need to be specified) install.packages(pkgs=my.packages) and then source the

[R] [R-pkgs] randomSurvivalForest 2.1.0 now available

2007-05-03 Thread K. B. Udaya
Dear useRs: Release 2.1.0 of the randomSurvivalForest package is now available. -- CHANGES TO RELEASE 2.1.0 Release 2.1.0 represents a minor upgrade of the product, and will not affect most users of

[R] reshape question

2007-05-03 Thread GOUACHE David
Hello all, A quick question concerning a behavior of reshape I fail tu understand, probably something obvious but I just can't see it. With the following data frame further referred to as tab :

[R] [R-pkgs] Ryacas now on CRAN

2007-05-03 Thread Gabor Grothendieck
Ryacas is now available on CRAN. (Previously it was available on the Omegahat repository.) Ryacas is an R package that provides an interface from R to the yacas computer algebra system. It can be used for computer algebra, exact arithmetic, ASCII pretty printing and R to TeX output. R, yacas

[R] R Wiki down?

2007-05-03 Thread Talbot Katz
Hi. I can't access the site http://wiki.r-project.org/. I didn't find any notice about this on http://www.r-project.org/. Does anyone have any more information about the R Wiki status? Thanks! -- TMK -- 212-460-5430home 917-656-5351cell

Re: [R] reshape question

2007-05-03 Thread Gabor Grothendieck
Try this: cn - names(tab) nm - list(Date = grep(Date_, cn, value = TRUE), Variable = grep(Variable, cn, value = TRUE), Valeur = grep(Valeur, cn, value = TRUE) ) reshape(tab, direction = long, varying = nm) On 5/3/07, GOUACHE David [EMAIL PROTECTED] wrote: Hello all, A quick question

Re: [R] the Surv function

2007-05-03 Thread Armin Goralczyk
2007/5/2, Jennifer Dillon [EMAIL PROTECTED]: Hi, I'm trying to do a simple survival analysis on some data, and I'm having the following problem (here's my code and the error message): out - Surv(fup,event=status) Error in Surv(fup, event = status) : argument time2 is missing, with no

[R] Off topic? Geographic data

2007-05-03 Thread Alberto Vieira Ferreira Monteiro
Sorry if this is off-topic, but since there are so many data sets in R, I wonder if there is any data set with Geographic data, like (latitude,longitude) lists of the contour of the continents and countries. Alberto Monteiro __

[R] Package contrast error

2007-05-03 Thread Ken Nussear
Trying to use contrast to look at differences within an lme lme.fnl.REML - lme(Max ~ S + Tr + Yr + Tr:Yr, random = ~1 |TID, method = REML) I have three levels of Tr I'm trying to contrast among different years (R, T97, T98), years = 1997-1999, so I'm interested in contrasts of the

Re: [R] reshape question

2007-05-03 Thread Gabor Grothendieck
Here is a minor improvement (cn and nm as before): reshape(tab, direction = long, varying = nm, v.names = names(nm)) On 5/3/07, Gabor Grothendieck [EMAIL PROTECTED] wrote: Try this: cn - names(tab) nm - list(Date = grep(Date_, cn, value = TRUE), Variable = grep(Variable, cn, value =

[R] nlme fixed effects specification

2007-05-03 Thread ivo welch
dear R experts: sorry, I have to ask this again. I know that the answer is in section 7.2 of S Programming, but I don't have the book (and I plan to buy the next edition---which I hope will be titled S/R programming ;-) ). I believe the following yields a standard fixed-effects estimation:

Re: [R] Package contrast error

2007-05-03 Thread Chuck Cleland
Ken Nussear wrote: Trying to use contrast to look at differences within an lme lme.fnl.REML - lme(Max ~ S + Tr + Yr + Tr:Yr, random = ~1 |TID, method = REML) I have three levels of Tr I'm trying to contrast among different years (R, T97, T98), years = 1997-1999, so I'm interested in

Re: [R] Bayesian logistic regression with a beta prior (MCMClogit)

2007-05-03 Thread Cody_Hamilton
Dear Franco, Have you tried using the beta.start option in MCMClogit? (The problem may be where you are starting your chain.) Regards, -Cody francogrex

Re: [R] Off topic? Geographic data

2007-05-03 Thread Duncan Murdoch
On 5/3/2007 1:19 PM, Alberto Vieira Ferreira Monteiro wrote: Sorry if this is off-topic, but since there are so many data sets in R, I wonder if there is any data set with Geographic data, like (latitude,longitude) lists of the contour of the continents and countries. The maps and mapdata

[R] R package development in windows

2007-05-03 Thread Doran, Harold
I'm attempting to build an R package for distribution and am working from the directions found at http://www.maths.bris.ac.uk/~maman/computerstuff/Rhelp/Rpackages.html#Wi n-Win I've read through Writing R Extensions and various other helpful web sites. I've installed all relevant software (perl,

Re: [R] Package contrast error

2007-05-03 Thread Kuhn, Max
Ken, lme.fnl.REML - lme(Max ~ S + Tr + Yr + Tr:Yr, random = ~1 |TID, method = REML) You have three variables in the model: S, Tr and Yr. tst - contrast(lme.fnl.REML, a=list(Yr=levels(Yr), Tr=R), b=list (Yr=levels(Yr, Tr=T97))) Error in gendata.default(fit = list(modelStruct =

Re: [R] R package development in windows

2007-05-03 Thread Sundar Dorai-Raj
Doran, Harold said the following on 5/3/2007 11:32 AM: I'm attempting to build an R package for distribution and am working from the directions found at http://www.maths.bris.ac.uk/~maman/computerstuff/Rhelp/Rpackages.html#Wi n-Win I've read through Writing R Extensions and various other

Re: [R] R package development in windows

2007-05-03 Thread Gabor Grothendieck
It can find sh.exe so you haven't installed Rtools. There are several HowTo's listed in the links section here that include pointers to R manuals and other step by step instructions: http://code.google.com/p/batchfiles/ On 5/3/07, Doran, Harold [EMAIL PROTECTED] wrote: I'm attempting to build

[R] Truncating trailing digits

2007-05-03 Thread Pietrzykowski, Matthew \(GE, Research\)
Hello, I am relatively new to R and have a rudimentary question, I think. How does one truncate the number of digits displayed after the decimal when viewing the results of analyses? My apologies if this question has been answered previously, I was not able to find references very easily.

Re: [R] R package development in windows

2007-05-03 Thread Doran, Harold
Thanks Gabor, Sundar, and Tony. Indeed, Rtools was missing from the path. With that resolved, and another 10 minute windows restart, I get the following below. The log suggests that hhc is not installed. It is, and, according to the directions I am following, I have placed it in the c:\cygwin

[R] Parsing data with an uneven number of delimiters

2007-05-03 Thread Kevin Burke
I have a list of data that is delimited by a / and, as long as there is an equal number of delimiters, I can parse the data and put it into a data frame: t1-c(a/a/a,b/bb/bbb,ccc/cc/c) t2-strsplit(t1,/) t3-data.frame(t2) t3 c..aaa.. c..bbbbbb.. c..cccccc.. 1

Re: [R] Off topic? Geographic data

2007-05-03 Thread Roger Bivand
On Thu, 3 May 2007, Alberto Vieira Ferreira Monteiro wrote: Sorry if this is off-topic, but since there are so many data sets in R, I wonder if there is any data set with Geographic data, like (latitude,longitude) lists of the contour of the continents and countries. Please see the Spatial

Re: [R] R package development in windows

2007-05-03 Thread Duncan Murdoch
On 5/3/2007 3:04 PM, Doran, Harold wrote: Thanks Gabor, Sundar, and Tony. Indeed, Rtools was missing from the path. With that resolved, and another 10 minute windows restart, I get the following below. The log suggests that hhc is not installed. It is, and, according to the directions I am

Re: [R] [SPAM] - Re: R package development in windows - Bayesian Filter detected spam

2007-05-03 Thread Doran, Harold
Thanks, Duncan. I'll look into that. Is there an authoritative document that codifies the new package development procedures for 2.5.0 (windows-specific), or is that Writing R Extensions? In this thread alone I've received multiple emails pointing to multiple web sites with instructions for

Re: [R] Truncating trailing digits

2007-05-03 Thread Marc Schwartz
On Thu, 2007-05-03 at 12:14 -0400, Pietrzykowski, Matthew (GE, Research) wrote: Hello, I am relatively new to R and have a rudimentary question, I think. How does one truncate the number of digits displayed after the decimal when viewing the results of analyses? My apologies if this

Re: [R] Truncating trailing digits

2007-05-03 Thread Charles Annis, P.E.
Perhaps format is what you are looking for: ?format Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pietrzykowski, Matthew (GE,

Re: [R] [SPAM] - Re: R package development in windows - Bayesian Filter detected spam

2007-05-03 Thread Duncan Murdoch
On 5/3/2007 3:33 PM, Doran, Harold wrote: Thanks, Duncan. I'll look into that. Is there an authoritative document that codifies the new package development procedures for 2.5.0 (windows-specific), or is that Writing R Extensions? In this thread alone I've received multiple emails pointing to

Re: [R] [SPAM] - Re: R package development in windows - BayesianFilter detected spam

2007-05-03 Thread Ravi Varadhan
Harold, I totally echo your sentiments on the difficulty of creating an R package in Windows. I really wish that this process could be made a bit less painful. Ravi. --- Ravi Varadhan, Ph.D. Assistant

Re: [R] Parsing data with an uneven number of delimiters

2007-05-03 Thread jim holtman
Try this: l1-c(a/a/a,b/bb/bbb,cc/c) l2-strsplit(l1,/) # determine maximum length maxLen - max(sapply(l2, length)) # pad to maximum length do.call('data.frame', lapply(l2, function(x)c(x, rep(NA, maxLen-length(x) c..aaa.. c..bbbbbb.. c..ccc...NA. 1a

Re: [R] Parsing data with an uneven number of delimiters

2007-05-03 Thread Gabor Grothendieck
Try: read.table(textConnection(l1), sep = /, fill = TRUE) On 5/3/07, Kevin Burke [EMAIL PROTECTED] wrote: I have a list of data that is delimited by a / and, as long as there is an equal number of delimiters, I can parse the data and put it into a data frame: t1-c(a/a/a,b/bb/bbb,ccc/cc/c)

Re: [R] [SPAM] - Re: R package development in windows - BayesianFilter detected spam

2007-05-03 Thread Gabor Grothendieck
Suggest you try following the advice I already gave, viz. reading the relevant HowTo links on the batchfiles home page. One gives pointers to the authoritative sources (the manuals) and the other gives step by step instructions. These do answer both of the subsequent questions the poster had.

[R] Calculate sums in Matrixes

2007-05-03 Thread Pedro Sobral
Dear R-users, The data that I want to treat refer to claims and a glm have been adjusted to the it. Now there are some calculations that I wanrt to do with the residuals and estimations from the model. The glm model has variables that refer to the fleet to wich the vehicle refers to and

Re: [R] the Surv function

2007-05-03 Thread R. Villegas
2007/5/2, Jennifer Dillon [EMAIL PROTECTED]: Hi, I'm trying to do a simple survival analysis on some data, and I'm having the following problem (here's my code and the error message): out - Surv(fup,event=status) Error in Surv(fup, event = status) : argument time2 is missing, with no

Re: [R] R Wiki down?

2007-05-03 Thread Martin Maechler
Talbot == Talbot Katz [EMAIL PROTECTED] on Thu, 03 May 2007 12:35:27 -0400 writes: Talbot Hi. I can't access the site Talbot http://wiki.r-project.org/. I didn't find any Talbot notice about this on http://www.r-project.org/. Talbot Does anyone have any more information

[R] A question about POSIXct

2007-05-03 Thread Jacques Smith
Dear List: I have a simple two-column data set in .csv format, with the first column being the date and second column being some value. I use read.csv() to import the data as follows: x - read.csv(myfile.csv,header=T, dec=., colClasses=c(Date=POSIXct)) The structure of x is: str(x)

Re: [R] [SPAM] - Re: R package development in windows - BayesianFilter detected spam

2007-05-03 Thread Duncan Murdoch
On 5/3/2007 3:51 PM, Ravi Varadhan wrote: Harold, I totally echo your sentiments on the difficulty of creating an R package in Windows. I really wish that this process could be made a bit less painful. As mentioned below, version 2.5.0 makes it a bit less painful. Your wish has come true!

Re: [R] A question about POSIXct

2007-05-03 Thread Jacques Wagnor
A follow-up question: The example in ?attr uses a character string of dim. Besides dim and times, what other character strings are available or can be used? On 5/3/07, Michael Sumner [EMAIL PROTECTED] wrote: Hello, It seems that danish is a numeric vector with attributes attached - the

Re: [R] A question about POSIXct

2007-05-03 Thread Michael Sumner
Hello, It seems that danish is a numeric vector with attributes attached - the attribute vector is POSIXct and is the same length as danish. You can create this from a data frame like this: x - data.frame(Date = ISOdate(2007, 5, 1:10), Value = rnorm(10)) str(x) 'data.frame': 10 obs. of 2

Re: [R] Bayesian logistic regression with a beta prior (MCMClogit)

2007-05-03 Thread francogrex
Hi, yes but I realized afterwards that it's the logfun argument that had to be put to logfun=F and the logpriorfun function had to be log=F logpriorfun - function(beta,shape1,shape2){ sum(dbeta(beta,shape1,shape2,log=F)) } But that's just for that particular example. I find I am having problems

Re: [R] A question about POSIXct

2007-05-03 Thread Jacques Wagnor
Thank you, Mike! On 5/3/07, Michael Sumner [EMAIL PROTECTED] wrote: Hello, It seems that danish is a numeric vector with attributes attached - the attribute vector is POSIXct and is the same length as danish. You can create this from a data frame like this: x - data.frame(Date =

Re: [R] Install SciView under Windows Vista

2007-05-03 Thread Tim Sippel
Thanks for your advice. Seems to have been a quirk in the installation of R2HTML which is now resolved. Tim -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: 03 May 2007 21:29 To: Tim Sippel Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Install SciView

[R] Issue with the Matrix package

2007-05-03 Thread Tony Chiang
Hi all, I am wondering if this is a bug in the Matrix package or if it something that I am just getting wrong...here is an example: m = matrix(0,4,4) dimnames(m) = list(letters[1:4], letters[5:8]) r = c(a,b,a,d) m[r,2] = 1 m e f g h a 0 1 0 0 b 0 1 0 0 c 0 0 0 0 d 0 1 0 0 M =

Re: [R] A question about POSIXct

2007-05-03 Thread Michael Sumner
Jacques Wagnor wrote: A follow-up question: The example in ?attr uses a character string of dim. Besides dim and times, what other character strings are available or can be used? Ah, it's not limited to those. Any character string would do (guru caveats aside). I suspect my narrow answer

[R] Library Package for Tobit regression

2007-05-03 Thread Abdus Sattar
Hello R-Users: I am want to use tobit regression for left censored panel/longitudinal data. Could you please provide me the name of library and/or package that will give me option of fitting tobit regression model for longitudinal data? Thank you. Sattar

[R] reodering factor

2007-05-03 Thread John Sorkin
R 2.4.1 Windows XP How does one reorder a factor? I have the following data: factor(data$Group) [1] ZZ ZT ZT ZZ ZZ ZT ZZ ZZ ZT ZT ZT ZT ZZ ZT ZT ZZ ZT ZZ ZT ZZ ZT ZT ZZ ZZ ZT ZZ ZT ZZ ZT ZZ ZZ ZT ZZ ZT Levels: ZT ZZ In my regression (i.e. lm(y~data$Group) ZT is taken as the reference

[R] [R-pkgs] new package: RSVGTipsDevice: create SVG plots with tooltips hyperlinks

2007-05-03 Thread Tony Plate
the DESCRIPTION file: Package: RSVGTipsDevice Version: 0.7.0 Date:04/30/2007 Title: An R SVG graphics device with dynamic tips and hyperlinks Author: Tony Plate [EMAIL PROTECTED], based on RSvgDevice by T Jake Luciani [EMAIL PROTECTED] Maintainer: Tony Plate [EMAIL PROTECTED] Depends: R

Re: [R] reodering factor

2007-05-03 Thread Steven McKinney
One way to reorder a factor is to define a new factor and specify the order of levels using the levels argument of the factor() function. The first category specified for the levels argument will be the reference category in model fits such as with lm(). mydata - data.frame(y = c(runif(10),

Re: [R] reodering factor

2007-05-03 Thread Seyed Reza Jafarzadeh
Hi John, You should use (http://rweb.stat.umn.edu/R/library/stats/html/relevel.html), so newGroup - relevel (data$Group, ref = ZZ) Reza On 5/3/07, John Sorkin [EMAIL PROTECTED] wrote: R 2.4.1 Windows XP How does one reorder a factor? I have the following data: factor(data$Group)

[R] Problem with the installation of install R on Sun Solaris

2007-05-03 Thread Jomy Jose
./configure hecking whether stripping libraries is possible... no configure: WARNING: you cannot build info or html versions of the R manuals checking for cos in -lm... yes checking for sin in -lm... yes checking for dlopen in -ldl... yes checking readline/history.h usability... no checking

Re: [R] Problem with the installation of install R on Sun Solaris

2007-05-03 Thread Prof Brian Ripley
Please do read the 'R Installation and Administration' manual, which answers this and all your other questions. I make this your sixth post on the subject line (and someone using a different address has posted with the identical line). You are still sending HTML, so please do study the