Re: [R] R CMD BATCH command

2007-06-06 Thread Prof Brian Ripley
On Tue, 5 Jun 2007, Peter Dalgaard wrote: Austin, Peter wrote: The version of R on our unix system has been updated to version 2.5.0. When I type the following command at the unix prompt: 'R CMD BATCH filename' I receive the following error message: Error in Sys.unsetenv(R_BATCH) :

[R] correspondence analysis

2007-06-06 Thread Artem Mariupol
Hello, I am new to R and I have a question about the difference between correspondence analysis in R and SPSS. This is the input table I am working with (4 products and 18 attributes): mytable 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 15 11 20 4 14 7 1 2 1 4 12 12 17 19 11

Re: [R] rJava installation under linux: configuration failed

2007-06-06 Thread Stefan Grosse
Which java have you installed? ( java -version ) You need a Sun Java and better is a 1.5 series Java, JGR seems to have some problem with the new 1.6 series. And you need the JDK, not the JRE. You can google how to do those installations on suse linux. Stefan Original Message

Re: [R] multiple plot in odfWeave

2007-06-06 Thread Laurence Amilhat
Hello Max, Thanks for your help. So, I changed the = with carte2, echo = FALSE, results=XML, fig = TRUE= So , now I can open the output file .odt, but it plot only the last map and not all the maps. But on the R graphics window, i can see the several maps overwrite each other. Maybe there is

Re: [R] odfTable

2007-06-06 Thread Laurence Amilhat
Great, I will waiting for the new version... with the nice documentation! thank you, Laurence. Kuhn, Max a écrit : Sarah and Laurence, A few comments: 1. The default background color for columns is horrible. I've changed to white it in the upcoming version. 2. In the next version

Re: [R] rJava installation under linux: configuration failed

2007-06-06 Thread Prof Brian Ripley
On Wed, 6 Jun 2007, Stefan Grosse wrote: Which java have you installed? ( java -version ) You need a Sun Java and better is a 1.5 series Java, JGR seems to have some problem with the new 1.6 series. And you need the JDK, not the JRE. Precautionary note: the '1.5 series Java' (aka Java 5)

[R] spgrass6 and aggregation

2007-06-06 Thread jessica . gervais
Dear all, I am exporting grass map into R thanks to the very useful spgrass6 package. library(spgrass6) # I have 3 map I am working with a MASK map of a specific area. # 1) a landuse map landuse-readRAST6(landuse_mapname_in_grass) # 2) a catchment map which divide the area in several

Re: [R] rJava installation under linux: configuration failed

2007-06-06 Thread Stefan Grosse
Precautionary note: the '1.5 series Java' (aka Java 5) does not work with JNI (and hence rJava) on some platforms, including AMD64 Linux. You can google how to do those installations on suse linux. It can be tricky, especially if you need a later Java than your OS version supports. Since

[R] opening vignetten

2007-06-06 Thread Schmitt, Corinna
Dear R-Users, I have a quite stupid question. I load the GO-package with the command require(GO). Now I want to read the corresponding vignetten but I forgot the command for opening it. Please help me, Corinna __ R-help@stat.math.ethz.ch mailing list

[R] Svar: Re: help with simple R-question

2007-06-06 Thread Rina Miehs
thanks, that works great!! just have another thing...i the same area What if the class is list instead of array, how can you name the first unrecognized column? Rina John Kane [EMAIL PROTECTED] 06/05/07 3:17 --- Rina Miehs [EMAIL PROTECTED] wrote: hello what do i write for R to

Re: [R] naiveBayes other than e1071

