Re: [R] Using clustering functions

2007-09-08 Thread Uwe Ligges
are packages, not libraries. You need to call library(cluster) in order to load package cluster from your library before using agnes() and her friends. Uwe Ligges __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Warning message with aggregate function

2007-09-06 Thread Uwe Ligges
version 2.4.1 in Ubuntu 7.04. Does not happen for me, neither with R-2.4.1 nor with recent versions of R. Maybe you have redefined one of the used objects (aggregate, warpbreaks, wool, tension, sum) in one of your environments? BTW: Is is always a bad idea to make much use of attach()... Uwe

Re: [R] how to extract t-test statistics from glm()?

2007-09-06 Thread Uwe Ligges
is highly appreciated! coefficients(summary(glm())) Uwe Ligges Eric [[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 guide http

Re: [R] creat list

2007-09-06 Thread Uwe Ligges
some advice? matrix(unlist(lista), ncol=50) Uwe Ligges __ 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

Re: [R] problem formatting and positioning title in heatmap

2007-09-06 Thread Uwe Ligges
to stack the title the upper line is out of bounds and doesn't show up. I am outputting to pdf. Any help? Thanks, Mark Use par() to set that parameter of the device as in: par(cex.main=1) heatmap(.) Uwe Ligges heatmap(x = dataM, RowSideColors = RowSideColors, ColSideColors

Re: [R] kendalls tau c

2007-09-05 Thread Uwe Ligges
Barbara Diane-Spillmann wrote: dear all, does anybody know if cor.test with method=kendall calculates kendalls tau a b or c? I need to get p values for kendalls tau c... May I ask what the difference between Kendall's tau a, b and c is? Any references? Uwe Ligges thank you very much

Re: [R] some problems with linebuffer; was: Bug?

2007-09-03 Thread Uwe Ligges
aroma, it is neither on CRAN nor in the BioC repositories. 3. Can you please also try to make your example smaller? 4. The convention is to save R objects in .Rdata files, but to have R code in .R files. Uwe Ligges Johanna

Re: [R] Question on shardsplot

2007-08-31 Thread Uwe Ligges
== xycords[x,1]) * (iris.som3$visual[,2] + 1 == xycords[x,2]) == 1)), collapse = ;)) text(cbind(xycords[,2], xycords[,1]), labs, cex=0.75) Uwe Ligges ebi wrote: Dear All, Would you please tell me how to display the sample No. on the map ? ---Below commands don't

Re: [R] Bug?

2007-08-31 Thread Uwe Ligges
Johanna Hasmats wrote: Hi! How can I get around in R 2.5.1 in Windows: Error in strsplit(linebuffer, ) : object linebuffer not found Why should this be a bug in R, if you have no object named linebuffer in the environments that are on the search path. Uwe Ligges

Re: [R] R and Windows Vista

