Re: [R] DICOM package wont read my DICOM files

2006-05-12 Thread Uwe Ligges
can generate a small example file that causes the same error and helps the maintainer to see what is going on. Uwe Ligges TIA, Chris __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] (no subject)

2006-05-11 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: Good morning, i'm drawing a barplot (data are stored in a matrix,nrow=3,ncol=10). So i get 10 groups each containing 3 sub-bars. I need to change the range of the y-axis when i plot respectively the first and the other two sub-bars in each group. I can't manage.

Re: [R] barplot's axis range; was: (no subject)

2006-05-11 Thread Uwe Ligges
Uwe Ligges wrote: [EMAIL PROTECTED] wrote: Good morning, i'm drawing a barplot (data are stored in a matrix,nrow=3,ncol=10). So i get 10 groups each containing 3 sub-bars. I need to change the range of the y-axis when i plot respectively the first and the other two sub-bars in each group

Re: [R] draw a graphic using segments to represent data

2006-05-10 Thread Uwe Ligges
Wang, Xuetao wrote: Hello, I'd like to draw a graphic using different color line segments to represent microarray data. It simply likes this: Data=cbind(c(1, 2, -1, 3, -2.2), c(1, 3, -1, -1.8, 4)) The first col No represents y'axis position (negative down and positive up). The

Re: [R] transposing a big data file

2006-05-10 Thread Uwe Ligges
(transpose) turns out 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 the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] problems with optimize (again)

2006-05-10 Thread Uwe Ligges
. How can I get the minimum and objective back from the nested function f, as well as the value to be minimised? Use optim(). Uwe Ligges I hope this makes sense and I apologise for the lack of reproducible code. If it will help I can include that in a further e-mail. Thanks Tom

Re: [R] Convert Text File Data into *.RData

2006-05-09 Thread Uwe Ligges
file Data into *.RData* which i can use as a dataset/data.matrix whereby i can use it for clusplot. I think you should assign it to a value and simply use it: DataES - read.table(c:\\DataES.txt) foo(..., DataES, ...) If you really want to generate a file in the Rdata format, see ?save. Uwe

Re: [R] installing the dependency

2006-05-09 Thread Uwe Ligges
:::menuInstallPkgs() --- Please select a CRAN mirror for use in this session --- also installing the dependencies 'acepack', 'fBasics', install.packages(..., dependencies = TRUE) Uwe Ligges Please give me some hints. I am sorry if the question had been asked. Thanks in advanced

Re: [R] devide data into decile

2006-05-09 Thread Uwe Ligges
it? For example, the result of cut() as a new variable to the data.frame and afterwards split() the data.frame by the resulting factor. Uwe Ligges __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] 2.3.0 problems

2006-05-09 Thread Uwe Ligges
Please reinstall all your packages, e.g.: update.packages(checkBuilt = TRUE) Uwe Ligges Christian Hoffmann wrote: Hi, Since the installation of R-2.3.0 I have the following problems: 1. Startup .First() produces -- Started in /home/woodstock/hoffmann

Re: [R] R and Java

2006-05-09 Thread Uwe Ligges
and will change to http://cran.r-project.org/bin/windows/contrib/2.3/rJava_0.4-2.zip due to an update within 12 hours ... Uwe Ligges (The capitalization can cause this to sort in unexpected ways, so you can miss it in a list.) Do they have their own list serves, please? SJava is part

Re: [R] (sans objet)

2006-05-08 Thread Uwe Ligges
- or adding it to the PATH, if it already is installed? 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

Re: [R] Making R talk to Win/OpenBUGS in Linux (again)

2006-05-05 Thread Uwe Ligges
the discussion private from here. Uwe Ligges The only dicey part here is that the user might save the model in the wrong directory, but I don't see what prevents that with the current advice in bugs I suggest this because it allows the creation of one file working examples in R2WinBUGS

Re: [R] Outputing dataframe or vector from within a user defined function