2007-06-06 Thread Uwe Ligges
Dear Max, thanks for your work on this! I totally agree in all points and have added some check for zero variances to my working copy of NaiveBayes.default() which will be published in the next klaR release. if(!usekernel){ temp - apply(sapply(tables, function(x) x[,2]), 2,

[R] list

2007-06-06 Thread elyakhlifi mustapha
hello, I wanna know how to create a list of list if it's possible and if it isn't possible how to do without. thanks. _ [[alternative HTML version deleted]]

Re: [R] opening vignetten

2007-06-06 Thread Stefan Grosse
?vignette Original Message Subject: [R] opening vignetten From: Schmitt, Corinna [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Date: 06.06.2007 10:41 Dear R-Users, I have a quite stupid question. I load the GO-package with the command require(GO). Now I want to read the

Re: [R] list

2007-06-06 Thread David Barron
There's no special method, just create a list in the usual way. For example: l1-list(a=letters[1:5],b=letters[6:10]) l1 $a [1] a b c d e $b [1] f g h i j l2-list(c=LETTERS[1:5],d=LETTERS[6:10]) l2 $c [1] A B C D E $d [1] F G H I J l3-list(l1,l2) l3 [[1]] [[1]]$a [1] a b c d e [[1]]$b

[R] spgrass6 and aggregation (bis)

2007-06-06 Thread jessica . gervais
Dear all, I have some additionale question concerning the spgrass6 package. * When you set a region in GRASS, does the readGRASS6 function in R only load data contained in the zoomed region or the whole map ? * When you have a MASK map in grass, does the readGRASS6 function in R only load data

Re: [R] list

2007-06-06 Thread ONKELINX, Thierry
Sure you can. list(list(), list(), list()) library(fortunes) fortune(Yoda) Evelyn Hall: I would like to know how (if) I can extract some of the information from the summary of my nlme. Simon Blomberg: This is R. There is no if. Only how. -- Evelyn Hall and Simon 'Yoda' Blomberg

Re: [R] Svar: Re: help with simple R-question

2007-06-06 Thread John Kane
--- Rina Miehs [EMAIL PROTECTED] wrote: thanks, that works great!! just have another thing...i the same area What if the class is list instead of array, how can you name the first unrecognized column? I am not sure that I understand the question. You don't really have an unrecognised

Re: [R] list

2007-06-06 Thread John Kane
--- elyakhlifi mustapha [EMAIL PROTECTED] wrote: hello, I wanna know how to create a list of list if it's possible and if it isn't possible how to do without. thanks. Why? The question is not clear and could mean several things. Can you explain a bit?

Re: [R] Svar: Re: help with simple R-question

2007-06-06 Thread Rina Miehs
The left column is boar id number, and the right is the random effect estimate. I need the numbers in the left column when i merge far1 together with other data.frames based on the id numbers. When i use ranef the output is the class list and R only sees the intercepts, but i need a data.frame

[R] Odp: Svar: Re: help with simple R-question

2007-06-06 Thread Petr PIKAL
[EMAIL PROTECTED] napsal dne 06.06.2007 10:56:18: thanks, that works great!! just have another thing...i the same area What if the class is list instead of array, how can you name the first unrecognized column? Hi look in some intro manual and learn about R data structures. Matrix,

Re: [R] spgrass6 and aggregation (bis)

2007-06-06 Thread Roger Bivand
On Wed, 6 Jun 2007 [EMAIL PROTECTED] wrote: Dear all, I have some additionale question concerning the spgrass6 package. * When you set a region in GRASS, does the readGRASS6 function in R only load data contained in the zoomed region or the whole map ? readRAST6() uses the current

Re: [R] Refactor all factors in a data frame

2007-06-06 Thread Gregor Gorjanc
Hilmar Berger hilmar.berger at imise.uni-leipzig.de writes: ... So, is there any way in drop the unused factor levels from *all* factors of a data frame without import/export ? There is a generic drop.levels in gdata. Here is part of its help page: \code{drop.levels} is a generic function,

Re: [R] correspondence analysis

2007-06-06 Thread Jari Oksanen
Artem Mariupol artem.mariupol at gmail.com writes: Hello, I am new to R and I have a question about the difference between correspondence analysis in R and SPSS. This is the input table I am working with (4 products and 18 attributes): mytable 1 2 3 4 5 6 7 8 9 10 11 12 13

Re: [R] Mandriva Spring 2007 and R

2007-06-06 Thread NOEL Yvonnick
Jonathan, If you are not willing to use the very last version of R, there is always a RPM package for R under Mandriva, called R-base. So that basically, connected as root, just type: urpmi R-base to install it. HTH, Yvonnick Noel U. of Rennes 2

Re: [R] Svar: Re: help with simple R-question

2007-06-06 Thread John Kane
I think that you have the same situation as before though I have never used ranef(). The boar ids are acting as the row names and are not really part of the data.frame. It just looks like that when R prints the data.frame. Try boars - rownames(far1) far1 - cbind( boars, far1) The results

[R] [R-pkgs] Package update: pmml version 1.1.1

2007-06-06 Thread Graham Williams
Version 1.1.1 of the pmml package (PMML = Predictive Modelling Markup Language) has been uploaded to CRAN. This version adds pmml.lm to generate PMML for linear models (currently, without interactions). The PMML package is part of the Rattle toolkit for data mining. Further information from

[R] [R-pkgs] New Package on Lancet Surveys of Iraq Mortality

2007-06-06 Thread David Kane
Hello, I have placed a package on CRAN about two surveys of mortality in Iraq that were published in the Lancet. http://cran.at.r-project.org/src/contrib/Descriptions/lancet.iraqmortality.html install.packages(lancet.iraqmortality) ... library(lancet.iraqmortality) Loading required package:

Re: [R] Svar: Re: help with simple R-question

2007-06-06 Thread Rina Miehs
Thanks that helped in the right way:D Thanks alot! Rina John Kane [EMAIL PROTECTED] 06/06/07 1:46 I think that you have the same situation as before though I have never used ranef(). The boar ids are acting as the row names and are not really part of the data.frame. It just looks like that

[R] generating many matrices

2007-06-06 Thread Keun-Hyung Choi
I'd like to generate many matrices (let's say 100 matrices of 4x4), of which diagonal elements are being drawn from each set of sample of known distribution. What would be the best way? I've been trying to find any previous threads for this topic, but haven't been able to find one. Thanks.

[R] R: x-y data

2007-06-06 Thread tronter
Hello I have an Excel file with x-y data. I saved this file as a cvs file. Then I used the read.table() function to read the data into R. If I have a formula like (x+y)/2, how would I access x and y in R? I have the table named as something. But how do I access the individual columns if I want

[R] R help

2007-06-06 Thread scott flemming
Hi, I wonder whether R can finish the following project: I want to make a chart to represent 10 genes. Each gene has orientation and length. Therefore, a gene can be represented by arrows. Can R be used to draw 10 arrows in one line ? scott -

[R] Neural Net. in R

2007-06-06 Thread Ehsan Rasa
Hi everyone, I'm a graduate student of engineering, lately introduced with R. and using R for my project and thesis. I'm trying to use R for implementing a neural network regression model and apply it to my database. I found three R packages (AMORE , grnnR , neural) in R website, but their

[R] name of the variable that will contain the result of a function

2007-06-06 Thread Benilton Carvalho
Hi everyone, say I have a function called 'foo', which takes the argument arg1. Is there any mechanism that I can use to learn about the variable where foo(arg1) is going to be stored? For example: x - foo(arg1) so, inside foo() I'd like to be able to get the string x. if, foo(arg1) was

[R] sampling problem - new to R

2007-06-06 Thread baldeck
I have a data set of individual trees and the plots that they are in: Tree Plot 567491 634941 873751 374942 927533 348473 387474 etc... So each plot is represented once for every individual that occurrs in it. Plots get different numbers of rows because there

[R] p-value from GEE

2007-06-06 Thread carmei3
Hi to all, I found in the R-help archive how to calculate the p-value for a gee result: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/74150.html but there are two questions (I am afraid they are basic questions ...) 1. why is the result multiplicated with 2 2. how could I decide between

Re: [R] R help

2007-06-06 Thread Sarah Goslee
On 6/5/07, scott flemming [EMAIL PROTECTED] wrote: Can R be used to draw 10 arrows in one line ? Um, sure. Assuming you actually also want to know how to do it, why don't you take a look at the help for arrows(). Sarah -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] R help

2007-06-06 Thread michael watson \(IAH-C\)
Yes, but you need to be a bit more specific... When it comes to graphs and drawing lines, there isn't much R can't do... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of scott flemming Sent: 06 June 2007 04:49 To: r-help@stat.math.ethz.ch Subject: [R] R

Re: [R] R: x-y data

2007-06-06 Thread jim holtman
Can you provide an example of your data. Assuming that you have a .cvs file and the column names are 'x' and 'y' and you have used 'read.csv', then you would have: (something$x + something$y) / 2 On 6/5/07, tronter [EMAIL PROTECTED] wrote: Hello I have an Excel file with x-y data. I

Re: [R] Neural Net. in R

2007-06-06 Thread Kuhn, Max
Jason, Your best bet is the nnet package. It is part of the VR bundle, which may be why you missed it. The code is well documented and the package is closely tied to two books (see the references in ?nnet). Also, it has a predict function, which many of the others do not. This isn't too big

Re: [R] generating many matrices

2007-06-06 Thread jim holtman
Is this what you want? x - diag(4) # 4x4 matrix result - list() # list to store the 100 matrices for (i in 1:100){ diag(x) - runif(4) # fill with random values result[[i]] - x # save the result } On 6/5/07, Keun-Hyung Choi [EMAIL PROTECTED] wrote: I'd like to generate many

Re: [R] sampling problem - new to R

2007-06-06 Thread jim holtman
This should create your samples: x - Tree Plot 567491 634941 873751 374942 927533 348473 387474 x - read.table(textConnection(x), header=TRUE) for(i in 1:10){ # take 10 sample # partition data by plot z - by(x, x$Plot, function(.plot){

Re: [R] sampling problem - new to R

2007-06-06 Thread Sarah Goslee
Claire, Here's one way to do it: # first, generate some sample data to try treedata - cbind.data.frame(Tree=1:25, Plot=sample(1:5, 25, replace=TRUE)) treedata - treedata[order(treedata$Plot),] treedata Tree Plot 1 11 2 21 6 61 9 91 11 111 17 171

[R] A question about riskmeasures() vs. qgpd() in library(evir)

2007-06-06 Thread Jacques Wagnor
Dear List, This inquiry probably does not directly pertain to R. I am using library(evir) to learn EVT. Based on my reading of things, it is my understanding that if one wants to calculate quantiles of GPD, one could use either riskmeasures() or qgpd(). However, using data(danish) as an

Re: [R] sampling problem - new to R

2007-06-06 Thread Prof Brian Ripley
On Tue, 5 Jun 2007, baldeck wrote: I have a data set of individual trees and the plots that they are in: Tree Plot 567491 634941 873751 374942 927533 348473 387474 etc... You haven't told us what form the 'data set' is, but I will presume a data frame

[R] Odp: sampling problem - new to R

2007-06-06 Thread Petr PIKAL
Hi If I understand correctly, use split and sample with lapply. If DF is your dataframe lapply(split(DF$Tree, DF$Plot), function(x) sample(x,1)) shall select random tree from each plot. Or you can get it in tabular form with sapply. Regards Petr [EMAIL PROTECTED] napsal dne 05.06.2007

Re: [R] generating many matrices

2007-06-06 Thread hadley wickham
On 6/6/07, Keun-Hyung Choi [EMAIL PROTECTED] wrote: I'd like to generate many matrices (let's say 100 matrices of 4x4), of which diagonal elements are being drawn from each set of sample of known distribution. What would be the best way? I've been trying to find any previous threads for

Re: [R] sampling problem - new to R

2007-06-06 Thread Doran, Harold
I dealt with something like this recently. x - data.frame(plot = gl(2,5), tree = rnorm(10)) y - split(x, x$plot) ss - numeric(2) for(i in 1:2){ ss[i] - sample(row.names(y[[i]][1]), 1) } z - x[ss,] People help out of the goodness of the hearts and not for publication recognition.

[R] Sargan Test and Hansen J Statistc for Simultaneous Equation Model

2007-06-06 Thread David STADELMANN
Dear R Users, I am estimation a Simultaneous Equation Model with systemfit. Does anyone of you know how to do a Sargan Test for overidentifiaction and a Hansen J statistic for instrument adequacy. Is there a possibility in R to do a Hausman-Wu test for the exogeneity of specific variables? Do

[R] Odp: Odp: sampling problem - new to R

2007-06-06 Thread Petr PIKAL
Hi If I understand correctly, use split and sample with lapply. If DF is your dataframe lapply(split(DF$Tree, DF$Plot), function(x) sample(x,1)) shall select random tree from each plot. Or you can get it in tabular form with sapply. Regards Petr Sorry, you shall use resample from

Re: [R] the biggest integer R can display in complete form but not scientific form

2007-06-06 Thread Rob Creecy
You could try the gmp multi precision arithmetic package. library(gmp) urand.bigz(10,64) [1] 11691875040763095143 15618480061048441861 13311871202921807091 419603425985430936 [5] 1009212057431928522 7087885826104674385 12844267011818015745 12455584250595618327 [9] 13509505397081611804

[R] anova(lme)

2007-06-06 Thread Johannes Mühe
I'd like to do 2 ANOVA with repeated measurement. First:response = AS 1.within-factor = modal 2.within-factor = ref (all stairs of the factors are repeated measured) so that random = vp I did it like this:

Re: [R] sampling problem - new to R

2007-06-06 Thread Gabor Grothendieck
A variation of Brian's idea of using resample in ?sample would be: set.seed(1) # makes sample reproducible aggregate(DF[1], DF[2], resample, size = 1) Using resample ensures that the solution works even if some of the Plots only have one Tree. Some of the solutions that were presented in

Re: [R] name of the variable that will contain the result of a function

2007-06-06 Thread Thomas Lumley
On Wed, 6 Jun 2007, Benilton Carvalho wrote: Hi everyone, say I have a function called 'foo', which takes the argument arg1. Is there any mechanism that I can use to learn about the variable where foo(arg1) is going to be stored? No. This information isn't available explicitly even at the

[R] random numbers selection - simple example

2007-06-06 Thread Jenny Barnes
Dear R-help, Which random number generator function would you recommend for simply picking 15 random numbers from the sequence 0-42? I want to use replacement (so that the same number could potentially be picked more than once). I have read the R-help archives and the statistics and computing

Re: [R] R: x-y data

2007-06-06 Thread john seers \(IFR\)
tt-read.table(C:/temp/test.csv, header=T, sep=,) # Try: tt$x tt$y # OR tt[x] tt[y] # OR tt[[x]] tt[[y]] # OR tt[1] tt[2] tt[[1]] tt[[2]] # Is this what you want? I have an Excel file with x-y data. I saved this file as a cvs file. Then I used the read.table() function to read the

[R] Chow Test

2007-06-06 Thread Bernd Stampfl
Hello R-users! I tried to find a package to run a CHOW TEST. As a reference package I found the STRUCCHANGE package. Do you know if it works well otherwise can you recommend a different one? Thanks, Bernd -- View this message in context: http://www.nabble.com/Chow-Test-tf3878416.html#a10990270

Re: [R] the biggest integer R can display in complete form but not scientific form

2007-06-06 Thread 李俊杰
Yeah, this is absolutely what I want! Thanks all above for your helpful suggestion. 2007/6/6, Rob Creecy [EMAIL PROTECTED]: You could try the gmp multi precision arithmetic package. library(gmp) urand.bigz(10,64) [1] 11691875040763095143 15618480061048441861 13311871202921807091

[R] Linear Discriminant Analysis

2007-06-06 Thread Soare Marcian-Alin
Hello, I want to make a linear discriminant analysis for the dataset olive, and I get always this error:# Warning message: variables are collinear in: lda.default(x, grouping, ...) ## Loading Data library(MASS) olive - url(

Re: [R] Neural Net. in R

2007-06-06 Thread Wensui Liu
Hi, there, I am surprised you didn't mention nnet package. You can find very good information in Dr Ripley's MASS book about the usage of nnet package. On 6/5/07, Ehsan Rasa [EMAIL PROTECTED] wrote: Hi everyone, I'm a graduate student of engineering, lately introduced with R. and using R for

Re: [R] random numbers selection - simple example

2007-06-06 Thread Jenny Barnes
You're all stars - thanks for the replies - I will go ahead and use sample... I need to do this about 10,000 times - any suggestions for this or simply put it in a loop 10,000 times outputting each time to an array? Best Wishes, Jenny use sample(c(0:42), 15, replace=T) hope it

Re: [R] random numbers selection - simple example

2007-06-06 Thread Sarah Goslee
Assuming you want only integers, see ?sample Sarah On 6/6/07, Jenny Barnes [EMAIL PROTECTED] wrote: Dear R-help, Which random number generator function would you recommend for simply picking 15 random numbers from the sequence 0-42? I want to use replacement (so that the same number could

Re: [R] R: x-y data

2007-06-06 Thread John Kane
There are a couple of ways but I think you need to read about R . Have a look at Managing data http://cran.r-project.org/doc/contrib/Lemon-kickstart/index.html and / or read the Intro to R manual available on CRAN or probably from the R help icon. you have a data.frame DF you can assign names

[R] Courses: Traditional and Modern Approaches to Statistical Modelling with R by Dr Bill Venables. in Raleigh and Washington DC

2007-06-06 Thread Sue Turner
__ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Chow Test

2007-06-06 Thread Achim Zeileis
On Wed, 6 Jun 2007, Bernd Stampfl wrote: Hello R-users! I tried to find a package to run a CHOW TEST. As a reference package I found the STRUCCHANGE package. Do you know if it works well If you have concerns regarding the reliability, you can check the underlying source code and read the

Re: [R] R: x-y data

2007-06-06 Thread Jeff Newmiller
Or read ?attach attach(something) (x+y)/2 detach(something) jim holtman wrote: Can you provide an example of your data. Assuming that you have a .cvs file and the column names are 'x' and 'y' and you have used 'read.csv', then you would have: (something$x + something$y) / 2

Re: [R] random numbers selection - simple example

2007-06-06 Thread Ted Harding
On 06-Jun-07 14:30:44, Jenny Barnes wrote: Dear R-help, Which random number generator function would you recommend for simply picking 15 random numbers from the sequence 0-42? I want to use replacement (so that the same number could potentially be picked more than once). R has the function

Re: [R] random numbers selection - simple example

2007-06-06 Thread Daniel Nordlund
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jenny Barnes Sent: Wednesday, June 06, 2007 7:55 AM To: r-help@stat.math.ethz.ch Subject: Re: [R] random numbers selection - simple example You're all stars - thanks for the replies - I will go ahead

Re: [R] Linear Discriminant Analysis

2007-06-06 Thread Soare Marcian-Alin
Thanks for explaining... Im just sitting at the homework for 6 hours after taking for one week antibiotica, because i had an amygdalitis... I just wanted some tipps for solving this homework, but thanks, I will try to get help on another way :) I think i solved it, but I still get this Error :(

Re: [R] Linear Discriminant Analysis

2007-06-06 Thread Uwe Ligges
So what about asking your teacher (who seems to be Peter Filzmoser) and try to find out your homework yourself? You might want to think about some assumptions that must hold for LDA and look at the class of your explaining variables ... Uwe Ligges Soare Marcian-Alin wrote: Hello, I want

[R] Using odesolve to produce non-negative solutions

2007-06-06 Thread Jeremy Goldhaber-Fiebert
Hello, I am using odesolve to simulate a group of people moving through time and transmitting infections to one another. In Matlab, there is a NonNegative option which tells the Matlab solver to keep the vector elements of the ODE solution non-negative at all times. What is the right way to

Re: [R] Neural Net. in R

2007-06-06 Thread Vladimir Eremeev
I have written some bindings from the SNNS (Stuttgart Neural Network Simulator) to R. However, this work is not finished since the lack of interest to it and lack of time. At the moment, I use the mixture of scripts for R, cmd.exe, bash, and SNNS' batchman (latter two under cygwin) in my work.

[R] how to update R version

2007-06-06 Thread Yanqin Yang
Hello, I am new in using Linux R. Would someone tell me what the best way to update my current R 2.3.0 to R 2.5.0? I want to keep my current library packages. Do I have to erase the older version and install the newer version? In that case, I need to re-download all the packages I need.

[R] Meaning of locfit warnings procv: parameters out of bounds?

2007-06-06 Thread Barnet Wagman
I'm getting the following warning from locfit: Warning: procv: parameters out of bounds Does anyone know what this means? (I haven't found anything about it in the locfit documentation or the list's archives). thanks, Barnet Wagman __

[R] Fwd: Using odesolve to produce non-negative solutions

2007-06-06 Thread Jeremy Goldhaber-Fiebert
Hello, I am using odesolve to simulate a group of people moving through time and transmitting infections to one another. In Matlab, there is a NonNegative option which tells the Matlab solver to keep the vector elements of the ODE solution non-negative at all times. What is the right way to

[R] Question on RandomForest in unsupervised mode

2007-06-06 Thread Irilenia Nobeli
Hi, I attempted to run the randomForest() function on a dataset without predefined classes. According to the manual, running randomForest without a response variable/class labels should result in the function assuming you are running in unsupervised mode. In this case, I understand that

[R] Question: RMySQL bulk load/update one column, dbWriteTable()?

2007-06-06 Thread Waverley
Hi, I have a question reading using RMySQL trying to load one R vector into a table column. To be more specifically, the table is there populated. Now I add a new column and want to populate this. Can some colleagues on this list teach me how to do this? I know how to write one R object/table

Re: [R] R help

2007-06-06 Thread John Kane
--- scott flemming [EMAIL PROTECTED] wrote: Hi, I wonder whether R can finish the following project: I want to make a chart to represent 10 genes. Each gene has orientation and length. Therefore, a gene can be represented by arrows. Can R be used to draw 10 arrows in one line ?

Re: [R] how to update R version

2007-06-06 Thread Kevin E. Thorpe
Yanqin Yang wrote: Hello, I am new in using Linux R. Would someone tell me what the best way to update my current R 2.3.0 to R 2.5.0? I want to keep my current library packages. Do I have to erase the older version and install the newer version? In that case, I need to re-download all the

[R] Removing vertical line in Tinn R editor

2007-06-06 Thread Judith Flores
Hi, I haven't been able to figure out how to remove a vertical line that appears when I open an r file. How can I do this? Thank you, Judith Looking for a deal? Find great prices on flights and

Re: [R] Removing vertical line in Tinn R editor

2007-06-06 Thread Christos Hatzis
Go to Options/Main/Editor Click on EdgeColor and select white as the color (or to whatever color you have set your page's background). This will make the edge line disappear. -Christos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Judith Flores

Re: [R] Linear Discriminant Analysis

2007-06-06 Thread michael watson \(IAH-C\)
Region and Name are effectively the same variable cor(olive[,4:11]) will also show you that there are strong correlations between some of the variables - this is something you might want to avoid From: [EMAIL PROTECTED] on behalf of Soare Marcian-Alin

[R] problem with Axis labels

2007-06-06 Thread ramakanth reddy
Hi I am using the pamr.plotsurvival fucntion to plot the KM curves,how can I change the x axis and y axis labels according to my interest. Thanks Looking for people who are YOUR TYPE? Find them at in.groups.yahoo.com __

[R] handling a cancelled file.choose()

2007-06-06 Thread Ben Tupper
Hello, I have a file reading function that prompts the user with a file dialog if a filename is not provided in the argument list. It is desirable to return gracefully if the user selects Cancel, but file.choose() throws an error instead of returning something like a character.

[R] [R-pkgs] R package: Mchtest - Monte Carlo hypothesis testing allowing Sequential Stopping

2007-06-06 Thread Fay, Michael (NIH/NIAID) [E]
Hi, This is an announcement for a package that has been up on CRAN since March 2006 but was never announced. The package is Mchtest - for Monte Carlo hypothesis tests allowing sequential stopping. The idea is to use the sequential probability ratio test boundaries to stop resampling for a

[R] [R-pkgs] R Package: ssanv - Sample size adjustments for nonadherence and variability of input parameters

2007-06-06 Thread Fay, Michael (NIH/NIAID) [E]
Hi, This is a late announcement for a package that has been up on CRAN since Feb 2006. The package is called ssanv and it calculates sample sizes for two group tests with adjustments for nonadherence and variability of the input parameters. As an example, suppose you want a sample size for a

[R] [R-pkgs] New Package: rateratio.test

2007-06-06 Thread Fay, Michael (NIH/NIAID) [E]
Hi, I just uploaded a new package rateratio.test. The package contains one function of the same name and it performs an exact rate ratio test for Poisson counts. Unlike binom.test and fisher.test the p-values and confidence intervals are internally consistent. In other words, if the p-value

Re: [R] handling a cancelled file.choose()

2007-06-06 Thread Gabor Grothendieck
Try this: tryCatch(file.choose(), error = function(e) ) On 6/6/07, Ben Tupper [EMAIL PROTECTED] wrote: Hello, I have a file reading function that prompts the user with a file dialog if a filename is not provided in the argument list. It is desirable to return gracefully if the user

Re: [R] handling a cancelled file.choose()

2007-06-06 Thread Henrik Bengtsson
See ?tryCatch. Example: Function returning NULL if cancelled: fileChoose - function(...) { pathname - NULL; tryCatch({ pathname - file.choose(); }, error = function(ex) { }) pathname; } /Henrik On 6/6/07, Ben Tupper [EMAIL PROTECTED] wrote: Hello, I have a file reading

Re: [R] handling a cancelled file.choose()

2007-06-06 Thread Deepayan Sarkar
On 6/6/07, Ben Tupper [EMAIL PROTECTED] wrote: Hello, I have a file reading function that prompts the user with a file dialog if a filename is not provided in the argument list. It is desirable to return gracefully if the user selects Cancel, but file.choose() throws an error instead of

[R] Multiple color schemes for barchart (lattice)

2007-06-06 Thread Sarah Hawley
Hello R-help. I am trying to make a stacked barplot where the color of the sections of each bar depend on another variable. myData[1:11,] score percentmarker cellType Malignant 1 0 100.0 ESR1 (ER) Bladder.M(5) TRUE 2 0 80.0 PAX8 Bladder.M(5) TRUE 3 1

Re: [R] handling a cancelled file.choose()

2007-06-06 Thread Ben Tupper
Deepayan Sarkar wrote: On 6/6/07, Ben Tupper [EMAIL PROTECTED] wrote: Hello, I have a file reading function that prompts the user with a file dialog if a filename is not provided in the argument list. It is desirable to return gracefully if the user selects Cancel, but file.choose() throws

Re: [R] Multiple color schemes for barchart (lattice)

2007-06-06 Thread hadley wickham
On 6/6/07, Sarah Hawley [EMAIL PROTECTED] wrote: Hello R-help. I am trying to make a stacked barplot where the color of the sections of each bar depend on another variable. myData[1:11,] score percentmarker cellType Malignant 1 0 100.0 ESR1 (ER) Bladder.M(5) TRUE 2

[R] compiling from source on Vista

2007-06-06 Thread Erin Hodgess
Dear R People: In the R Installation and Administration manual, there is a note that the process used to compile R from source will NOT work on Windows Vista. Does anyone know if that situation has changed, please? Thanks in advance! Sincerely, Erin Hodgess Associate Professor Department of

[R] electre decision analysis methods

2007-06-06 Thread Benoît Lété
Hello, Is there some library implementing the electre II and III multiple criteria decision analysis methods in R? Thanks in advance. [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

Re: [R] Multiple color schemes for barchart (lattice)

2007-06-06 Thread Deepayan Sarkar
On 6/6/07, Sarah Hawley [EMAIL PROTECTED] wrote: Hello R-help. I am trying to make a stacked barplot where the color of the sections of each bar depend on another variable. myData[1:11,] score percentmarker cellType Malignant 1 0 100.0 ESR1 (ER) Bladder.M(5) TRUE 2

Re: [R] Question: RMySQL bulk load/update one column, dbWriteTable()?

2007-06-06 Thread Chris Stubben
I have a question reading using RMySQL trying to load one R vector into a table column. To be more specifically, the table is there populated. Now I add a new column and want to populate this. Okay, this is more of an SQL question now, but you could just use dbWriteTable and then do an

[R] Spectral analysis

2007-06-06 Thread David LEDU
Hi all, I am dealing with paleoceanographic data and I have a C14 time serie and one other variable. I would like to perform a spectral analysis (fft or wavelet) and plot it. Unfortunately I don't know the exact script to do this. Does anybody could send me an example to perform my spectral

Re: [R] correspondence analysis

2007-06-06 Thread Artem Mariupol
Thanks very much Jari, I appreciate your guidance. I trust R very much, the only thing I can do is to dig up the methodology behind the SPSS result (and of course behind the correspondence analysis itself). Regards, am Jari Oksanen wrote: Artem Mariupol artem.mariupol at gmail.com writes:

[R] Metropolis-Hastings Markov Chain Monte Carlo in Spatstat

2007-06-06 Thread Kevin C Packard
I'm testing some different formulations of pairwise interaction point processes in Spatstat (version 1.11-6) using R 2.5.0 on a Windows platform and I wish to simulate them using the Metropolis-Hastings algorithm implemented with Spatstat. Spatstat utilizes Fortran77 code with the preprocessor

Re: [R] Spectral analysis

2007-06-06 Thread Ted Harding
On 06-Jun-07 20:55:09, David LEDU wrote: Hi all, I am dealing with paleoceanographic data and I have a C14 time serie and one other variable. I would like to perform a spectral analysis (fft or wavelet) and plot it. Unfortunately I don't know the exact script to do this. Does anybody could

  1   2   >