Re: [R] how can i deal with multiple response data?

2005-06-23 Thread Prof Brian Ripley
You asked this yesterday: repeatedly asking the same question is just annoying to the readership. Please see the posting guide and try to improve a question that receives no response. You have not said what analysis you intend to do with such data. Unless you do we cannot really help you more

Re: [R] quotient and remainder

2005-06-23 Thread Prof Brian Ripley
On Fri, 24 Jun 2005, zhihua li wrote: > I've read thoroughly and gooogled in the internet > about my question, but got no answer. I think it would be great if there's a > doc grouping R functions into different functional categories. help.start, go to the search function and it has categories.

Re: [R] r programming help II

2005-06-23 Thread Gabor Grothendieck
On 6/24/05, Mohammad Ehsanul Karim <[EMAIL PROTECTED]> wrote: > Dear List, > > Suppose we have a variable K.JUN defined as (with > 1=wet, 0=dry): > > K.JUN1984 = c(1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, > 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) > K.JUN1985 = c(0, 1, 0, 1, 0, 0, 1, 0, 0

Re: [R] the quick way to report the invalid value

2005-06-23 Thread Gabor Grothendieck
On 6/23/05, ronggui <[EMAIL PROTECTED]> wrote: > for example,in my data d,the value 1:9,NA is valid and the others are invalid. > and i want to report something like: > the variable z has invalid value. > > is there any function to do so? > > i though this will work but fails: > > > d >x y

[R] r programming help II

2005-06-23 Thread Mohammad Ehsanul Karim
Dear List, Suppose we have a variable K.JUN defined as (with 1=wet, 0=dry): K.JUN1984 = c(1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) K.JUN1985 = c(0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1) K.JUN1986 =

[R] mypredict.

2005-06-23 Thread Jenny Edmondson
Hi, I am wondering what does "mypredict.lda<-function(object, newdata)predict(object, newdata=newdata)$class" actually do? I run a few errorest commands in the same function on the same dataset using the same classifier lda. The only difference is some use "cv", other use "boot" and "632plus".

[R] the quick way to report the invalid value

2005-06-23 Thread ronggui
for example,in my data d,the value 1:9,NA is valid and the others are invalid. and i want to report something like: the variable z has invalid value. is there any function to do so? i though this will work but fails: > d x y z 1 1 NA 1 2 2 2 2 3 3 3 3 4 4 4 4 5 5 5 5 6

Re: [R] X11, interactive device

2005-06-23 Thread Mark Larsen
lars, I use R CMD BATCH as a backend to perl and python CGI all the time. I usually allow R to create post-script (ps) graphics and then use ImageMagick to convert these to PNGs (or JPEGs if you desire). ImageMagick has some nice interfaces to both perl and python. This method produces very s

Re: [R] quotient and remainder

2005-06-23 Thread Simon Blomberg
You may find the Reference Cards in the Contributed Documentation section of CRAN to be of interest. Simon. At 12:07 PM 24/06/2005, zhihua li wrote: >Dear Dimitris, > >I've read thoroughly and gooogled in the internet >about my question, but got no answer. I think it would be great if there's

Re: [R] quotient and remainder

2005-06-23 Thread zhihua li
Dear Dimitris, I've read thoroughly and gooogled in the internet about my question, but got no answer. I think it would be great if there's a doc grouping R functions into different functional categories. Thanks a lot for your replies! From: "Dimitris Rizopoulos" <[EMAIL PROTECTED]> To: "

Re: [R] need help on building packages

2005-06-23 Thread Duncan Murdoch
Erik Lamontagne wrote: > Good day, I have been trying to build packages for R unix, and the check > always failed around the LaTeX area, altho LaTex was installed. > > I dont know wich test dosent pass check because there are a few test made and > only one error message for all those test done

Re: [R] A. Mani : Read

2005-06-23 Thread Gabor Grothendieck
On 6/23/05, A. Mani <[EMAIL PROTECTED]> wrote: > Hello, > What is the best way to read a .rdat file with data in the following > form : > > $xyz1 > column names > columns(numeric) > > $xyz2 > column names > columns(numeric) > > $xyz3 > column names > columns(numeric) > RRead in the data

[R] how can i deal with multiple response data?

2005-06-23 Thread ronggui
in a questionair i ask: Which of the following software packages do you use for data analysis? 1 R 2 S-Plus 3 SAS 4 SPSS 5 Stata 6 others (In this question, respondents are asked to mark the name of each package they use. Respondents may mark any number of packa

[R] need help on building packages

2005-06-23 Thread Erik Lamontagne
Good day, I have been trying to build packages for R unix, and the check always failed around the LaTeX area, altho LaTex was installed. I dont know wich test dosent pass check because there are a few test made and only one error message for all those test done in 3rd step of the check. Also c

[R] Two axes y in same plot

2005-06-23 Thread Fernando Espíndola
Hi user, I try to make plot with two axes y, it is posibility?. Can anyboby help me thank for all fernando [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] How to create ts..

2005-06-23 Thread Spencer Graves
(see below) Gabor Grothendieck wrote: > On 6/23/05, Juan Carlos Quiroz Espinosa <[EMAIL PROTECTED]> wrote: > >>Hi user's >> >>How to create a date vector utilized only month and year data. I am >>trying to plotting time series without day data. > > > > Check out ?ts and, in particular, l

Re: [R] How to create ts..

2005-06-23 Thread Gabor Grothendieck
On 6/23/05, Juan Carlos Quiroz Espinosa <[EMAIL PROTECTED]> wrote: > Hi user's > > How to create a date vector utilized only month and year data. I am > trying to plotting time series without day data. Check out ?ts and, in particular, look at the variable z in the example toward the end of the

Re: [R] the dimname of a table

2005-06-23 Thread Gabor Grothendieck
On 6/23/05, Marc Schwartz <[EMAIL PROTECTED]> wrote: > On Thu, 2005-06-23 at 23:12 +0800, ronggui wrote: > > i have a data frame(dat) which has many variables.and i use the > > following script to get the crosstable. > > > > >danx2<-c("x1.1","x1.2","x1.3","x1.4","x1.5","x2","x4","x5","x6","x7","x8.

Re: [R] how to get such crosstable?

2005-06-23 Thread Gabor Grothendieck
On 6/23/05, Marc Schwartz <[EMAIL PROTECTED]> wrote: > On Thu, 2005-06-23 at 23:22 +0800, ronggui wrote: > > i use the CrossTable (frome gregmic package) function to get such a > > table as below. > > but the percentage of the non-NA levels(here 1,2,3,4,5) is not totally > > 100%. > > > > is there

[R] How to create ts..

2005-06-23 Thread Juan Carlos Quiroz Espinosa
Hi user's How to create a date vector utilized only month and year data. I am trying to plotting time series without day data. [Juan Quiroz] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] A. Mani : Read

2005-06-23 Thread A. Mani
Hello, What is the best way to read a .rdat file with data in the following form : $xyz1 column names columns(numeric) $xyz2 column names columns(numeric) $xyz3 column names columns(numeric) and so on. A. Mani Member, Cal. Math. Soc __ R-hel

Re: [R] How to read an excel data into R?

2005-06-23 Thread Spencer Graves
'RSiteSearch' is an R command new with R 2.0.0 or 2.1.0, I believe. It essentially passes the argument string to "www.r-project.org" -> Search -> "R site search". Consequently, it requires internet access to work. When I have an R (or S-Plus) question for which I do not already know

[R] Error in stepAIC function using a survival model

2005-06-23 Thread Teddy Petrou
I keep getting the same error in my survival analysis. I have access to a very large database but am just using small subsets to get some results. In this particular subset there is 50 explanatory variables(both factors of many levels and covariates) and 117 data pieces with some of the data bei

[R] how to reconstruct the discriminant funciton from lda$prior, $means and $scaling

2005-06-23 Thread Janet Huang
Hi R folks, How can I generate the discriment function from lda? I have an unbalanced data set. one class has about 25 entries and another class has about 200 entries. I used lda for classification > z<- lda(V3 ~ V1+V2, data) > z Prior probabilities of groups: 0 1 0.91

[R] multinomial logistic regression with survey data

2005-06-23 Thread Masha Kocherginsky
Hello, Is there a function/package that can do multinomial logistic regression using survey weights, similar to "svymlogit" in Stata? It appears that only "svyglm" function (which does not allow multinomial response?) is available in the "survey" package. Thank you! Masha Kocherginsky __

Re: [R] how to get such crosstable?

2005-06-23 Thread Marc Schwartz
On Thu, 2005-06-23 at 23:22 +0800, ronggui wrote: > i use the CrossTable (frome gregmic package) function to get such a > table as below. > but the percentage of the non-NA levels(here 1,2,3,4,5) is not totally > 100%. > > is there any way to get a table that percentage of the non-NA > levelsis t

Re: [R] compiling gap on mac os x

2005-06-23 Thread Prof Brian Ripley
Isn't this the age-old story of the MacOS X Fortran compiler not fully supporting compilation for dynamic libraries? Looks like the same sort of problem it has with LAPACK code. You could try rewriting the code to avoid DATA statements. Asking MacOS-specific questions on the r-sig-mac is a bet

Re: [R] Stop Warnings for Invalid Factor Level, NAs generated?

2005-06-23 Thread Tuszynski, Jaroslaw W.
Check suppressWarnings function. Jarek \=== Jarek Tuszynski, PhD. o / \ Science Applications International Corporation <\__,| (703) 676-4192 "> \ [EMAIL PROTECTED]

Re: [R] the dimname of a table

2005-06-23 Thread Marc Schwartz
On Thu, 2005-06-23 at 23:12 +0800, ronggui wrote: > i have a data frame(dat) which has many variables.and i use the > following script to get the crosstable. > > >danx2<-c("x1.1","x1.2","x1.3","x1.4","x1.5","x2","x4","x5","x6","x7","x8.1","x8.2","x8.3","x8.4","x11", > "x13","x17","x19","x20","x21"

Re: [R] How to read an excel data into R?

2005-06-23 Thread Renaud Lancelot
Ling Jin a écrit : > Hi all, > > Does anybody know the easiest way to import excel data into R? I copied > and pasted the excel data into a txt file, and tried read.table, but R > reported that > > Error in read.table("data_support.txt", sep = " ", header = T) : > more columns than col

Re: [R] How to read an excel data into R?

2005-06-23 Thread Renaud Lancelot
Ling Jin a écrit : > Hi all, > > Does anybody know the easiest way to import excel data into R? I copied > and pasted the excel data into a txt file, and tried read.table, but R > reported that > > Error in read.table("data_support.txt", sep = " ", header = T) : > more columns than col

[R] compiling gap on mac os x

2005-06-23 Thread Kenny Ye
Hi, I am having trouble compiling package gap http://www.hgmp.mrc.ac.uk/~jzhao/r-progs.htm on Tiger. I have installed XcodeTools 2.1. The binary version of gap currently available on CRAN has some bug and is fixed in the latest version. The message I get from R is below. Any help is greatly ap

[R] how can i deal with multiple response data?

2005-06-23 Thread ronggui
in a questionair i ask: Which of the following software packages do you use for data analysis? 1 R 2 S-Plus 3 SAS 4 SPSS 5 Stata 6 others (In this question, respondents are asked to mark the name of each package they use. Respondents may mark any number of packa

Re: [R] How to read an excel data into R?

2005-06-23 Thread Petr Pikal
On 22 Jun 2005 at 16:46, Ling Jin wrote: > Hi all, > > Does anybody know the easiest way to import excel data into R? I > copied and pasted the excel data into a txt file, and tried > read.table, but R reported that > > Error in read.table("data_support.txt", sep = " ", header = T) : >

Re: [R] source of R functions {was ... aov ...}

2005-06-23 Thread Duncan Murdoch
On 6/23/2005 12:57 PM, Martin Maechler wrote: >> "RenE" == RenE J V Bertin <[EMAIL PROTECTED]> >> on Thu, 23 Jun 2005 17:37:14 +0200 writes: > > RenE> Thanks to all the others who replied. > > BDR> and do note it is unset again a few lines later. > BDR> (Listing a fun

[R] source of R functions {was ... aov ...}

2005-06-23 Thread Martin Maechler
> "RenE" == RenE J V Bertin <[EMAIL PROTECTED]> > on Thu, 23 Jun 2005 17:37:14 +0200 writes: RenE> Thanks to all the others who replied. BDR> and do note it is unset again a few lines later. BDR> (Listing a function inside R is not giving you the BDR> `source co

Re: [R] solving equation system

2005-06-23 Thread Spencer Graves
Have you considered writing a function to compute the sum of squares of deviations from equality and using "optim"? I use sum of squares not sum of absolute values, because if my functions are differentiable, the sum of squares will also be differentible while the sum of absolute val

Re: [R] (no subject)

2005-06-23 Thread Chuck Cleland
> x <- c(167.8, 292.8, 363.3, 1.9, 115.25) > my.decimals <- x - trunc(x) > my.decimals [1] 0.80 0.80 0.30 0.90 0.25 Bernard L. Dillard wrote: > Hello Rers: > > Let's say I have a column that looks like this: > > Column > 167.8 > 292.8 > 363.3 > 1.9 > 115.25 > > I want to manipulate the abo

Re: [R] contrats hardcoded in aov()?

2005-06-23 Thread Prof Brian Ripley
On Thu, 23 Jun 2005, RenE J.V. Bertin wrote: > On Thu, 23 Jun 2005 15:40:25 +0100 (BST), Prof Brian Ripley <[EMAIL > PROTECTED]> wrote regarding > "Re: [R] contrats hardcoded in aov()?" > > Thanks to all the others who replied. > > 8-) and do note it is unset again a few lines later. (Listing a

Re: [R] (no subject)

2005-06-23 Thread Sundar Dorai-Raj
Bernard L. Dillard wrote: > Hello Rers: > > Let's say I have a column that looks like this: > > Column > 167.8 > 292.8 > 363.3 > 1.9 > 115.25 > > I want to manipulate the above data such that I only end up with this same > column but only with its decimals and not its whole numbers. So the new

Re: [R] (no subject)

2005-06-23 Thread Peter Dalgaard
"Bernard L. Dillard" <[EMAIL PROTECTED]> writes: > Hello Rers: > > Let's say I have a column that looks like this: > > Column > 167.8 > 292.8 > 363.3 > 1.9 > 115.25 > > I want to manipulate the above data such that I only end up with this same > column but only with its decimals and not its who

[R] (no subject)

2005-06-23 Thread Bernard L. Dillard
Hello Rers: Let's say I have a column that looks like this: Column 167.8 292.8 363.3 1.9 115.25 I want to manipulate the above data such that I only end up with this same column but only with its decimals and not its whole numbers. So the new column would look like this (but the real column is

[R] how to get such crosstable?

2005-06-23 Thread ronggui
i use the CrossTable (frome gregmic package) function to get such a table as below. but the percentage of the non-NA levels(here 1,2,3,4,5) is not totally 100%. is there any way to get a table that percentage of the non-NA levelsis totally 100%,as the SPSS' valid percentage.thank you! Ce

[R] errorest

2005-06-23 Thread Kuhn, Max
Jenny, "It didn't work" and "They worked" aren't very specific. Also, the package name is ipred and the function is errorest. The estimator entry on the man page for errorest has: 'cv' cross-validation, 'boot' bootstrap or '632plus' bias corrected bootstrap (classification only). Note the *

Re: [R] grep negation

2005-06-23 Thread Don MacQueen
If all you need to do is extract the subset of elements of txt that do not contain 'foo', then txt[-i] will do the job. Provided that at east one element of txt contains 'foo', that is. -Don At 2:59 PM +0200 6/23/05, Marcus Leinweber wrote: >hi, > >using the example in the grep help: >txt

[R] the dimname of a table

2005-06-23 Thread ronggui
i have a data frame(dat) which has many variables.and i use the following script to get the crosstable. >danx2<-c("x1.1","x1.2","x1.3","x1.4","x1.5","x2","x4","x5","x6","x7","x8.1","x8.2","x8.3","x8.4","x11", "x13","x17","x19","x20","x21") >indep<-c("x23","x24","x25","x26","x27","x28.1","x28.2","

Re: [R] classes with chron slots

2005-06-23 Thread Sebastian Luque
On Thu, 23 Jun 2005 10:13:31 -0400, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: [...] > Just to be clear, the point is that you need to be sure that your chron > objects really have class "chron" since one often speaks of chron > objects that are of class dates or times but not chron. That's r

Re: [R] contrats hardcoded in aov()?

2005-06-23 Thread Prof Brian Ripley
The source code actually says ## helmert contrasts can be helpful: do we want to force them? ## this version does for the Error model. opcons <- options("contrasts") and do note it is unset again a few lines later. (Listing a function inside R is not g

Re: [R] Another question about Rcmdr

2005-06-23 Thread John Fox
Dear Shige, I'm afraid that my Linux system isn't up-to-date (and isn't a Suse system). Since I'm about to leave town, I won't be able to check this out further now. I expect that if the problem were general, I'd have heard of it before, but I can't be sure that's the case. Perhaps someone else ha

Re: [R] classes with chron slots

2005-06-23 Thread Gabor Grothendieck
On 6/23/05, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > On 6/23/05, Sebastian Luque <[EMAIL PROTECTED]> wrote: > > Thanks a lot Martin and Gabor! > > > > > > On Thu, 23 Jun 2005 08:20:44 -0400, > > Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > > > [...] > > > > > Also if you are referring t

Re: [R] contrats hardcoded in aov()?

2005-06-23 Thread Peter Dalgaard
"RenE J.V. Bertin" <[EMAIL PROTECTED]> writes: > Hello, > > I was just having a look at the aov function source code, and see that when > the model used does not have an Error term, Helmert contrasts are imposed: > > if (is.null(indError)) { > ... >} > else { > opcons <- op

Re: [R] classes with chron slots

2005-06-23 Thread Gabor Grothendieck
On 6/23/05, Sebastian Luque <[EMAIL PROTECTED]> wrote: > Thanks a lot Martin and Gabor! > > > On Thu, 23 Jun 2005 08:20:44 -0400, > Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > [...] > > > Also if you are referring to the chron package then > > the names of the chron classes are 'dates' an

Re: [R] How to save changed options in Rcmdr

2005-06-23 Thread John Fox
Dear Shige, You can set appropriate options when R starts up. In R for Windows, the easiest thing to do is probably to put an options() command in the Rprofile file in R's etc directory. For more information on setting Rcmdr options, see ?Commander (also accessible from the Rcmdr Help menu). For m

Re: [R] contrats hardcoded in aov()?

2005-06-23 Thread Douglas Bates
On 6/23/05, RenE J.V. Bertin <[EMAIL PROTECTED]> wrote: > Hello, > > I was just having a look at the aov function source code, and see that when > the model used does not have an Error term, Helmert contrasts are imposed: > > if (is.null(indError)) { > ... >} > else { > opcon

Re: [R] classes with chron slots

2005-06-23 Thread Sebastian Luque
Thanks a lot Martin and Gabor! On Thu, 23 Jun 2005 08:20:44 -0400, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: [...] > Also if you are referring to the chron package then > the names of the chron classes are 'dates' and 'times' -- not 'chron'. However, when the object has both dates and tim

Re: [R] grep negation

2005-06-23 Thread Dimitris Rizopoulos
try this: seq(along = txt)[-i] Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/16/336899 Fax: +32/16/337015 Web: http://www.med.kuleuven.be/biostat/ http:

[R] Stop Warnings for Invalid Factor Level, NAs generated?

2005-06-23 Thread khobson
How can I stop the following warning from occuring? invalid factor level, NAs generated in: "[<-.factor"(`*tmp*`, iseq, value = structure(1, .Label = "12", class = "factor")) The Label messages are for "5", "8", "12" and "46". I want the NAs to be generated as needed. Is this causing R to slo

Re: [R] grep negation

2005-06-23 Thread james . holtman
?setdiff e.g., > txt <- c("arm","foot","lefroo", "bafoobar") > i <- grep("foo",txt); i [1] 2 4 > setdiff(seq(length(txt)),grep("foo",txt)) [1] 1 3 > Jim __ James Holtman"What is the problem you are trying to solve?" Executive T

[R] grep negation

2005-06-23 Thread Marcus Leinweber
hi, using the example in the grep help: txt <- c("arm","foot","lefroo", "bafoobar") i <- grep("foo",txt); i [1] 2 4 but how can i get the negation (1,3) when looking for 'foo'? thanks, m. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/m

[R] RES: How to read an excel data into R?

2005-06-23 Thread Paulo Brando
Hi ling, save your file as 'csv'. I always use the following script: NAME <- read.table("C:LOCATION/FILE NAME.csv", header = TRUE, sep = ",", na.string=".") Paulo M. Brando Instituto de Pesquisa Ambiental da Amazonia (IPAM) Santarem, PA, Brasil. Av. R

Re: [R] heatmap not symmetric ?

2005-06-23 Thread Liaw, Andy
> From: Charles Plessy > > Dear list, > > I hope it is not a FAQ, but I searched the archives and Google, and > found nothing. The question is simple : > > I do not understand why, starting from a symmetrical > correlation matrix, > heatmap produces an asymmetrical image. Umm... because you ha

Re: [R] How to read an excel data into R?

2005-06-23 Thread roger bos
This is really great. I use odbc for sql all the time, but I never needed to read in excel files before. I needed to yesterday and I looked at read.xls() from library(gdata) and it took 5-10 minutes to read in the file and odbc did it in 5 seconds! I guess that is the good thing about having dup

[R] heatmap not symmetric ?

2005-06-23 Thread Charles Plessy
Dear list, I hope it is not a FAQ, but I searched the archives and Google, and found nothing. The question is simple : I do not understand why, starting from a symmetrical correlation matrix, heatmap produces an asymmetrical image. Best, Charles -- Charles Plessy, Ph.D. - Genome Science Labor

Re: [R] classes with chron slots

2005-06-23 Thread Gabor Grothendieck
On 6/23/05, Martin Maechler <[EMAIL PROTECTED]> wrote: > > "Sebastian" == Sebastian Luque <[EMAIL PROTECTED]> > > on Wed, 22 Jun 2005 15:50:50 -0500 writes: > >Sebastian> I'd like to define a class with a chron slot, but: >R> require(chron) >R> setClass("myclass", represent

Re: [R] classes with chron slots

2005-06-23 Thread Gabor Grothendieck
On 6/23/05, Martin Maechler <[EMAIL PROTECTED]> wrote: > > "Sebastian" == Sebastian Luque <[EMAIL PROTECTED]> > > on Wed, 22 Jun 2005 15:50:50 -0500 writes: > >Sebastian> I'd like to define a class with a chron slot, but: >R> require(chron) >R> setClass("myclass", represent

[R] solving equation system

2005-06-23 Thread Carsten Steinhoff
Hello, I want to solve some two dimensional equation system with R. Some systems are not solvable analytically. Here is an example: (I)1/n*sum{from_i=1_to_n}(Xi) = ln lambda + digamma(c) (II)mean(X) = x / lambda I want to find lambda and c, which R-function could do that

Re: [R] A polar.plot BUG in plotrix 1.3.3 ?

2005-06-23 Thread Jim Lemon
Halldor Björnsson wrote: >... > I have attatched the polar.plot function from the two different versions > of the package. > > It seems that if not missing then label.pos is not changed at all in > version 1.3.3 > > So, a feature or a bug? > Looks like a typo to me. Thanks for pointing it ou

Re: [R] Building a vector of dates between extreme dates

2005-06-23 Thread Prof Brian Ripley
On Thu, 23 Jun 2005, Peter Dalgaard wrote: > Prof Brian Ripley <[EMAIL PROTECTED]> writes: > >> Use seq.POSIXct (or seq.Date since you seem to have dates and not >> date-times), in just the same way you would use seq() for numbers. > > Hmm, not quite. I have to admit that the thought didn't even o

Re: [R] Building a vector of dates between extreme dates

2005-06-23 Thread Peter Dalgaard
Prof Brian Ripley <[EMAIL PROTECTED]> writes: > Use seq.POSIXct (or seq.Date since you seem to have dates and not > date-times), in just the same way you would use seq() for numbers. Hmm, not quite. I have to admit that the thought didn't even occur to me, but > seq(from=as.Date("2005-06-01"),

Re: [R] Building a vector of dates between extreme dates

2005-06-23 Thread Prof Brian Ripley
Use seq.POSIXct (or seq.Date since you seem to have dates and not date-times), in just the same way you would use seq() for numbers. On Thu, 23 Jun 2005 [EMAIL PROTECTED] wrote: > I would like to build a data.frame with a column of POSIXct dates orderly > differing one day per row exactly, that

[R] errorest

2005-06-23 Thread Jenny Edmondson
Hi, I am using errorest function from ipred package. I am hoping to perform "bootstrap 0.632+" and "bootstrap leave one out". According to the manual page for errorest, i use the following command: ce632[i]<-errorest(ytrain ~., data=mydata, model=lda, estimator=c("boot","632plus"), predict=myp

[R] Building a vector of dates between extreme dates

2005-06-23 Thread v . demartino2
I would like to build a data.frame with a column of POSIXct dates orderly differing one day per row exactly, that is: Datadato1 01/06/2005 ... 02/06/2005 ... .. 29/06/2005 30/06/2005 etc giving the extreme dates 01/06/2005 & 30/06/2005. How can

[R] How to read an excel data into R?

2005-06-23 Thread Patrick Hausmann
Hi, you can use the library "RODBC" to import Excel-Files. This works for me: #~ library(RODBC) setwd("C:\\R1B2") channel <- odbcConnectExcel("pk2003.xls") tab <- sqlFetch(channel, "Tabelle3") #~ HTH Patrick _

Re: [R] classes with chron slots

2005-06-23 Thread Martin Maechler
> "Sebastian" == Sebastian Luque <[EMAIL PROTECTED]> > on Wed, 22 Jun 2005 15:50:50 -0500 writes: Sebastian> I'd like to define a class with a chron slot, but: R> require(chron) R> setClass("myclass", representation(datetime = "chron")) Sebastian> [1] "myclass" Seba

[R] Another question about Rcmdr

2005-06-23 Thread Shige Song
Hi, I downloaded the new R 2.1.1 source, compiled and installed on my suse 9.3 box. Then I installed the package Rcmdr. Surprisingly, I cannot type anything onto the script window. I uninstalled R and grabbed an rpm version from CRAN, installed it, and installed Rcmdr, same problem! Has anyone el

Re: [R] How to read an excel data into R?

2005-06-23 Thread Peter Dalgaard
William Revelle <[EMAIL PROTECTED]> writes: > Ling, > >If any column has text with spaces between words, this will lead > to the "more columns ..." problem. > Delete the spaces and try again. > > e.g., if the Excel file is > Var1 Var2Var3 > text 1 2 > more text 3 4 >

[R] [R-pkgs] The GNU Linear Programming Kit for R

2005-06-23 Thread Rob
The R interface to the GNU Linear Programming Kit (GLPK) is now available on CRAN. The R interface functions are almost identical to the native GLPK C API making it easy to move code and concepts between R and C. The GLPK package is intended for solving large-scale linear programming (LP), mixed

Re: [R] quotient and remainder

2005-06-23 Thread Prof Brian Ripley
On Thu, 23 Jun 2005, zhihua li wrote: > hi netters > > Is there a function in R that can compute the quotient and remainder of a > division calculation? such that when 11 is given as the dividend and 5 the > divider, the function returns 2(quotient) and 1(remainder). > 11 %% 5 [1] 1 > 11 %/%

Re: [R] quotient and remainder

2005-06-23 Thread Dimitris Rizopoulos
> 11%/%5 [1] 2 > 11%%5 [1] 1 > Best, Dimitris p.s., I'd suggest you to take a look at the "An Introduction to R" doc Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/16/336899