2006-05-05 Thread Uwe Ligges
Farrel Buchinsky wrote: Uwe Ligges [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Simply speaking, the last value of a function is returned. You can also explicitly call return(). You have to assign the value to a new variable when you call the function. Example: I read your

Re: [R] need help in building an R package with Fortran source

2006-05-05 Thread Uwe Ligges
packages is described in the manual Writing R Extensions. Uwe Ligges Thanks a lot Meinhard Ploner __ 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

Re: [R] How can I call a function from within another funcion?

2006-05-05 Thread Uwe Ligges
or imported namespaces. Uwe Ligges Many thanks - http://login.yahoo.com/config/mail?.intl=gr [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https

Re: [R] function to check if an object is present, and if not, load it from my hard drive

2006-05-05 Thread Uwe Ligges
r user wrote: I want to check if an object (dataset, vector, etc) is “present”. If it is present, I will do nothing. If it is not present, I will load it from my hard drive. Is there function to determine if an object is present? Guess its name: exists() Uwe Ligges

Re: [R] large data set, error: cannot allocate vector

2006-05-05 Thread Uwe Ligges
have one column... 4. 10^7 needs 10 times what is needed for 10^6. Hence comparing 10^6 and 10^7 is quite a difference. Uwe Ligges reads in and performs summary() on the 10^6 set just fine. However, on the 10^7 set, R halts with the error. My hunch is that somewhere there's an setting

Re: [R] New-user support package - suggestions?

2006-05-04 Thread Uwe Ligges
for some more promising projects... Just my first thoughts, just go on with your project if you are convinced. Best, 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

Re: [R] Making R talk to Win/OpenBUGS in Linux (again)

2006-05-04 Thread Uwe Ligges
. Will be fixed for the next release. We should also add some option to disable running bugs.update.settings() which really requires write access in the WinBUGS directory. Uwe Ligges pj __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] Math expressions in pie chart labels?

2006-05-03 Thread Uwe Ligges
and use it: labels = expression( = 0.66, == 0.33, = -0.33, = -0.66) Uwe Ligges Joh __ 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] cannot use fanny in package cluster

2006-05-03 Thread Uwe Ligges
, dis = dv, ; Fortran function name not in DLL for package cluster Probably the package maintainer forgot to add the dependency on a more recent R version to the package's DESCRIPTION. Much more relevant: You forgot to upgrade your outdated version of R - we have R-2.3.0 these days! Uwe Ligges

Re: [R] Repeating tdt function on thousands of variables

2006-05-03 Thread Uwe Ligges
have to be much more specific: R tdt(Genotype.914186, PGWide, famid, pid, fatid, motid, sex, affected) Error: could not find function tdt Uwe Ligges Clearly I cannot type each locus in one at a time. Instead I want to loop it but am not sure how to do it. I tried lapply but it did not really

Re: [R] how to compute the explained variance?

2006-05-03 Thread Uwe Ligges
- or even your teachers notes on the subject. Uwe Ligges thanks so much, ms - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] How to use a validation set rather than the default cross-validation in rpart() ?

2006-05-03 Thread Uwe Ligges
that optimizes the splits of the tree. Of course you can do so for estimating the misclassification rate (or whatever), but this has nothing to do with rpart() itself Uwe Ligges __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Math expressions in pie chart labels?

2006-05-03 Thread Uwe Ligges
's the problem come from? You are using =2 which is not syntactically correct (you cannot assign the number 2 into a variable without any name), you should rather use ==2 (as documented in ?plotmath). Uwe Ligges It seems that NULL=something is prefered to =something,isn't it? version

Re: [R] Correlation matrix