2007-08-31 Thread Uwe Ligges
there are no really stable gcc compilers available for that platform yet. You are welcome to contribute patches that make R work under 64-bit Vista with some compilers, of course. Uwe Ligges Greeting - Jan Budczies [[alternative HTML version deleted

Re: [R] Single plot multiple levels in x?

2007-08-31 Thread Uwe Ligges
(mydf$State) Then you can ask xyplot(PctRecurr ~ Position | State, data=mydf, layout= c(5,1)) or perhaps: xyplot(PctRecurr ~ Position | State, data=mydf, layout= c(5,1), scales=list(axs='i')) Uwe Ligges Richard Yanicky wrote: Uwe, Here is some code to create some data then a plot

Re: [R] Incomplete output with `sn' library package

2007-08-31 Thread Uwe Ligges
The derived information matrix is not of full rank for your data. See the code of the functions, which is not that hard to read. Uwe Ligges MANASI VYDYANATH wrote: You have my sincere apologies for the incompleteness of my message. I have given the details below, including my dataset

Re: [R] gsub warning message

2007-08-31 Thread Uwe Ligges
doing something wrong that the previous versions of R didn't warn me about? Or is this warning message unwarranted? Is there a fully approved method for getting the same functionality? Thanks! Yes, correct usage is either gsub ( \\_+, ., AAA_I) or gsub ( \\_+, \\., AAA_I) Uwe Ligges

Re: [R] Incomplete output with `sn' library package

2007-08-30 Thread Uwe Ligges
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Uwe Ligges Thank you for your time in reading this question - Cordially, Manasi __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] Simple Graph

2007-08-30 Thread Uwe Ligges
dense, but there is no reproducible example in your message. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Uwe Ligges Regards __ R-help

Re: [R] Q: Mean, median and confidence intervals with functions summary boxplot.stats

2007-08-30 Thread Uwe Ligges
with R or usage of R functions, then please give us a reproducible example. Uwe Ligges Kind regards, Tom W. Disclaimer: click here [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] How to signal the end of the table?

2007-08-30 Thread Uwe Ligges
What about trying to use a database system and make queries? If you are at the end of a file, you will read elements of length 0... Uwe Ligges Yuchen Luo wrote: I am using a for loop to read a table row by row and I have to specify how many records are there in the table. I need to read row

Re: [R] Single plot multiple levels in x?

2007-08-30 Thread Uwe Ligges
…… more states Sounds like the lattice package does exactly what you want, but without any reproducible example. Uwe Ligges The values are all stored with a single data frame. I have tried different things with the axis function and done many searches for plotting. Can’t find

Re: [R] Simple Graph

2007-08-30 Thread Uwe Ligges
ticks on x-aixs and all 10 ticks on y-axis, because R leaves some ticks unlabeled. So either make the font size smaller or rotate the labels... Uwe Ligges Thank You __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Single plot multiple levels in x?

2007-08-30 Thread Uwe Ligges
it happen. If lattice is not what you want, I do not understand what you mean. Can you give a more elaborated example, please? Uwe HELP! Richard -Original Message- From: Uwe Ligges [EMAIL PROTECTED] Sent: Aug 30, 2007 5:59 AM To: Richard Yanicky [EMAIL PROTECTED] Cc: r

Re: [R] sql query over local tables

2007-08-29 Thread Uwe Ligges
Jorge Cornejo Donoso wrote: Hi i have to table with IDs in each one. I want to make a join (as in sql) by the ID. Is any way to use the RODBC package (or other) in local tables (not a access, mysql, sql, etc. ) and made the join? I guess you are looking for ?merge Uwe Ligges

Re: [R] Recoding multiple columns consistently

2007-08-29 Thread Uwe Ligges
: order() identifiers by date, make them unique() and assign them to a new levels object. Then make them ordered factors: factor(some_column, levels=levels, ordered = TRUE) and then as.numeric(factor_object) is what you are going to get. Uwe Ligges I can solve both problems in fortran, so

Re: [R] attempt at making a polygon class failed

2007-08-29 Thread Uwe Ligges
function any more. Hence do *not* define the new plot() function above. The rest should work. Uwe Ligges setGeneric(plot) plot.polygon - function(x, y, ...) { xlim - range([EMAIL PROTECTED]) ylim - range([EMAIL PROTECTED]) plot(0,0, type = n, xlim = xlim, ylim = ylim

Re: [R] xeon processor and ATLAS

2007-08-29 Thread Uwe Ligges
won't make use of bigger L2/L3 caches in Xeon processors. You really ought to build ATLAS for yourself if numerical linear algebra performance matters to you (and it makes little difference to most people: I think Uwe Ligges quoted 10% for testing all CRAN packages). Right, it depends

Re: [R] Histogram Title SizeFont

2007-08-29 Thread Uwe Ligges
livia wrote: Hello, I would like to plot a histogram with title Return, and I would like the font for the title to be Bold and the size to be 8( as in Excel). I tried the following code, but it does not make any change. Could anyone give me some advice? See ?par. Uwe Ligges hist

Re: [R] Plot command drops part of the plot for large plots in multiple figure environment

2007-08-29 Thread Uwe Ligges
Your examples are not reproducible. Hence hard to tell what goes wrong. There never was an R version 1.51. Please use a current version of R and read the pposoting guide. Uwe Ligges Lindveld, Charles wrote: I have run into some surprising behaviour when plotting data in a 3x2 grid: random

Re: [R] xeon processor and ATLAS

2007-08-29 Thread Uwe Ligges
based while 5000 and former CPUs were NetBurst based. Uwe Ligges Again, many thanks for all your advice! Best, Hui Uwe Ligges [EMAIL PROTECTED] wrote: Prof Brian Ripley wrote: On Tue, 28 Aug 2007, hui xie wrote: hi everyone: I have a Dell Server that has a Xeon processor

Re: [R] outdated R and package dependencies; was: R Help

2007-08-28 Thread Uwe Ligges
installed, among them akima. Uwe Ligges Loading required package: akima Error: package 'akima' could not be loaded In addition: Warning message: there is no package called 'akima' in: library(pkg, character.only = TRUE, logical = TRUE, lib.loc = lib.loc

Re: [R] changing text direction of mtext

2007-08-24 Thread Uwe Ligges
on the specified line. (Note that this differs from S, which uses srt if at is supplied and las if it is not.) Please also note that you can look into the R-help archives before posting questions that have been answered dozens of times already - as the posting guide to this list asks you to do. Uwe Ligges

Re: [R] as.numeric : what goes wrong?

2007-08-24 Thread Uwe Ligges
” a factor f to its original numeric values, as.numeric(levels(f))[f] is recommended and slightly more efficient than as.numeric(as.character(f)). Hence as.numeric(levels(f))[f] is the way to go. Best, Uwe Ligges why is it not 896 as it should be? This is true fr the whole vector. Thanks W.P

Re: [R] Two graphs, align vertically

2007-08-23 Thread Uwe Ligges
read the help pages more carefully! You found par(mfrow), what about reading the help page and switching to c(2,1)? Uwe Ligges # ecdf library(plotrix) x = c(1.6,1.8,2.4,2.7,2.9,3.3,3.4,3.4,4,5.2) F2.5 - ecdf(x) plot(F2.5, verticals= TRUE, do.p = TRUE, lwd=3, ylab = , xlab

Re: [R] Histogram

2007-08-23 Thread Uwe Ligges
squall44 wrote: Hello, I wanted to create a histogram, but somehow I got stuck... The interval limits are: x = 1, 2, 3, 3.5, 4.5, 5, 5.5 The interval widths are therefore: 1, 1, 0.5, 1, 0.5, 0.5 Please read the help page more carefully! See ?hist and its argument breaks. Uwe Ligges

Re: [R] two labels on x-axis (year and month)

2007-08-23 Thread Uwe Ligges
with all the possibilities in axis, par and plot You can add the year numbers manually with mtext() (for plotting text into the margins). Uwe Ligges thanks for your help __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] Histogram

2007-08-23 Thread Uwe Ligges
= breaks, xlim=c(0,7), ylim=c(0,5)) #--- ...which didn't work. Well, breaks means breaks, not the widths of the bins, hence hist(youData, breaks = c(1, 2, 3, 3.5, 4.5, 5, 5.5)) is what you want, but that is meaningsless since you have not yet given any data. Uwe Ligges I tried

Re: [R] rectify a program of seasonal dummies matrix

2007-08-22 Thread Uwe Ligges
called T. Some people still use it as a logical value even if they should not. b) R does not need any ; at the end of a line. Uwe Ligges for (i in 1:T) { for (j in 1:4) { if (i==j) { br[i,j] - 1; } else if ((abs(i-j)%%4)==0) { br[i,j] - 1

Re: [R] Random Sampling from a Matrix

2007-08-22 Thread Uwe Ligges
sometimes all my Y2's are 0. Is there any way to accomodate this problem. Yes, for example drawing samples stratified by the values of Y1 or Y2. Uwe Ligges Thanks in advance. Regards Anup - [[alternative HTML version deleted

Re: [R] Differentiation

2007-08-20 Thread Uwe Ligges
(Numerical Analysis in general...) For numerical optimization see ?optim which implements several methods. Uwe Ligges Are there any packages separately for this? Thanks for your help! BR, Shubha [[alternative HTML version deleted

Re: [R] Labelling certain points on the x-axis

2007-08-20 Thread Uwe Ligges
, xlim = c(1,5.5)) abline(h= (0:5)*0.2) See ?mtext for adding text into the margins. Uwe Ligges Now I would like to label the points on the x-axis where there is an x-value: http://www.nabble.com/file/p12231344/figur.gif I don't know how to do that... can anyone help me? Thanks

Re: [R] Question about writing some code

2007-08-20 Thread Uwe Ligges
cannot be plotted by boxplot itself. You can use bxp() to do so. Uwe Ligges ...but this doesn't... x = c(1.6,1.8,2.4,2.7,2.9,3.3,3.4,3.4,4,5.2) F26 - boxplot(x) plot(F26, add=FALSE, horizontal=TRUE, main=Figur 2.6 Boxplot, axes=FALSE) Thanks for any help

Re: [R] Problem with lsa package (data.frame) on Windows XP

2007-08-19 Thread Uwe Ligges
example to the package maintainer. Uwe Ligges Walter Rojas wrote: Dear R team, The following piece of code (to use the lsa package) works fine on my mac os x, but when I run the same code on Windows XP, it doesn't work any more. ### code: library(lsa) matrix1 = textmatrix(C

Re: [R] Is there any good tools to facilitate us to create R functions?

2007-08-17 Thread Uwe Ligges
that calculates the square root of x, then myfoo - function(x){ sqrt(x) } is your function: myfoo(4) Uwe Ligges __ 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

Re: [R] pakages

2007-08-14 Thread Uwe Ligges
i have to delete and install again the programme R. Why? Are there another method for installing the package? Which one are we talking about? Or do you mean R itself? In that case, what is your OS etc.? Again, please read the posting guide. Uwe Ligges thank you

Re: [R] need help to manipulate function and time interval

2007-08-13 Thread Uwe Ligges
/09/2006 03:38:37, %d/%m/%Y %H:%M:%S) in order to get some POSIXlt object for later calculations. 3. What do you mean with time[j] is between 22:00:00 and 05:59:59 Is the day of the date important or not for this comparison? Uwe Ligges I still have error messneger Thank you

Re: [R] need help to manipulate function and time interval

2007-08-12 Thread Uwe Ligges
Matthew Walker wrote: Uwe Ligges wrote: Henrique Dallazuanna wrote: Hi, Try whit: if(time[j] = 18:00:00 23:59:59) This code is obviously wrong and does not help for the next few lines in the questioner's message, please do not post unsensible stuff. Uwe Ligges

Re: [R] QUESTION ON R!!!!!!!!!!!1

2007-08-11 Thread Uwe Ligges
I think I asked you yesterday on the [EMAIL PROTECTED] account to read the posting guide *before* posting to R-help and I asked you not to SHOUT!!! Uwe Ligges lecastil wrote: Good day. I am employed at a public entity that handles million information and records of several

Re: [R] LDA and RDA: different training errors

2007-08-11 Thread Uwe Ligges
package klaR, the help page tells you that gamma=0, lambda=1 should produce identical results to LDA. (lambda=1 means that the pooled covariance matrix is weighted with 1 while the specific covariance matrices are weigthed with 0. Uwe Ligges Here my code: LDA model: === % x

Re: [R] Help with cumsum function

2007-08-11 Thread Uwe Ligges
as when i=3 (10) Y - cumsum(table(factor(x[,2], levels=0:40))) Uwe Ligges I would really appreciate if anyone could help me with this one:) Jan Moberg __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Plot legend in margin

2007-08-10 Thread Uwe Ligges
(see previous emails) Is there any websites etc. that explain this sort of thing? Please read the posting guide. After that, type: RSiteSearch(legend margin) Currently, the fourth entry shows a solution: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/67979.html Uwe Ligges Dan

Re: [R] need help to manipulate function and time interval

2007-08-10 Thread Uwe Ligges
Henrique Dallazuanna wrote: Hi, Try whit: if(time[j] = 18:00:00 23:59:59) This code is obviously wrong and does not help for the next few lines in the questioner's message, please do not post unsensible stuff. Uwe Ligges

Re: [R] need help to manipulate function and time interval

2007-08-10 Thread Uwe Ligges
... BTW: I don't think the rest of your code is sensible (at least, some braces are missing). Uwe Ligges if time is between 22:00:00 and 05:59:59 == L - L+10 and W - 10^((L+10)/10) else L=L and W = W Could someone help me to realize this function please? You will find my following

Re: [R] help on getting weekday

2007-08-06 Thread Uwe Ligges
Baoqiang Cao wrote: Dear All, I'd like to know which weekday it is for any given date, such as, what is the weekday for 2006-06-01? Any help will be highly appreciated. See ?weekdays Uwe Ligges Best, Baoqiang [[alternative HTML version deleted

Re: [R] plot to postscript orientation

2007-08-03 Thread Uwe Ligges
/mpetresc/postscript.files/horiz.false.ps). I am not sure what is wrong. Plots are created with filled.contour. I guess this is a misconfiguration of your GSview. The plots are fine for me. Anyway, you might also want to set the argument paper=special in the postscript() call. Uwe Ligges

Re: [R] Problem with making dll under Windows

2007-08-03 Thread Uwe Ligges
/include -Wall -O3 -std=gnu99 -c dmypow.c -o dmypow.o windres -I t:/R/include -i dmypow_res.rc -o dmypow_res.o gcc -shared -s -o dmypow.dll dmypow.def dmypow.o dmypow_res.o -Lt:/R/bin-lR Uwe Ligges Albrecht, Dr. Stefan (APEP) wrote: Dear all, I have problems to compile a DLL

[R] useR! 2008

2007-08-03 Thread Uwe Ligges
2008-03-31: early registration deadline: 2008-03-31: submission deadline of abstracts 2008-05-15: notification of acceptance 2008-05-31: regular registration deadline 2008-07-25: registration deadline We hope to meet you in Dortmund! The conference committee: Uwe

Re: [R] A combinatorial task. How to get rid of loops

2007-08-02 Thread Uwe Ligges
) # matrix of all pairwise combinations cmat-combn( n, 2) One example is: n - 3 bmat - as.matrix(expand.grid( rep( list(1:0), n))[, n:1]) library(combinat) cmat-combn( n, 2) apply(cmat, 2, function(x) as.numeric(bmat[,x[1]] bmat[,x[2]])) Uwe Ligges temp-matrix(NA, nrow(bmat

Re: [R] warning messages in grid or lattice give that I can't debug

2007-08-02 Thread Uwe Ligges
] ## library(HH) library(lattice, lib.loc=C:/PROGRA~1/R/R-2.4.1/library) It is essential not to use a lattice version designed for R-2.4.1 with R-devel... And I don't see a reason, and in some cases, switching to another major version of R requires recompiling of packages anyway. Uwe Ligges hotdog

Re: [R] passing args to R CMD BATCH in win 2000

2007-08-02 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: Hello and sorry to bother. Please help. I searched the archives but could not find out why --args is being ignored on Windows 2000. That does not work with R CMD BATCH, AFAIK. In fact, you want to use: Rterm --no-save --args 12 11.R 11.Rout Uwe Ligges I

Re: [R] beamer error with R

2007-08-02 Thread Uwe Ligges
Mario Alfonso Morales Rivera wrote: Dear R users, When I use beamer with \usepackage{harvard} it don't work. Why is this related to R? I do not see any connections here. Uwe Ligges \LaTeX{} give mi an error message, ¿any suggestion? ! LaTeX Error: No counter 'paragraph' defined

Re: [R] Re : beamer error with R

2007-08-02 Thread Uwe Ligges
justin bem wrote: Is it possible to realise slides with R ? If you want to combine LaTeX and R code, take a look at SWeave. Uwe Ligges Justin BEM BP 1917 Yaoundé Tél (237) 99597295 (237) 22040246 - Message d'origine De : Uwe Ligges [EMAIL PROTECTED] À : Mario Alfonso

Re: [R] R2WinBUGS more updates after model did not converge

2007-07-31 Thread Uwe Ligges
Insightful people and myself) are on the way to release a new version based on OpenBUGS 3.x.y. Uwe Ligges Thanks Toby __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] A simple question about summary.glm

