Re: [R] Metaplot Axis Annotation

2009-11-22 Thread Uwe Ligges
ere "rmeta", I guess). Best, Uwe Ligges Thanks for all your help. Syntax is below. Best, Dawn McDaniel Ishwar Bridgelal University of Southern California local({pkg <- select.list(sort(.packages(all.available = TRUE))) + if(nchar(pkg)) library(pkg, character.only=TRUE)}) L

Re: [R] How to make the assignment in a for-loop not affect variables outside the loop?

2009-11-22 Thread Uwe Ligges
Either use local as in: n=10 local(for(i in 1:n){ n=3 print(n) }) print(n) or write a function that is evaluated in its own environment: n=10 MyLoopFoo <- function(){ for(i in 1:n){ n <- 3 print(n) } } MyLoopFoo() print(n) Uwe Ligges Peng Yu

Re: [R] how to tell if its better to standardize your data matrix first when you do principal

2009-11-22 Thread Uwe Ligges
e ask your teacher rather than this list. Anyway, it does not make sense to predict weight using a linear combination (principle component) that contains weight, does it? Uwe Ligges __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

Re: [R] MASS loading error

2009-11-23 Thread Uwe Ligges
2.9.2. Erin, the MASS you have installed in one of your current libraries needs R <= 2.9.2 (perhaps in /usr/local/lib/R/site-library ?) Please run update.packages(checkBuilt=TRUE) and packages in your library will be updated. If the one in /usr/local/lib/R/site-lib

Re: [R] how to tell if its better to standardize your data matrix first when you do principal

2009-11-23 Thread Uwe Ligges
think you really nedc to consult some statistics textbook on PCA if my answer was not sufficient. Given your questions, I doubt you understand what PCA does and how it works. It does not predict anything. Uwe Ligges hadley wrote: You've asked the same question on stackoverflow.co

Re: [R] how to tell if its better to standardize your data matrix first when you do principal

2009-11-23 Thread Uwe Ligges
about the variables. And note, as Hadley mentioned before, that there are certainly statistical consultants available in your area, which is unknown for us given you post anonymously from some hotmail.com account - which is also not very helpful to get further answers Uwe Ligges

Re: [R] Downloading clim.pact package

2009-11-23 Thread Uwe Ligges
ZABLONE OWITI wrote: Hi all, I am relatively a new user of R. I need assistance on how to download and install the clim.pact_2.2-39.zip. I am running R on Windows. See the manual "R Installation and Administration" and afterwards read ?install.packages

Re: [R] get.gpar, grid.Call

2009-11-23 Thread Uwe Ligges
hen transported the source code from another machine and source()-ed it. You need to load package grid (which contains both). Uwe Ligges Any ideas. It seems to belong in the base package, but this is unavailable for install.packages or update.packages. Thanks f

Re: [R] testing of randomness of residuals in the lm function in R

2009-11-23 Thread Uwe Ligges
object to see diagnostic plots. Uwe Ligges thanks a lot in advance, Ashok Varma [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] Grouped Boxplot

2009-11-24 Thread Uwe Ligges
Gary wrote: Hi R Users, I'm interested in plotting a grouped boxplot (please see attached file for sample). Can anyone suggest a function{package} which can help me achieve this. Your attachment did not pass the list's filters. Anyway, see ?boxplot. Uwe Ligges Th

Re: [R] Fwd: R- bioconductor -- help

2009-11-24 Thread Uwe Ligges
question on the BioC list *after* reading for example this lists posting guide mentioned further below. Uwe Ligges Thanks [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Old Version of R - packages

2009-11-24 Thread Uwe Ligges
"packages" already loaded earlier i.e. if I upgrade to R 2.10, I don't wish to reinstall packages like lmom, lmomco, quantreg, YieldCurve etc. See the manual "R Installation and Administration" as well as the FAQs. Best, Uwe Ligg

Re: [R] problem in building an R package

2009-11-25 Thread Uwe Ligges
ly edit the files generated in xxzz folder (to add titles, authors, etc) -- But when I re-run - package.skeleton(name="xxzz", code_files = "H:\xxzz.R") Why do you rerun it once you have the structure of your package? You can add separate files now and a

Re: [R] R on Large Data Sets (again)

2009-11-29 Thread Uwe Ligges
not sufficient. Best wishes, Uwe Ligges __ R-help@r-project.org 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] Iteration idioms & laziness