2006-05-03 Thread Uwe Ligges
me any code for doing this I will be very grateful cor(dat[,-c(1,3)] Uwe Ligges Thanks, Arun [[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] Repeating tdt function on thousands of variables

2006-05-03 Thread Uwe Ligges
Farrel Buchinsky wrote: On 5/3/06, Uwe Ligges [EMAIL PROTECTED] wrote: Looks like you have to be much more specific: tdt() is a function within dgc.genetics. dgc.genetics is a package written by David Clayton and available at http://www-gene.cimr.cam.ac.uk/clayton/software

Re: [R] Listing Variables

2006-05-03 Thread Uwe Ligges
. However with some functions the sapply will not work and it is necessary to supply each variable name to a function (see thread at Repeating tdt function on thousands of variables) vnames - paste(Height, 1:20, sep=.) for(vn in vnames){ doSomethingWith(Data[[vn]]) } Uwe Ligges

Re: [R] Link to useR! 2006 from ww.r-project.org not working

2006-05-03 Thread Uwe Ligges
Pfaff, Bernhard Dr. wrote: I noticed that: http://www.r-project.org/useR-2006/ seems to be inexistent (page not found). Probably lost during the move of CRAN master. For the meantime use http://www.ci.tuwien.ac.at/Conferences/useR-2006/ Uwe Ligges Best, Bernhard Dr. Bernhard

Re: [R] Math expressions in pie chart labels?

2006-05-03 Thread Uwe Ligges
Johannes Graumann wrote: On Tuesday 02 May 2006 23:33, Uwe Ligges wrote: Then please read ?plotmath and use it: labels = expression( = 0.66, == 0.33, = -0.33, = -0.66) Error in lab != : comparison is not allowed for expressions In addition: Warning message: is.na() applied to non

Re: [R] Math expressions in pie chart labels?

2006-05-03 Thread Uwe Ligges
Gabor Grothendieck wrote: On 5/3/06, Uwe Ligges [EMAIL PROTECTED] wrote: Johannes Graumann wrote: On Tuesday 02 May 2006 23:33, Uwe Ligges wrote: Then please read ?plotmath and use it: labels = expression( = 0.66, == 0.33, = -0.33, = -0.66) Error in lab != : comparison

Re: [R] Making R talk to Win/OpenBUGS in Linux (again)

2006-05-03 Thread Uwe Ligges
Finally fixed for the next release - and will also include the bugsLog() stuff as well. Best, Uwe Gregor Gorjanc wrote: Hello Paul, thank you very much for this report. You caught a bug in R2WinBUGS that was introduced by me. I added support for winepath in 1.1-1 version. Since I switch

Re: [R] Making R talk to Win/OpenBUGS in Linux (again)

2006-05-02 Thread Uwe Ligges
are made by the OpenBUGS developers, OpenBUGS will not run natively in FC5. The person who really knows is Andrew Thomas (CCing now). Why do people not ask him rather than speculating? Uwe Ligges Manuel On Mon, 2006-05-01 at 13:38 -0500, Paul Johnson wrote: Dear Jun: How about telling us

Re: [R] moving/copy objects between work space

2006-05-02 Thread Uwe Ligges
a considerable amount of time to reproduce an object, save this object with save() explicitly and use load() in your code. Uwe Ligges Thanks! Anne [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https

Re: [R] How to write % before superscript?

2006-05-02 Thread Uwe Ligges
) Uwe Ligges Best regards, Thomas Larsen [[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

Re: [R] R 1.0.7.1 for Linux Suse 10.0

2006-05-01 Thread Uwe Ligges
Christian Hager wrote: Hello to everyone, Where can I find a Version 1.0.7.1 of R for Suse Linux 10.0. Current R version is 2.3.0, version 1.0.7.1 never existed. Uwe Ligges __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] Making R talk to Win/OpenBUGS in Linux (again)

2006-05-01 Thread Uwe Ligges
for the patches. Best, Uwe Ligges # An example model file is given in: model.file - system.file(package = R2WinBUGS, model, schools.txt) # Let's take a look: file.show(model.file) # Some example data (see ?schools for details): data(schools) schools J - nrow

Re: [R] problem installing Econometrics view

2006-05-01 Thread Uwe Ligges
Brian Quinif wrote: When I try to install hte Econometrics view I get the following error: CRAN task view Econometrics not available in: install.views(Econometrics) Maybe you have not set a CRAN mirror that has the views mirrored? What does getOptions(repos) tell you? Uwe Ligges I

Re: [R] Making R talk to Win/OpenBUGS in Linux (again)

2006-05-01 Thread Uwe Ligges
the bugs.so under Linux, AFAIK. Hence we have to stay with R2WinBUGS/rbugs there for some time. Under Windows, I do not use R2WinBUGS anymore, but some people are still really keen on it, hence we have not withdrawn the support so far. Uwe Ligges Looking forward to hear from you. -- Lep

Re: [R] par(mfror=c(1,2))

2006-04-28 Thread Uwe Ligges
Another approach is to use the framework provided by package grid. If you want to use R base graphics, you might want to look at package gridBase as well. BTW: There is the book on R Graphics by Paul Murrell ... Best, Uwe Ligges Gavin Simpson wrote: On Fri, 2006-04-28 at 10:07 +0200, Stefan

Re: [R] Break into Parts

2006-04-28 Thread Uwe Ligges
sumanta basak wrote: Hi R-Experts, I have a vector of length 72. I want to break it into 12 parts and want to take standerd deviation of each group. Please help me in this regard. x - 1:72 apply(matrix(x, ncol=12), 2, sd) Uwe Ligges Thanks, Sumanta

Re: [R] Is there a way....

2006-04-26 Thread Uwe Ligges
and source() your function rather than using the fix() function. Uwe Ligges Thanks. Levent TERLEMEZ. __ 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

Re: [R] Monitor() in R2WinBUGS

2006-04-23 Thread Uwe Ligges
: Please read the title of that help page: ... - intended for internal use only hence it is hidden in the package's Namespace and has no examples. If you really want to use it, you can get it by: R2WinBUGS:::monitor(sims) Uwe Ligges monitor(sims) Error: couldn't find function monitor

Re: [R] how to convert 450 columns in a dataframe from numberic to character, but leave other columns unchanged?

2006-04-22 Thread Uwe Ligges
for further calculation. How to resolve this problem? For your data.frame dat: cn - paste(X, 1:450, sep=) dat[,cn] - sapply(dat[,cn], as.character) Uwe Ligges Thank you so much! Zhongmiao wang __ R-help@stat.math.ethz.ch mailing list https

Re: [R] plotting order in a barchart.: two problems

2006-04-22 Thread Uwe Ligges
on a horizontal chart. However the plotting order is , [,3] [,2] [,1]. Hmm, works for me in the correct order at once: barplot(X, beside = TRUE) But maybe you want to show us some reproducible code ... Uwe Ligges I also am having a problem getting the rows to plot on a vertical chart

Re: [R] Feeding a sequence to a function

2006-04-22 Thread Uwe Ligges
] R2w[i,j] [EMAIL PROTECTED] } } 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