2007-07-31 Thread Uwe Ligges
'.' 0.1 ' ' 1 i.e. *** for values 0.001; * for values in [0.01, 0.05) etc. Uwe Ligges Is it the same as Tukey test that tells me which treatment is different from which? i.e. is trtp (with *) significantly different to the control (which, by the way do not appear in this list and I do not know

Re: [R] 'non-standard' folder names in R package

2007-07-31 Thread Uwe Ligges
, as the manual you cited suggests. Uwe Ligges Tao _ Need a brain boost? Recharge with a stimulating game. Play now

Re: [R] Getting variable name used in function...

2007-07-31 Thread Uwe Ligges
addition, for example, data objects name+2. Thanks for your help. Example: function1(var1,var2) function2(var1) function2(var2) ... Can you explain what you want in an example, please? I do not really undertsand what you are trying to do. Uwe Ligges With my best regards

Re: [R] Problem with code

2007-07-31 Thread Uwe Ligges
to the functions. If not, you have to look into the sources and generalize ... Uwe Ligges Thanks faith1 [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] deriv; loop

2007-07-31 Thread Uwe Ligges
release. Uwe Ligges __ 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] Fwd: Package manual examples - 'unexpected$undefined' errors

2007-07-31 Thread Uwe Ligges
= turnout) has at different times worked fine and thrown up the error message. So you tell us the some package influences Zelig's functionality, but how can we help if you do not tell us which one it is? Uwe Ligges Any help gratefully received. __ R