2009-11-29 Thread Uwe Ligges
problems it might be sensible to go the loop way ... Uwe Ligges Thanks! Best regards, A.S. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.h

Re: [R] R 2.10 Line Type Issue...

2009-11-29 Thread Uwe Ligges
2), R immediately went off to la-la land, requiring a force-quit. I finally tied the problem down to this statement: contour(u,v,ci,levels=c(0.30),add=TRUE,lty=2) Please specify u, v, ci in order to make your example reproducible for us. Thanks, Uwe Ligges I tried specifying lty="das

Re: [R] t-criterion calculation using means and SE

2009-11-29 Thread Uwe Ligges
in a one line function and directly compare the values with the quantiles of the distribution. Best wishes, Uwe Ligges Best regards, A.Morkovin __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do rea

Re: [R] kernlab's ksvm method freeze

2009-11-29 Thread Uwe Ligges
re mist be something else going on... Best wishes, Uwe Ligges Heiko Strathmann wrote: Hello again, the freeze seems to depend on the kernel matrix. With another kernel matrix of similiar size, gernerated with the same kernel, but on another dataset, there is no freeze. I have put a worksp

Re: [R] Orphaned R Packages (maybe this is too inside baseball?)

2009-11-29 Thread Uwe Ligges
it), fix the open issues and upload a new version to CRAN. Since signal is a package of interest for me as well, I thought about taking over maintainership already, but there may be some open license issues and I do not have too much time these days. Best wishes, Uwe Ligges Thanks again

Re: [R] Spectrum confidence interval

2009-11-29 Thread Uwe Ligges
orkspace and you can go on and add lines to your plot now. Best wishes, Uwe Ligges Many thanks for your help! Clement Poirier __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://w

Re: [R] kernlab's ksvm method freeze

2009-11-29 Thread Uwe Ligges
ningDataYs, type="C-svc", C=2)) and everything is still fine (same on Linux). Uwe Ligges Am Sonntag, den 29.11.2009, 17:22 +0100 schrieb Uwe Ligges: I just tried ksvm(kernel="matrix", kernelMatrix, trainingDataYs, type="C-svc", cross=10, C=2) several times on bo

Re: [R] Has anyone had success with RGTK2/rattle and windows 7 64-bit?

2009-11-29 Thread Uwe Ligges
Graham Williams wrote: I don't have a Windows 7 to test this on yet - works on Vista and XP. Did you install the GTK libraries (separately to R)? I have manually tested on Windows Server 2008 64-bit where it works (with most recent 32-bit binary versions of R, rattle and GTK). Best wishes,

Re: [R] kernlab's ksvm method freeze

2009-11-30 Thread Uwe Ligges
dows). Best, Uwe Ligges Heiko Strathmann wrote: I tried out the code you wrote, it also works for me, but it lacks a parameter i use in my code. The problem (at this computer) seems to be this "cross"-parameter of ksvm - if I, for example, add the parameter cross=10, i get the old pro

Re: [R] Normal tests disagree?

2009-12-02 Thread Uwe Ligges
from normality is not really big. 3. Your case, one test rejects, the other one not: Welcome, you finally arrived in hell. Best wishes, Uwe Ligges For my data set I have p.value of 0.05496421 returned from the shapiro.test and 0.882027 returned from the jarque.bera.test. I have

Re: [R] problems installing R packages

2009-12-02 Thread Uwe Ligges
privileges... In that case nobody could install anything. No, you can, but you really need the privileges, i.e. right click on startup of R and tell the OS to start R really with Admin privieges. Uwe Ligges Héctor On 2 Dec 2009 at 3:55, catuxa-2 wrote: Date sent: Wed,

Re: [R] pictures_in_a_matrix

2009-12-02 Thread Uwe Ligges
or his slides from useR! 2006: http://www.stat.auckland.ac.nz/~paul/Talks/rgraphs.pdf Best, Uwe Ligges __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] go back a block of code in history