Re: [R] factor levels on import

2006-04-22 Thread Uwe Ligges
6 4 3 7 4 3 8 4 3 1. R treads each factor separately 2. R cannot know the levels, in particular not that you want to shift the representation. = you have to do the job more or less manually Uwe Ligges I'm sure there's a way to lapply or some such, but haven't broken the code. I'm

Re: [R] Thousands Separator

2006-04-19 Thread Uwe Ligges
function but a lattice graphics. Uwe Ligges Any help would be appreciated. Thanks, David --- David Feldman The Taylor Feldman Group, LLC www.taylorfeldman.com (530) 400-5470 __ R-help

Re: [R] scatterplot3d: fractionary xrange

2006-04-19 Thread Uwe Ligges
as expected (a known but unfixed bug). Due to the design, it is really hard to fix this one. Good patched are welcome, of course. Uwe Ligges Thanks a lot as usual -a- Andrea Valle DAMS - Facoltà di Scienze della Formazione Università degli Studi di Torino http

Re: [R] adding lines to scatterplot3d

2006-04-18 Thread Uwe Ligges
andrea valle wrote: Thanks a lot, I having it working. Is it possible to have dashed or dotted lines? I wasn't able to find a fitting type. All as in standard plot functions: lty=dotted or lty=dashed should do the trick. Uwe Ligges Best -a- On 18 Apr 2006, at 14:42, Dieter

Re: [R] installation of package randomForest failed

2006-04-18 Thread Uwe Ligges
your version of R to R-2.2.1 or even R-2.3.0 beta (to be released next monday) and help testing. Uwe Ligges I run in this problem for the first time. Until now, I used to install new packages by copying the*.zip-file to the library-directory in the rw2011-directory. This seam not to work

Re: [R] png overwrites upper/lower case filenames

2006-04-11 Thread Uwe Ligges
with the same letters? You cannot on Windows. This is an OS but not an R issue. Uwe Ligges R version 2.2.1, 2005-12-20, i386-pc-mingw32 Regards, Timo __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] problem with RWinEdt

2006-04-11 Thread Uwe Ligges
mode. Best, Uwe Ligges Many thanks Christian -- Dr. Christian Gold, PhD http://www.hisf.no/~chrisgol __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Legend in the outer margin

2006-04-10 Thread Uwe Ligges
of that plotting region, e.g. with x corrdinates at par(usr)[2] + epsilon and y coordinates at mean(par(usr)[3:4]) Uwe Ligges legend(legend=c(2h-opt Exact,1-shift Exact,2p-opt Exact), lty=c(solid,dashed,dotdash),lwd=c(2,2,2),col=c(red,green,black), bty=n,cex=0.8) Thanks in advance