Re: [R] line widths of plotting symbols in the lattice

2007-07-31 Thread Uwe Ligges
symbol line widths. 'lwd' is documented in ?gpar (the help page does not show up for me, I'll take a closer look why) and works for me: xyplot(1:10 ~ 1:10, type = l, lwd = 5) Uwe Ligges I've tried looking through the documentation for xyplot, panel.points, trellis.par.set, and the R-help

Re: [R] Plotting a smooth curve from predict

2007-07-31 Thread Uwe Ligges
. Hence you need to predict in another resolution, e.g.: dat - data.frame(x = seq(1, 10, by = 0.1)) plot(predict(w, newdata = dat), type=l) Uwe Ligges Many thanks, Andrew Wilson __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] Creating windows binary R package (PowerArchiver vs. zip -r9X)

2007-07-27 Thread Uwe Ligges
in the correct way. Uwe Ligges __ 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] qda(MASS) function error

2007-07-26 Thread Uwe Ligges
), then the error message tells you there is a rank deficiency, i.e. some variables might be collinear. Hence at least one of the covariance matrices cannot be inverted. Uwe Ligges Thank in advance, Mauro Rossi

Re: [R] error in using R2WinBUGS on Ubuntu 6.10 Linux

2007-07-26 Thread Uwe Ligges
ConnectNamedPipe 317 This is wine, not R2WinBUGS nor WinBUGS nor R, I fear, and the fixme: sounds promising that things go away in a more recent version of wine... Uwe Ligges R SOURCE FILE: rm(list=ls(all=TRUE)) library(R2WinBUGS) inits-function(){ list(alpha0 = 0, alpha1

Re: [R] R and mysql

2007-07-23 Thread Uwe Ligges
(and it should be the default). Hence install.packages(RMySQL) shoudl work. Uwe Ligges however, one does exist and I suggest you contact the maintainer, David James or the r-sig-db list. If those don't get it for you send me an email off list and I will send you mine. I have only used the Windows

Re: [R] R2WinBUGS awkward to use

2007-07-23 Thread Uwe Ligges
. I'll put it on the ToDo list. Best, Uwe Ligges Thanks Toby data - list(.) model - function() { [omitted] } write.model(model, cwk.txt) inits - function() {.} parameters - c(b, nu, S1, S2) sim - bugs(data, inits, parameters, cwk.txt, n.chains=1

Re: [R] how to determine/assign a numeric vector to Y in the cor.test function for spearman's correlations?

2007-07-20 Thread Uwe Ligges
G. wrote: Hello to all of you, R-expeRts! I am trying to compute the cor.test for a matrix that i labelled mydata according to mydata=read.csv... then I converted my csv file into a matrix with the mydata=as.matrix(mydata) NOW, I need to get the p-values from the correlations... I can

Re: [R] Can I test if there are statistical significance between different rows in R*C table?

2007-07-20 Thread Uwe Ligges
, taking into the multiple comparisons? So what is you hypothesis? Statistical significance of what it to be tested? Uwe Ligges The table can be set up using the following program: a-matrix(data=c(16,71,37,0,4,61,1,6,57),nrow=3,byrow=TRUE) Thanks very much

Re: [R] plot centered line on barplot

2007-07-20 Thread Uwe Ligges
, hist_data1$density) but the line is shifted in respect to the center of the bars. how can I properly plot the line? another question. this is easy, how can I smooth the curve (not fit with loess of spline)? If you do not tell us which kind of smoother you prefer Uwe Ligges tnx

Re: [R] Strange warning in summary.lm

2007-07-19 Thread Uwe Ligges
that conflicts with objects that are required to call summary(lm(...)). E.g. some lm... oder summary... function? Best, Uwe Ligges Thanks, Thierry ir. Thierry Onkelinx Instituut voor natuur- en

Re: [R] Strange warning in summary.lm

2007-07-19 Thread Uwe Ligges
A statistical analysis, properly conducted, is a delicate dissection of uncertainties, a surgery of suppositions. ~M.J.Moroney -Oorspronkelijk bericht- Van: Peter Dalgaard [mailto:[EMAIL PROTECTED] Verzonden: donderdag 19 juli 2007 13:37 Aan: ONKELINX, Thierry CC: Uwe Ligges

Re: [R] Subsetting dataframes

2007-07-19 Thread Uwe Ligges
$cn) gives back all 72 cultivar names used during the five years (starting with Arcadia). Where do I go wrong and how do I use subset in a proper way? So you have to drop the levels you are excluding. Example: x - factor(letters[1:4]) x x[1:2] x[1:2, drop=TRUE] Uwe Ligges

Re: [R] Error: evaluation nested too deeply when doing heatmap with binary distfunction

2007-07-19 Thread Uwe Ligges
: infinite recursion / options(expressions=)? So, does it help to increase the thresholds? If not, please specify a easily reproducible example that helps us to investigate your problem. Best, Uwe Ligges However, if I used default parameters for distfunction: heatmap(X, hclustfun=function

Re: [R] df manipulation

2007-07-19 Thread Uwe Ligges
! If you have: df - data.frame(index = c(1, 4, 7), x1 = 1:3, x2 = 3:1) df Then you can say: temp - data.frame(index = 1:max(df$index)) df - merge(temp, df, all.x = TRUE) df Uwe Ligges Thank you __ R-help@stat.math.ethz.ch mailing list https

Re: [R] filter out observation by condition

2007-07-18 Thread Uwe Ligges
those unwanted obs.? I appriciate the help, sigalit. subset(data, mort30 != 1) Uwe Ligges [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] HELP FOR BUGS

2007-07-14 Thread Uwe Ligges
Ali raza wrote: Hi Sir I am very new user of R for the research project on multilevel logistic regression. There is confusion about bugs() function in R Do you mean bugs() from package R2WinBUGS? Yes, it is related to the software WinBUGS 1.4.x (and OpenBUGS 2.x with package BRugs). Uwe

Re: [R] multiple plots in a graph

2007-07-12 Thread Uwe Ligges
)), add=TRUE, col.points=red, col.hor=red) etc... Uwe Ligges Thanking you, Sincerely, Ajay. __ 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