2009-12-02 Thread Uwe Ligges
to skip block of code in the history? I don't think so, but since you are writing your code in an editor (hopefully), it is probably easier to submit the relevant part of the code from the editor to R again. Uwe Ligges x=list(a=c(1,2),b=c(3,4,5)) y=list(a=c(1,2),b=c(3,4,5)) lappl

Re: [R] Adding and Multiplying two Unevaluated Expressions

2009-12-02 Thread Uwe Ligges
expr[[1]][[2]] <- expr1[[1]] expr[[1]][[3]] <- expr2[[1]] expr } that can construct such expressions as in: opExpr(expression(x * sin(x)), expression(x^2 * sin(x))) opExpr(expression(x * sin(x)), expression(x^2 * sin(x)), "*") Best wishes, U

Re: [R] R will not load

2009-12-02 Thread Uwe Ligges
rking directory of R. Note that files beginning with a dot are not visible in the Windows Explorer by default and may not be found with Windows search in default settings. Best wishes, Uwe Ligges John John David Sorkin M.D., Ph.D. Chief, Biostatistics and Informatics University of Mar

Re: [R] Help R2WinBUGS

2009-12-03 Thread Uwe Ligges
TTsai wrote: Hello, I have problem running WinBUGS from R. The following example works in WinBUGS but it does not work in R through package R2WinBUGS. Works for me. What is the error message you get? Best wishes, Uwe Ligges Does anyone know what the problem is? x <- c(0.2, 1.1

Re: [R] Question about R Functions

2009-12-04 Thread Uwe Ligges
Stephanie Cooke wrote: Is there a place to find the code for R functions like lsoda? Thanks Yes, all code is in the source version of the package that contains that function. Best, Uwe Ligges __ R-help@r-project.org mailing list https

Re: [R] Installing RandomForest on SuSe Linux - warnings

2009-12-05 Thread Uwe Ligges
If the package passes the checks (R CMD check) on your macine, it should be fine. Some compiler warnings are expected. Best wishes, Uwe Ligges NCS wrote: I installed RF on Linux OpenSuSe 11.1 and while it did install and did run a model I had created on Windows correctly, it gave me a lot

Re: [R] Rounding a Measurement to be Consistent with its Uncertainty

2009-12-05 Thread Uwe Ligges
consistent with its uncertainty, i.e., 8170? That's not consistent, you have 3 significant digits here, but 2 for the "uncertainty" (whatever that is) ... Uwe Ligges Tom __ R-help@r-project.org mailing list https://stat.ethz.ch/mai

Re: [R] How to draw a big heatmap?

2009-12-05 Thread Uwe Ligges
o that the labels are not overlapping. Without having looked in detail - I cannot even allocate enough space for a 1x1 and you certainly do not want to produce some 300Mb file, do you? Anway, to proceed, decrease the size of the margins, see ?par. Uwe Ligges Thanks

Re: [R] Problem with date x-axis

2009-12-05 Thread Uwe Ligges
t value is ok but I don't understand why the par()$usr values are so low. Any idea ? Seems to be unanswered so far - not a big surprise given we do not see a small reproducible example (we do neither have measuresbyday nor data) that would be easy and quick to adapt to your needs. Bes

Re: [R] R packages and assess to data in packages

2009-12-06 Thread Uwe Ligges
tform independent. For an installed package under Windows, the data files might be zipped in a container given some heuristics is fulfilled and the package maintainer has not explicitly asked declared ZipData=no in the DESCRIPTION file of a package. Uwe Ligges To get the path to the .rda file

Re: [R] Incorrect number of dimensions

2009-12-06 Thread Uwe Ligges
nth as a factor. Help! If you guess is it has something to do with your data, it might make sense to show them so that we can tell you if that is true or not... By the way, the posting guide asks you to send reproducible code anyway. Uwe Ligges __

Re: [R] MLE in R

2009-12-06 Thread Uwe Ligges
Please read ?optim and about its arguments lower, upperBounds on the variables for the "L-BFGS-B" method. Uwe Ligges Liang Wang wrote: Hi, dear R users I am a newbie in R and I need to use the method of meximum likelihood to fit a Weibull distribution to my survival data. I

Re: [R] Error in eval(expr, envir, enclos) : object 'N' not found

2009-12-06 Thread Uwe Ligges
27;N' not found". Any ideas what can be causing this? I have no object 'N' anywhere in the script. At least I see capital N in both model and model2 - roughly 10 times ... Uwe Ligges I made an identical version of models states, parameters, and everything just by adding 2 af

Re: [R] barchart() {lattice} help.

2009-12-06 Thread Uwe Ligges
quot;, "yellow1", "orange"))), strip = strip.custom(bg="greenyellow") ) ### assuming data is read in object name "dta". attach(dta) Other comments: 1. You do not need attach at all here - and I recommend not to use it unless you r