Re: [R] for bclust in package e1071

2006-04-07 Thread Uwe Ligges
() with bclust(). The cluster function must accept an argument centers in order to work. Uwe Ligges Thank you! [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] cclust causes R to crash when using manhattan kmeans

2006-04-07 Thread Uwe Ligges
to report the cclust behaviour. Please report it to its mainatiner (CCing). Uwe Ligges R version 2.2.1, 2005-12-20, i386-pc-mingw32 Cheers, Timo __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] problem with statetable function in msm

2006-04-07 Thread Uwe Ligges
could also say the sofware product X returns incorrect results. This is probably true for most software products I know, including R. Uwe Ligges __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] rpart.predict error--subscript out of bounds

2006-04-07 Thread Uwe Ligges
of the root only. Uwe Ligges but when I changes the parameter of type into 'class' it works well predict(fit, Data[1,-c(1:2)],type='class') [1] HTLV_Carrier Levels: HAM_TSP HTLV_Carrier Leukemia Normal Could anyone tell me what is the problem with it? Thanks very much in advance

Re: [R] R2WinBUGS error

2006-04-06 Thread Uwe Ligges
like there was an error in WinBUGS: R cannot access the file, because WinBUGS has not written it before. You can use bugs(.., debug = TRUE) Then WinBUGS stays open and you can look at its error messages in order to correct the code/data/inits or whatever Uwe Ligges I'm

Re: [R] package docs: examples format

2006-04-05 Thread Uwe Ligges
that relates to the whole package rather than to a single function and contains the examples? Each function's help page can point with a \link{} to that help page. Uwe Ligges Thanks, Sarah -- Sarah Goslee http://www.stringpage.com [[alternative HTML version deleted

Re: [R] Maximum Likelihood Estimation

2006-04-04 Thread Uwe Ligges
Andrej Kastrin wrote: Uwe Ligges wrote: [EMAIL PROTECTED] wrote: Hi, I would like to know how to configure R so that I can enter some values and compute the Muximum likelihood estimation of my data. Maximum likelihood estimation of what? I do not know the definition of Maximum

Re: [R] do.call method within namespace

2006-04-03 Thread Uwe Ligges
)) didn't work. Nor did the following: do.call(mypackage::foo, list(1, 2, 3)) There some other means to do this without loading the package via library method? do.call(getFromNamespace(foo, mypackage), list(1, 2, 3)) where mypackage is a namespace... Uwe Ligges

Re: [R] Maximum Likelihood Estimation

2006-04-03 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: Hi, I would like to know how to configure R so that I can enter some values and compute the Muximum likelihood estimation of my data. Maximum likelihood estimation of what? I do not know the definition of Maximum likelihood estimation of [...] data. Uwe Ligges

Re: [R] about arguments in bclust

2006-04-03 Thread Uwe Ligges
Linda Lei wrote: Hi All, Just want to make sure, in function bclust, do the following argument only have one option? In order to get better help you might want to tell us what bclust is? Perhaps a function in some contributed package? Uwe Ligges argument dist.method has

Re: [R] Problem with help() respectively ?

2006-04-01 Thread Uwe Ligges
? What about help(help, chmhelp=FALSE, htmlhelp=FALSE, offline=FALSE) Does this work fo you? Uwe Ligges Thanks for your help, Werner __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] rowVars

2006-04-01 Thread Uwe Ligges
. Uwe Ligges Is there a good work-around? __ 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] kmeans: did not converge in 10 iterations