Re: [R] adding latex, html docs. to new packag

2007-07-09 Thread Uwe Ligges
documentation in the Rd format. Those files are converted automatically to latex and html (among other format) when the package is installed. Skeletons for the help files can be generated using prompt() or for a whole package, see ?package.skeleton. Uwe Ligges thanks, eb

Re: [R] Writing Excel (.xls) files on non-Windows OSs using Perl

2007-07-09 Thread Uwe Ligges
Gabor Grothendieck wrote: Note that there already is a function, read.xls, in gdata that uses Perl. Note that Marc talked about *writing* in his original message. Uwe Ligges On 7/9/07, Marc Schwartz [EMAIL PROTECTED] wrote: On Mon, 2007-07-09 at 16:42 +0300, Hans-Peter wrote: Hi, 2007

Re: [R] calculating p-values of columns in a dataframe

2007-07-08 Thread Uwe Ligges
-values now: sapply(L, [, c(statistic, p.value)) If you want to follow your initial approach quickly, you can calculate the probability function of the t distribution with 3 degrees of freedom (for your data) with 2 * pt(-abs(myt), df = nrow(mydf) - 1) Uwe Ligges

Re: [R] Windows Binary for ncdf package

2007-07-08 Thread Uwe Ligges
of the box on Windows and is hence not available on CRAN. Nevertheless, Brian kindly provides the binary in his CRAN (extras) repository (URL http://www.stats.ox.ac.uk/pub/RWin). Just type install.packages(ncdf) and it will be installed ... Uwe Ligges

Re: [R] Recursion in R ...

2007-07-07 Thread Uwe Ligges
) { prod(1:(n+k-1)) / prod(1:n) / prod(1:(k-1)) } or Nnk2 - function(n, k) { gamma(n+k) / gamma(n+1) / gamma(k) } or most easily: Nnk3 - function(n, k) choose(n+k-1, n) Uwe Ligges aren't you? ON THAT BASIS: I hereby claim the all-time record for inefficient programming in R. Challengers

Re: [R] Problem/bug with smooth.spline and all.knots=T

2007-07-05 Thread Uwe Ligges
Hubertus wrote: Dear list, if I do smooth.spline(tmpSec, tmpT, all.knots=T) with the attached data, I get this error-message: Note that you cannot attach data that way. You migth want to upload it to some web space and send us the link. Uwe Ligges Error in smooth.spline(tmpSec

Re: [R] Is it a bug ?

2007-07-05 Thread Uwe Ligges
I don't get your point, because exp(-(-3)^2.2) [1] NaN is correct. A negative value to the power of a non-integer is undefined in IR. Of course it is defined as a complex number: exp(-(-3+0i)^2.2) [1] 1.096538e-04-3.47404e-05i Uwe Ligges Giuseppe PEDRAZZI wrote

Re: [R] The R Book by M. J. Crawley

2007-07-03 Thread Uwe Ligges
. Uwe Ligges Thanks in advance, Matt [[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 guide http://www.R-project.org/posting-guide.html

Re: [R] Search a function name in a string

2007-07-03 Thread Uwe Ligges
\\(.*\\),c(S(a),CSP)) Uwe Ligges [1] 1 2 I expected the pattern to be retrieved only in the first string, so obviously this is not correct. Any idea ? Thank you very much in advance, Yvonnick Noel, PhD U. of Rennes 2 France __ R-help

Re: [R] Determining whether a function's return value is assigned

2007-06-30 Thread Uwe Ligges
the summary for objects of that class. Uwe Ligges Suppose what I am looking for is called return.value.assigned. Then one might use it like this myfunction - function () { # Create bigobject here if (return.value.assigned()) { bigobject } else

Re: [R] R CMD INSTALL in R 2.5.1 (2007-06-27)

2007-06-30 Thread Uwe Ligges
directory? (my guess) Are all the tools up to date? Do you have another library (except the standard one) defined anywhere? Can you source() all the R files in your package separately in R-2.5.1? Uwe Ligges -- Making package myfuncs adding build stamp to DESCRIPTION

Re: [R] Installing packages.

2007-06-29 Thread Uwe Ligges
? This is really ancient. Please upgrade to a more recent version of R. Before using function from the installed package, you have to load it: library(exactRankTests) Uwe Ligges trying URL `http://cran.r- project.org/bin/windows/contrib/2.0/exactRankTests_0.8-10.zip' Content type `application

Re: [R] R-2.5.1 problem listing dataframe in GUI/CMDLINE

2007-06-29 Thread Uwe Ligges
? :-) Quite probably you are using a new version (R-2.5.x) of R but mixing it with some packages for a less recent version of R. Do you have some base packages for less recent version of R installed in a non-standard library that is in the search path? .libPaths() should reveal other libraries. Uwe

Re: [R] About Memory size

2007-06-23 Thread Uwe Ligges
, and for certain function, you might need much more. Hence the advise is to rethink how to reduce the problem or to buy 2GB of RAM for your machine (which is advisable in any case, because RAM is cheap and thinking hurts). We have upgraded all of our computer labs to at least 1GB these days. Uwe Ligges

Re: [R] [R-pkgs] RGtk2 2.10.x series available

2007-06-21 Thread Uwe Ligges
Prof Brian Ripley wrote: Did you not get a dialog box with further details? Unfortunately I found no instructions. You need a version of of Gtk2 installed that is at least as late as the Windows maintainer used to build RGtk2, as it adapts to the version installed. I don't know what

Re: [R] Got Unexpected ELSE error

2007-06-20 Thread Uwe Ligges
. Then, the code below is invalid (there is nothing that starts with else). else { cat(FALSE,\n) } Instead, use: a - TRUE if ( a ) { cat(TRUE,\n) } else { cat(FALSE,\n) } Uwe Ligges If I try to execute with R I get: Error: syntax error, unexpected ELSE in else

  1   2   3   4   5   6   7   8   9   10   >