Re: [R] Printing 'k' levels of factors 'n' times each, but 'n' is unequal for all levels ?

2009-12-09 Thread Uwe Ligges
es, level 2 = 12 times 0.1428, and so on. Is there a way of specifying that a list needs to be populated with replicates of groupmeans based on values got from newtemp[,2]? See ?mapply and ?rep, hence mapply(rep, values, replicates) where "values" and "replicates&

Re: [R] How to get the runtime as well as the result?

2009-12-11 Thread Uwe Ligges
is one of the reasons not to use "=" as assignment operator at all: it is confusing. Best, Uwe Ligges __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-pr

Re: [R] Warning for data.table (with ref)?

2009-12-11 Thread Uwe Ligges
This is the intended startup message for that package (and not a warning), nothing to fix. Uwe Ligges Peng Yu wrote: I have following the message "dim(refdata) and dimnames(refdata) no longer allow parameter ref=TRUE, use dim(derefdata(refdata)), dimnames(derefdata(refdata)) instead&

Re: [R] copyING directories and files

2009-12-11 Thread Uwe Ligges
I'd use a shell() command to call xcopy or robocopy, or cp given you have some unix tools installed. Uwe Ligges Paul Evans wrote: Hi, I am using the windows version of R. I wanted to copy a directory (containing several files) to another directory. Is there any command in R that wil

Re: [R] Help with beanplot fromatting

2009-12-11 Thread Uwe Ligges
main = "example", ylab = "Size", xlab = "tank", side = "both", border = NA, col = list(c("blue", "white"), c("red", "yellow"))) Uwe Ligges James Widman wrote: Sorry for the previous error. Dear Helpful R User

Re: [R] Reducing the "dimension" of a list object

2009-12-11 Thread Uwe Ligges
art way to do that ? Perhaps directly rewritten without thinking: mat <- data.frame( letters = sapply(res, "[[", c(1,1)), numbers = sapply(res, "[[", c(2,1))) which should be roughly 2.5 times faster. Uwe Ligges Thanks, ___

Re: [R] simple ts.plot question

2009-12-13 Thread Uwe Ligges
, say subject1.ts, subject2.ts, ., subject6.ts. The observations are taken at an interval of 0.25 hr. All of the series ranges from 0.25hr to 8.00 hr. How can I plot all the six time series in the same panel**?* *I am eagerly waiting for your reply. Thanks in advance.*

Re: [R] Need help to complete missing value (Date and Time) in Sp500 Data

2009-12-13 Thread Uwe Ligges
what you want to add, please specify a reproducible example. Uwe Ligges Date;open;hight;low;close;Volume 02.04.2008 09:00;6.749,24;6.755,55;6.746,89;6.754,11;0 02.04.2008 09:01;6.754,70;6.754,70;6.748,13;6.749,55;0 02.04.2008 09:02;6.749,36;6.757,00;6.745,50;6.749,38;0 02.04.2008 09

Re: [R] Array of legend text with math symbols from predefined variables

2009-12-13 Thread Uwe Ligges
See Ligges, U. (2002): R Help Desk: Automation of Mathematical Annotation in Plots. R News 2 (3), 32-34. http://www.r-project.org/doc/Rnews/Rnews_2002-3.pdf Uwe Ligges Koen wrote: Hello, I am trying to include legend text with math symbols from a predefined character variable that is read

Re: [R] do while loop

2009-12-13 Thread Uwe Ligges
annie Zhang wrote: Hi, All, Is there a 'do while' loop in R for which I can check conditions after? I checked and it seems there is only the 'while' function. Right, but you can use repeat{} and check conditions whereever using if() and exit the loop with the "b

Re: [R] Need help to complete missing value (Date and Time) in Sp500 Data