2006-03-30 Thread Uwe Ligges
are using. If the starting set of centers is chosen well, convergence might happen in a few iterations even for a big matrix, otherwise you might need some more. Uwe Ligges This also happens in bclust. Thank you! [[alternative HTML version deleted

Re: [R] S3 object

2006-03-29 Thread Uwe Ligges
stat stat wrote: hi all, Somewhere I got a phrase - the function returns a S3 object of class hclust - can anyone tell me what is S3 objects? Simply an object with a class attribute. See chapter Object-oriented programming in the R Language Definition manual. Uwe Ligges

Re: [R] warnings

2006-03-29 Thread Uwe Ligges
, it seems to be less important to obtain *exact* p-values and you can ignore the warning. Nevertheless it makes sense to look into your data where the ties come from ... Uwe Ligges thnak you stefan [[alternative HTML version deleted

Re: [R] Plotting a segmented function

2006-03-29 Thread Uwe Ligges
Jacob van Wyk wrote: This might be a trivial question, but I would appreciate if anybody could suggest an elegant way of plotting a function such as the following (a simple distribution function): F(x) = 0 if x=0 =(x^2)/2 if 0x=1 =2x-((x^2)/2)-1 if 1x=2 =1 if x2 This

Re: [R] conflicts Var names

2006-03-29 Thread Uwe Ligges
. data, you can live with it if you are aware of the problem. Uwe Ligges thank you - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] Question about for loop?

2006-03-29 Thread Uwe Ligges
of a list, for example. For further reference what a list is: PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Uwe Ligges Thank You, Andris Jankevics __ R-help@stat.math.ethz.ch mailing list https

Re: [R] help.search(plot)

2006-03-28 Thread Uwe Ligges
ago I would get the information expected. I do not know what happened in the mean time. Any ideas about the problem? Upgrade to less ancient version of R such as R-2.2.1 and be happy. Uwe Ligges Thanks! Sincerely, Jean-Pierre Airoldi

Re: [R] as.matrix and one row

2006-03-28 Thread Uwe Ligges
as you do not tell R the dimensions. Hence matrix(x, byrow = TRUE, ncol = 2, .) should do the trick. Uwe Ligges Regards, Federico Calboli __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Removing columns from a matrix using a list

2006-03-28 Thread Uwe Ligges
= myMatrix[,-mynames] myMatrixEdited - myMatrix[ , !(colnames(myMatrix) %in% mynames)] Uwe Ligges Or I would like to find the column numbers of the names in the list, and use the column numbers to remove the columns in the matrix or data.frame. Peter W

Re: [R] new to the list - problems with non-solid lines in eps export

2006-03-26 Thread Uwe Ligges
exclude it for further reference). 2. Print the resulting postscript physically rather than looking at it on the screen. Omitting some points might be caused by some settings of your postscript viewer. Uwe Ligges Gregor P.S.: The dotted lines are not fuzzy, but stretched in the way

Re: [R] VR (looking for MASS) on OS X

2006-03-26 Thread Uwe Ligges
versions of R. A precompiled binary is available on CRAN, simply type install.packages(VR, type=mac.binary) and it will be installed, if you have a runnig internet connection. Uwe Ligges __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] how to remove the framebox out the 3D scatter plot?

2006-03-26 Thread Uwe Ligges
=transparent) Uwe Ligges Thanks in advance! Best wishes, Jinsong __ 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] range and bwplot

2006-03-26 Thread Uwe Ligges
vincent david wrote: Hi, is there an equivalent to the 'range' option of the boxplot function to be found in the bwplot function of the trellis package? Please read the help files. ?bwplot points you to ?panel.bwplot which explains that you should use argument coef. Uwe Ligges regards

Re: [R] Matrix elements

2006-03-26 Thread Uwe Ligges
Gabor Grothendieck wrote: Try this: which(xx[,1] 0 xx[,2] 0) ... or more generally for an arbitrary number of columns: which(apply(xx 0, 1, all)) Uwe Ligges On 3/26/06, Akkineni,Vasundhara [EMAIL PROTECTED] wrote: Hello all, I have a matrix object, xx given as below

Re: [R] memory limit on linux

2006-03-25 Thread Uwe Ligges
a process can take. If you are on 64-bit completely and have invested some coins in memory modules, the limit may be really huge. Uwe Ligges Thanks, N __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Subdirectory 'data' contains no data sets.

2006-03-25 Thread Uwe Ligges
. ^ have tried .rda format too, same result). There is also a myData.Rd in Do you have used save() to produce this file? If so, this is really strange. Yo might want to send the file in a private message. Uwe Ligges the man subdirectory. If I remove the .Rd and the data

Re: [R] install local packages

2006-03-23 Thread Uwe Ligges
). Currently, CRAN has mclust_2.1-11.zip in its binary section for R-2.2.x for Windows. Hence simply type install.packages(mclust) with a running internet connection or download the recent version from CRAN. Uwe Ligges 2. using function install.packages. the command I use