2009-12-13 Thread Uwe Ligges
asked for the example. Please provide an example (just a few rows) of the data how it looks like and then how you want it to be afterwards. That would be very helpful to allow readers of the list to respond. Uwe Ligges Thanks in advance Hamid Uwe Ligges-3 wrote: Hamid wrote: Dear al

Re: [R] Need help creating multiple datasets using loops or vectorization

2009-12-13 Thread Uwe Ligges
Forget the loop and use vocallGrp <- split(vocallsub, vocallsub$Group) Uwe Ligges Anderson, Chris wrote: I am trying to create multiple dataset by group like the following using either a loop or vectorization: vocallGp1<-subset(vocallsub, Group==1) vocallGp2<-subset(vocallsub,

Re: [R] option for multi thread or multi core machines

2009-12-13 Thread Uwe Ligges
p://cran.r-project.org/web/views/HighPerformanceComputing.html Uwe Ligges Anderson, Chris wrote: I notice that R basic installation does not take advantage of multi-thread or multi-core processors. Is there an option for multi-threaded processors? I currently run all of my analysis on thinkpad lapto

Re: [R] different randomForest performance for same data

2009-12-13 Thread Uwe Ligges
of 100% in the end, because you renamed the levels in the testdata so that they do not fit to the traindata any more. Uwe Ligges Cheers, TIM __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] problem with unmatched quotes

2009-12-14 Thread Uwe Ligges
Escape the inner quotes. Uwe Ligges Alfredo Alessandrini wrote: Hi, I've a problem with unmatched quotes with a bash script within a R script: system("awk 'NR>2 {FS=" ";print$1","$2","$3","$4","$5","$6&

Re: [R] R CMD check in Vista

2009-12-15 Thread Uwe Ligges
Install the Rtools as described in R Installation and Administration. Uwe Ligges Juliet Ndukum wrote: I used R CMD check in windows vista, and it gives me the message 'sh' is not recognized as an internal or external command. How do I get around this, your help would be highly a

Re: [R] How to rotate an axis?

2009-12-20 Thread Uwe Ligges
annot with base graphics. You could switch to the grid framework which allows such things. Best wishes, Uwe Ligges I'm looking foward to any ideas and hints and want to wish everybody a merry merry christmas. Thanks in advance. Etienne Stockhausen __

Re: [R] plotting polynomial regression line

2009-12-20 Thread Uwe Ligges
lines. After the above warning a line is drawn in the graph parallel to the y-axis. But I was expecting a curve line through the scatterplot. Am I doing something wrong? Please help! You can predict() some points along your x values and connect them via

Re: [R] birats example with R2WinBugs

2009-12-20 Thread Uwe Ligges
ong here. You could do as well after reading ?bugs: inits must be a list of list(s), one list for each chain. You do not have a list of lists but a list of the values, i.e. wrap the whole thing in another list() and you are fine. That one will contain one list for your one chain. Uwe Lig

Re: [R] Problems in installing MCMCglmm package

2009-12-21 Thread Uwe Ligges
Start with a recent version of R. If you install R-2.10.1, Matrix should be included. If the installation fails, you need to look for the error messages why it failed. Uwe Ligges Thx, S. R version 2.8.1 (2008-12-22) x86_64-pc-linux-gnu locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC

Re: [R] Reading multiple Input Files

2009-12-21 Thread Uwe Ligges
See the FAQs, particularly "How can I save the result of each iteration in a loop into a separate file?" which applies for the other way round as well. Uwe Ligges Maithili Shiva wrote: Dear R helpers, Suppose I am dealing with no of interest rates at a time and the no of intere

Re: [R] Rgraphviz install

2009-12-22 Thread Uwe Ligges
/ / c:\> echo %PATH% / /o. Use biocLite('Rgraphviz') to install Rgraphviz Best wishes, Uwe Ligges Thanks ... Uwe Ligges-3 wrote: June Wong wrote: Hi I've tried several times and followed what others suggest in installing Rgraphviz (https://stat.ethz.ch/pipermai

Re: [R] When was the package relaimpo first introduced in R?

2009-05-07 Thread Uwe Ligges
. Uwe Ligges __ R-help@r-project.org 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] When was the package relaimpo first introduced in R?

2009-05-07 Thread Uwe Ligges
o the archives, or, on the package's page, there is a link to the particular package's archive. There you will find all CRAN versions including the dates. Beste Gruesse, Uwe 2009/5/7 Uwe Ligges : Dimitri Liakhovitski wrote: Hello! I am wondering when the package relaimpo was first intr

Re: [R] dependency ‘Matrix’ is not availabl e when installing Rcmdr

2009-05-07 Thread Uwe Ligges
Uwe Ligges wrote: Argh, it disappeared. Probably a bug in my scripts that removed the old version of Matrix from the Windows binary repository for R-2.8.x (new versions of Matrix won't pass checks under the outdated version of R). I will compile an old version tomorrow and make it avai

Re: [R] I'm offering $300 for someone who know R-programming to do the assignments for me.

2009-05-08 Thread Uwe Ligges
aypal. Thanks! If I'd read such a message from one of my students .@._$%&§!! Uwe Ligges __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-

Re: [R] CHM error

2009-05-08 Thread Uwe Ligges
is D:/Programmi/R/R-2.9.0/library/base/chtml/base.chm Uwe Ligges __ R-help@r-project.org 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, sel

Re: [R] graph resolution windows (dpi) using x11 device

2009-05-08 Thread Uwe Ligges
, in tiff format, At least I cannot even set this resolution in the original tiff device. Hence I'd suggest to produce some vector format such as postscript or pdf and convert with some third party software to the desired tiff specification afterwards. Uwe Ligges for a journal (off c

Re: [R] plotting with gap in x-axis range

2009-05-08 Thread Uwe Ligges
If plotrix does not help, you need to be mroe specific and give an example as the posting guide asks you to do anyway. Uwe Ligges BARRES-DE-ALMEIDA U. wrote: Hi, I need to make a plot of data from multiple epochs, and so I'd need to introduce a couple of breaks in the x-axis not to

Re: [R] How to save independent R sessions in BATCH mode???

2009-05-08 Thread Uwe Ligges
clean up/load/save all the time anymore. Uwe Ligges The problem here is that, I cannot save.image and begin a new “clean” session. An hypothesis could be to delete all R objects after the save.image, but this does not seem too efficient to perform. What should I do to begin a R clean session in

Re: [R] graph resolution windows (dpi) using x11 device

2009-05-08 Thread Uwe Ligges
Marta M. Rufino wrote: Dear colleagues, Thank you for the reply. Einer: I tried to so, but I had an error: "Error in system(paste(gsexe, "-help"), intern = TRUE, invisible = TRUE) : gswin32c.exe not found" I think would need "|ghostscript|" (in the help file: "You will need |ghostscript|:

Re: [R] Rmysql linking to an old-ish mysql build

2009-05-09 Thread Uwe Ligges
CRAN: It is build against a 32-bit version of MySQL. I am not sure if there is a safe way to build a binary that properly links against 64-bit MySQL given you are running 32-bit R. If there is, you have to install the package from sources yourself anyway. Best, Uwe Ligges When trying to

Re: [R] for loop

2009-05-09 Thread Uwe Ligges
yield: a <- c(-1, -2, -3, 1, 2, -1) rle(sign(a)) #Run Length Encoding # lengths: int [1:3] 3 2 1 # values : num [1:3] -1 1 -1 ## or just the vector you want is: rle(sign(a))$lengths [1] 3 2 1 Uwe Ligges Alessandra __ R-help@r-project.or

Re: [R] newtons method

2009-05-12 Thread Uwe Ligges
Kon Knafelman wrote: Hi, Does anyone know how to code newton's method for finding the roots of polynomial functions? im not sure whether i need to do this manually, or just code something with a loop to stop when it gets to the desired result See ?optim for optimization methods.

Re: [R] inconsistent results for axis.POSIXct

2009-05-12 Thread Uwe Ligges
I can reproduce it. Can you please send a bug report to R-bugs so that this won't get lost. Thank you, Uwe Ligges Dan Kelley wrote: Some time ago, I posted a note about what I considered to be a bug in axis.POSIXt() for R 2.8.x, relating to whether timezones in the data are obeyed o

Re: [R] how often we use the libraries/packages in R

2009-05-12 Thread Uwe Ligges
have an internal protocol if files accesses which is probably not the case. Uwe Ligges I have many that I am not sure... because they can be used with other packages, etc. Thank you very much in advance, Best wishes, Marta [[alternative HTML version deleted

Re: [R] newtons method

2009-05-12 Thread Uwe Ligges
-finding_algorithms . And Uwe may not be aware that optim() is contra-recommended for functions of 1 variable, Has anybody told us something about just 1 variable? uwe which seems to be the problem here. But there is ?polyroot JN Message: 130 Date: Tue, 12 May 2009 11:12:51 +0200 From: Uwe Ligges

Re: [R] selecting points on 3D scatterplots

2009-05-12 Thread Uwe Ligges
tor directly for putting text in such as in: text(locator(1), "The iris data") If you want to convert back to 3D: This is not possible, because there is a while line behind that point you are clicking on .... Best, Uwe Ligges Duncan Murdoch wrote: On 5/12/2009 3:08 PM, Abby Drake

Re: [R] Sweave: Howto write real TeX formula in plot

2009-05-12 Thread Uwe Ligges
‘cacheSweave’ are not available | 2: In install.packages("pgfSweave", , "http://www.rforge.net/";) : | installation of package 'pgfSweave' had non-zero exit status | ` what will i have to do now? And could someone give me an example how to write a for

Re: [R] Help with reshape/reShape and indexing

2009-05-13 Thread Uwe Ligges
12 13 14 b 20 25 NA c 30 NA NA This does it more or less your way: ds <- split(df, df$Name) ds <- lapply(ds, function(x){x$Index <- seq_along(x[,1]); x}) df2 <- unsplit(ds, df$Name) tapply(df2$X1, df2[,c("Name", "Index")], function(x) x) athough there may exis

Re: [R] Multiple plot margins

2009-05-13 Thread Uwe Ligges
: par(mfrow = c(2,3), mar = c(0,0,0,0), oma = c(5,5,0,0), xpd=NA) plot(1, xaxt="n", xlab="", ylab="A") plot(1, xaxt="n", yaxt="n", xlab="", ylab="") plot(1, xaxt="n", yaxt="n", xlab=&quo

Re: [R] questions on rpart (tree changes when rearrange the order of covariates?!)

2009-05-13 Thread Uwe Ligges
the same reduction of the entropy criterion as another one might be used, hence another result. Uwe Ligges Does anyone know how rpart deal with ties? Here is the codes for running the two trees. library(mlbench) data(PimaIndiansDiabetes2) mydata<-PimaIndiansDiabetes2 library(rpart

Re: [R] scatterplot3d

2009-05-14 Thread Uwe Ligges
2, z2, col=3, type="l") Is there an easy method to call to change the projection or rotate the figure along a particular axis? The following is the code that plots if one at a time. Any help is appreciated. scatterplot3d is not good for such rotations. In order to view and rotat

Re: [R] replacing default axis labels on a plot

2009-05-14 Thread Uwe Ligges
;, "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")) then issued this command plot(flow~factor(month),xlab="Month",ylab="Total Flow per Month", ylim=c(0,55000),

Re: [R] 3dscatter for linux

2009-05-14 Thread Uwe Ligges
threshold wrote: Hi, do you have any suggestions how to make 3D scatterplot, BUT under linux. Worth mentioning is the fact that 'scatterplot3d' does not load under Ubuntu 8.10. Why not? It is in pure R code, hence it is just as OS dependent as R itself. Uwe Ligges Do yo

Re: [R] corrupted smoothing kernel ?

2009-05-14 Thread Uwe Ligges
. which works for me. Have you loaded some specific package? Which R versioj is this? Your OS? Self-compiled R or some pre-compiled binary? Uwe Ligges kernel("daniell", 10) # Error in kernel("daniell", 10) : unused argument(s) (10) kernel("daniell", c(3,3))

Re: [R] question about setClass

2009-05-14 Thread Uwe Ligges
Erin Hodgess wrote: Hi R People: I have a question about setClass please. I'm working thru "R Programming for Bioinformatics". Actually, I was wondering if there is such a thing as an updateClass, in order to change a "contains" option, please? that is, if I had setClass("dog", representat

Re: [R] Fwd: Cannot allocate a new database connection error

2009-05-16 Thread Uwe Ligges
Open a connection as in con <- myDbConnect(dbName,hostName) before the loop starts and afterwards just work on "con". Uwe Ligges Moumita Das wrote: -- Forwarded message -- From: Moumita Das Date: Sat, May 16, 2009 at 2:26 PM Subject: Cannot allocate a

Re: [R] Memory size problems in R

2009-05-16 Thread Uwe Ligges
What can I do? Use a 64-bit version of R [i.e. something on a LInux machine or perhaps the recently available commercial 64-bit version for Windows] or rephrase/-code your problem. Uwe Ligges I would appreciate somebody to help with any ideia. [[alternative HTML version

Re: [R] Plotting question re. cuminc

2009-05-16 Thread Uwe Ligges
using. I get, e.g.: > cuminc(ftime,fstatus,group) Error: could not find function "cuminc" > ftime Error: object 'ftime' not found > fstatus Error: object 'fstatus' not found > group Error: object 'group' not found Best, Uwe Ligges I am car

Re: [R] data summary and some automated t.tests.

2009-05-16 Thread Uwe Ligges
Gaussian ... with a mean and sd for each of the treatments And what is the treatment??? Best, Uwe Ligges (up or down), and out put this as a table I am having a hard time starting- maybe it is to close to lunch. Any suggestions would be greatly appreciated. Stephen Sefick x

Re: [R] Fw: Help with loops(corrected question)

2009-05-16 Thread Uwe Ligges
ged_value[,2:21] <- apply(temp, c(1,3), mean) Uwe Ligges for (i in 1:length(zz[,1])) { #calculates Meanss #Sample A average_value[i,2] <- rowMeans(zz[i,2:3]) average_value[i,3] <- rowMeans(zz[i,4:5]) average_value[i,4] <- rowMeans(zz[i,6:7]) average_value[i,5] <- rowMean

Re: [R] Row number of minimum value?

2009-05-17 Thread Uwe Ligges
where can I get the row?? Maybe this helps: which(mycol == min(mycol)) ... or which.min(mycol) for short. Uwe Ligges where "mycol" is your column. Hth, Adrian __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinf

Re: [R] Runtime Error! Keep on happening while using amap, anacor and ca pckg

2009-05-18 Thread Uwe Ligges
-project.org 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. Where is code that reproduces the error? Uwe Ligges

Re: [R] Simple plotting errors

2009-05-18 Thread Uwe Ligges
in: plot(c(FeketeJAN[1,2], FeketeFEB[1,2], FeketeMAR[1,2], *through to December* ), type="l") Uwe Ligges Many thanks for any advice, Steve _ [[elided Hotmail spam]]

Re: [R] Concatenating two vectors into one

2009-05-18 Thread Uwe Ligges
quot;6")) i want to combine them into a single vector z as A1, B2, C3 and so on. z<-x*y is not working, i tried several others function, but did not get to the solution. Homework? Anyway, see ?paste. Uwe Ligges Thanks for your help, Henning __

Re: [R] Parsing configuration files

2009-05-18 Thread Uwe Ligges
Marie Sivertsen wrote: Dear list, Is there any functionality in R that would allow me to parse config files? Which kind of config files? R has read.dcf, for example. Uwe Ligges I have trie ??config and apropos('config') without succes, and also search the R package site.

Re: [R] Simulation from a multivariate normal distribution

2009-05-18 Thread Uwe Ligges
" ?replicate Uwe Ligges [[alternative HTML version deleted]] __ R-help@r-project.org 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 comm

Re: [R] Connection to Microsoft SQL Server

2009-05-18 Thread Uwe Ligges
be asked for username and password given you haven't specified it with the DSN in your Windows settings. Uwe Ligges Many thanks for your help! Me. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://st

Re: [R] Runtime Error! Keep on happening while using amap, anacor and ca pckg

2009-05-18 Thread Uwe Ligges
ic(dat)) with Package: amap Version: 0.8-2 Date: 2007-10-03 under R version 2.9.0 Patched (2009-04-27 r48414) OS: Windows XP Pro 32-bit, SP3 Best wishes, Uwe Ligges Uwe Ligges wrote: Ana Kolar wrote: Hi there dear R users, Does anyone have any idea what the follow

<    2   3   4   5   6   7   8   9   10   11   >