Re: [R] R 2.2.1: install packages

2006-03-23 Thread Uwe Ligges
your network settings and your firewall / proxy stuff. Uwe Ligges Any suggestions? Hannu Kahra [[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] Create graphs from text console

2006-03-23 Thread Uwe Ligges
postprocessing). Uwe Ligges Thanks, Rainer __ 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] Fixed legend in vcd/mosaicplot

2006-03-21 Thread 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 Example: plot(1:10) legend(par(usr)[2], par(usr)[4], legend=Example, pch=1, xjust=1) Uwe Ligges

Re: [R] Replies on this list [was: removing NA from a data frame]

2006-03-21 Thread Uwe Ligges
, array or data frame Uwe Ligges not a generic method either. Even if it was a class method, we should not expect a new user to be very familiar with R (both!) class systems from the start. What a new user might think, reading the documentation? Sam Steingold is surely an experimented

Re: [R] hist-data without plot

2006-03-20 Thread Uwe Ligges
Gottfried Gruber wrote: hello, i need the data from hist() but i do not want the plot. e.g. z=hist(data)$counts #returns absolute frequency but when i execute this command the plot occurs also. is it possible to suppress the plot? Yes, as mentioned in ?hist Uwe Ligges many

Re: [R] Surface plot - 3d

2006-03-20 Thread Uwe Ligges
(test.pdf, width=25, height=25, paper=special) wireframe(z ~ x * y, data = g, groups = gr, scales = list(arrows = FALSE, at=1:145, cex=0.2)) dev.off() open the pdf file and zoom in. Uwe Ligges Thank you!! ~Tanya -Original Message- From: Uwe Ligges [mailto:[EMAIL

Re: [R] numerical values in expressions

2006-03-19 Thread Uwe Ligges
[3], digits=2) plot(1:10, main = substitute(a * e^b * x + d, list(a=a, b=b, d=d))) Uwe Ligges Thanks, Stephan __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Information Window - Warning Message

2006-03-18 Thread Uwe Ligges
. version number)? Uwe Ligges best Mathias [[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

Re: [R] The R fork

2006-03-18 Thread Uwe Ligges
to see your contribution. Uwe Ligges Pau __ 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] Wireframe axis labels

2006-03-14 Thread Uwe Ligges
~ x * y, data = g, groups = gr, scales = list(arrows = FALSE, at=1:145)) Uwe Ligges Thanks for any help! -Tanya [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] how to make a contour plot in R?

2006-03-14 Thread Uwe Ligges
Arnau Mir Torres wrote: Uwe Ligges wrote: Arnau Mir Torres wrote: Hello. I am an nxn data frame in the variable frame. I want to make a contour plot with it. That is, I want to plot a square of dimensions [1,n]x[1,n] with the gray level of square [i,i+1]x[j,j+1] equal to frame[i

Re: [R] Generating a PostScript graphics under Windows

2006-03-14 Thread Uwe Ligges
thing, that I make wrong. Probably the file already exists and is write protected for some reason we cannot know. Uwe Ligges Thanks in advance Sigbert Klinke __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] newline in plotmath expressions

2006-03-14 Thread Uwe Ligges
. Uwe Ligges Thanks for you help Pascal __ 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] problem with optim: (list) object cannot be coerced to 'double'

2006-03-14 Thread Uwe Ligges
to supply a numerical vector ... Yes, it is. Please type str(parameters) an tell us the result. Uwe Ligges Thnaks a lot for any help! Stephane

Re: [R] FW: RE: .First functin

2006-03-13 Thread Uwe Ligges
and printout What is option length doing? I do not know it. x11() # for graphics par(pch = +) # plotting character source(file.path(U:\WORKAREA\R\Library\Bayesian_inf_Marketing)) So we are on Windows? Please see the R for Windows FAQs how to specify paths. Uwe Ligges # my personal

Re: [R] can I use R functions in BRUGS to define a complex likelihood?

2006-03-13 Thread Uwe Ligges
that there is an interface package). Please ask on the BUGS mailing list. Uwe Ligges if not, how can I deal with complex likelihoods in BRUGS, there is no integrate function in BRUGS? is there any possibility to this without writing my own sampler in R? Thanx, Johannes [[alternative HTML

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