[R] unique combinations

2011-12-21 Thread Antje Niederlein
Hi there, I have a vector and would like to create a data frame, which contains all unique combination of two elements, regardless of order. myVec <- c(1,2,3) what expand.grid does: 1,1 1,2 1,3 2,1 2,2 2,3 3,1 3,2 3,3 what I would like to have 1,1 1,2 1,3 2,2 2,3 3,3 Can anybody help? _

[R] access sublists by a variable

2011-11-16 Thread Antje Gruner
irst element. What is the correct syntax to access those elements with the help of a variable? Thanks in advance Antje __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-projec

Re: [R] How to find position in bin-data?

2011-03-19 Thread Antje Niederlein
Thanks a lot! That's what I was looking for :-) A On 19 March 2011 13:56, Duncan Murdoch wrote: > On 11-03-19 8:18 AM, Antje Niederlein wrote: >> >> Hi there, >> >> probably there is a very simple solution, but I cannot think of one... >> >>

[R] How to find position in bin-data?

2011-03-19 Thread Antje Niederlein
ue falls in (or equals the lower bin break). In the example case, I'd like to get: c(1,3,2,2,4,1,5) How would you solve it? Antje __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gu

Re: [R] model fine, predict gives an error

2011-03-16 Thread Antje Niederlein
Yes, I did send an attachment - but I forgot that attachments might be removed, no? Here it is: http://rapidshare.com/files/452815636/drmData.RData Antje On 16 March 2011 12:19, Mike Marchywka wrote: > > > > > > > > >>

Re: [R] model fine, predict gives an error

2011-03-16 Thread Antje Niederlein
Anybody who can help me with this issue? On 15 March 2011 14:15, Antje Niederlein wrote: > Hi there, > > I try to model some dose response curves (drc-package). In most cases > it is fine but now I got some data which produces me the following > error: > > load("drm

[R] model fine, predict gives an error

2011-03-15 Thread Antje Niederlein
response model works but the prediction fails? Anything I can do in this case? Antje __ 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 prov

Re: [R] Console output

2011-02-21 Thread Antje Niederlein
Thanks for every helpful answer :-) ! I thought it was something "easier" but as long as there is a solution it's fine for me. Ciao, Antje On 21 February 2011 13:12, Martin Maechler wrote: >>>>>> Ted Harding >>>>>>     on Mon, 21 Feb 2011

[R] Console output

2011-02-21 Thread Antje Niederlein
nybody help? Antje __ 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] fitdistr question

2011-02-11 Thread Antje Niederlein
things and I'm not sure whether I got it right how to find the ML-function of a more complex distribution... Antje On 11 February 2011 10:14, Ingmar Visser wrote: > Antje, > > On Fri, Feb 11, 2011 at 9:58 AM, Antje Niederlein > wrote: >> >> Hi Ingmar, hi Dennis, &g

Re: [R] fitdistr question

2011-02-11 Thread Antje Niederlein
ian, so I'm not sure whether this method is the one to choose... If I estimate lambda with mle2() and use the RSS as criteria to minimize, my lambda is much smaller that with fitdistr(). I'm happy about any suggestion! Antje On 11 February 2011 09:16, Ingmar Visser wrote: > The

[R] fitdistr question

2011-02-10 Thread Antje Niederlein
e mle() of stats4 package or mle2() of bbmle package, I would have to write the function by myself which should be optimized. But what shall I return? -sum((y_observed - y_fitted)^2) ? Any other suggestions or comments on my solution? Antje __ R-h

Re: [R] question mle again

2011-02-08 Thread Antje Niederlein
ke in how to use mle() correctly. I think, I'll look into Bens mle2() method and figure out whether this is a more elegant way :-) Ciao, Antje On 7 February 2011 21:39, Ben Bolker wrote: > Antje Niederlein yahoo.de> writes: > >> >> A few day ago, I was looking f

[R] question mle again

2011-02-07 Thread Antje Niederlein
x <- freqTab$x y <- freqTab$freq / sum(freqTab$freq) cat("x in lapply", x,"\n") fit <- mle(ll) coef(fit) }) Can anybody help? Antje __ R-help@r-project.org mailing list https://stat.ethz.

[R] mle question

2011-02-07 Thread Antje Niederlein
Hello, is there somebody who can help me with my question (see below)? Antje > On 1 February 2011 09:09, Antje Niederlein wrote: >> Hello, >> >> >> I tried to use mle to fit a distribution(zero-inflated negbin for >> count data). My call is very simple: &

Re: [R] mle question

2011-02-07 Thread Antje Niederlein
Hello, is there somebody who can help me with my question (see below)? Antje On 1 February 2011 09:09, Antje Niederlein wrote: > Hello, > > > I tried to use mle to fit a distribution(zero-inflated negbin for > count data). My call is very simple: > > mle(ll) >

[R] mle question

2011-02-01 Thread Antje Niederlein
req / sum(freqTab$freq) cat("x in lapply", x,"\n") fit <- mle(ll) coef(fit) }) Can anybody help? Antje __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Warning with mle

2011-01-28 Thread Antje Niederlein
right criteria to minimize on (so far I use the sum of squared errors). May it make sense to use the pearsons chi-squared test? (Is there any easy way to do it in R?) Ciao, Antje __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/list

Re: [R] Warning with mle

2011-01-28 Thread Antje Niederlein
right criteria to minimize on (so far I use the sum of squared errors). May it make sense to use the pearsons chi-squared test? (Is there any easy way to do it in R?) Ciao, Antje __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/list

[R] Warning with mle

2011-01-27 Thread Antje Niederlein
> than zero and prop should range from 0 to 1)? Do I have to put it into the ll-function? Is there any general comment on what I'm doing? Antje __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] Calculate mean slope of a function

2010-03-11 Thread Antje Steller
Hallo, hope you can help me with this question: I have calculated a function using f<-smooth.spline(data) and approxfun(f). Now I want to calculate the mean slope of the resulting function. Haven't found the right R command yet, maybe you can give me a hint. Than

[R] Changing style for groups in xyplot

2010-02-24 Thread Antje Steller
uot;, ylab="Riss [%]", auto.key=list(lab=levels(r),columns=3)) Thank you very much, Antje __ 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-gu

Re: [R] explanation for left-side behaviour

2009-12-02 Thread Antje
han a character vector seems to be only in case I want to use the replace functionality instead of just extracting a substring. At least, that is my guess.. Ciao, Antje Don MacQueen wrote: Read the help page for substr(). It says that the first argument should be a character vector. The

[R] explanation for left-side behaviour

2009-12-01 Thread Antje
anybody refer to an explanation for this behaviour? Thanks a lot in advance! Antje values <- factor(c(rep("abc",3), rep("bcd",3), rep("cde",3))) substr(values,2,3) <- ".." substr(as.character(valu

Re: [R] boxplot question

2009-11-23 Thread Antje
Peter Ehlers wrote: If there's been an answer to this, I've missed it. Here's my take. Antje wrote: Hi there, I was wondering if anybody can explain to me why the boxplot ends up with different results in the following case: I have some integer data as a vector and I compa

Re: [R] HTML help missing?

2009-11-23 Thread Antje
Thanks a lot for the hint! Antje Duncan Murdoch wrote: On 20/11/2009 7:11 AM, Antje wrote: Hey there, I'm running R 2.10 on Windows XP (Professional) and I was wondering where the HTML help window disappeared? With earlier versions everything was fine. Now I get only this old-fash

[R] HTML help missing?

2009-11-20 Thread Antje
Hey there, I'm running R 2.10 on Windows XP (Professional) and I was wondering where the HTML help window disappeared? With earlier versions everything was fine. Now I get only this old-fashioned text windows without any links when I type ?some_function Can anybody help me?

[R] boxplot question

2009-11-20 Thread Antje
isker. But why??? Antje "","d1","d2" "1",0.936585365853659,32 "2",0.936585365853659,32 "3",0.936585365853659,32 "4",0.936585365853659,32 "5",0.907317073170732,31 "6",1.08292682926829,37 "7",1.08292682926

Re: [R] mac question

2009-11-04 Thread Antje
Hi Steve, Steve Lianoglou wrote: Hi, On Nov 3, 2009, at 2:41 AM, Antje wrote: Hi there, currently, I've updated R on my Mac (OS X) to version 2.10. I was wondering if I have to install all additional packages again??? In Windows, I just needed to copy the library folder of th

[R] mac question

2009-11-02 Thread Antje
Hi there, currently, I've updated R on my Mac (OS X) to version 2.10. I was wondering if I have to install all additional packages again??? In Windows, I just needed to copy the library folder of the old installation but how does it work with Mac? Can anybody give me a hint?

Re: [R] rbind with different columns

2009-10-20 Thread Antje
Karl Ove Hufthammer wrote: In article <4addc1d0.2040...@yahoo.de>, niederlein-rs...@yahoo.de says... In every list entry is a data.frame but the columns are only partially the same. If I have exactly the same columns, I could do the following command to combine my data: do.call("rbind", myLis

[R] rbind with different columns

2009-10-20 Thread Antje
9608133 1.7463265 0.6493405 29 -0.33022738 1.9510503 -1.7930093 30 -0.62615365 0.7330671 -0.4032405 The only thing I can think about is checking the names of each list entry and adding NA-columns before combining them. Is there any other way to do so? Antje ___

[R] Problems with code containing a for loop

2009-10-09 Thread Antje##
The following code isn't working and we can't figure out why.. letters = c("A","B","C","D","E","F","G","H","I","J") numbers = 1:3 for(i in 1:6){ #6 letters for (j in 1:3) { #3 numbers for (k in -1:1) { #a

Re: [R] Levelplot without margins

2009-09-28 Thread Antje
= 0, right.padding = 0) ) levelplot(..., scales = list(draw = FALSE), colorkey = FALSE, xlab = NULL, ylab = NULL, par.settings = my.padding) But still I have a upper and lower margin (left and right margins are gone) What else do I have to do? Antje Antje wrote: He

Re: [R] Levelplot without margins

2009-09-28 Thread Antje
= 0, right.padding = 0) ) levelplot(..., scales = list(draw = FALSE), colorkey = FALSE, xlab = NULL, ylab = NULL, par.settings = my.padding) But still I have a upper and lower margin (left and right margins are gone) What else do I have to do? Antje Antje wrote: He

[R] Levelplot without margins

2009-09-28 Thread Antje
Hello, I'm not very experienced with lattice and I was wondering whether I get get some hints from you how to create a pure heatmap (using levelplot), without any axis, title, legend, margin at all... I just want to see the coloured squares, nothing else. Any suggestions?

Re: [R] nls - find good starting values

2009-07-14 Thread Antje
of 0.5) I'm not sure if I understand your solution with the quadratic regession model... Maybe my approach is completely wrong but I didn't know any other solution. Anyhow, I've solved the issue so far with the while-construct. Antje bill.venab...@csiro.au wrote: It is not at all cle

[R] nls - find good starting values

2009-07-14 Thread Antje
as wondering whether there is any way to test several start-values as long as nls does not succeed. I would do it with a while construct but maybe there is another approach? Any hint is very welcome! Ciao, Antje __ R-help@r-project.org mailing list

[R] Counting the number of cycles in a temperature test

2009-07-06 Thread Steller, Antje (GQL-LM)
I could also provide the dataset. Antje <> __ 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-con

[R] nls with weights

2009-06-17 Thread Antje
Hi there, I don't have much experience with fitting at all and I'd like to get some advice how to use the "weights"-argument with nls correctly. I have created some data with a sigmoidal curve shape. Each y-Value was generated by the mean of three values. A standard deviation was calculated

Re: [R] Heatmap without levelplot

2009-05-05 Thread Antje
Hi Uwe, thanks a lot for your answer! And thanks a lot to all others helping me with this issue! Uwe Ligges schrieb: Antje wrote: Hi Uwe, I tried to explain my problem with the given example. I don't see any documentation which tells me that the length of "col.regions"

Re: [R] Heatmap without levelplot

2009-05-05 Thread Antje
ow" to "red". I've seen that some values do not get blue or green though they are outliers... I've attached one graph, I've generated - maybe it helps to understand) Any wrong assumption? Ciao, Antje Uwe Ligges schrieb: Antje wrote: Hi there, as I'm not sure t

[R] Heatmap without levelplot

2009-05-05 Thread Antje
lt;- rainbow(5) graph <- levelplot(t(mat[nrow(mat):1, ] ), at = my.at, col.regions = my.col.regions) print(graph) Can anybody help me with some hints or little examples? Antje __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

Re: [R] levelplot question

2009-05-05 Thread Antje
,at[2] ] = color[1] ( at[2],at[3] ] = color[2] ... ( at[n-1],at[n] ] = color[n-1] Please correct me if I'm wrong!!! Antje __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http:

[R] levelplot question

2009-05-04 Thread Antje
according color. I'd like to know, which color to expect from levelplot for a certain datavalue (3.5) Did I explain it somehow clear now? Antje __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do r

[R] levelplot question

2009-05-04 Thread Antje
n me why? (I've checked the length of both vectors and it's parts - this is correct - so 'myThreshold' would get 'lastHeatmapColor' by the same vector position) I'm very confused... Antje __ R-help@r-project.org m

Re: [R] boxplot - margin settings

2009-04-29 Thread Antje
ur new values boxplot(data, las = 2) par(mar = mar.orig) # put the original values back Sarah On Wed, Apr 29, 2009 at 10:06 AM, Antje wrote: Hi there, I'm trying to solve a boxplot problem (should be simple, but I cannot find the solution...): data <- list( "long_name

[R] boxplot - margin settings

2009-04-29 Thread Antje
4)) Why does the margin not change whatever I put there??? With other plots it worked for me, why not in this case? I just want to see the whole label... I'm really sorry if I've missed a very obvious reason for this behaviour. Maybe someone can help me? Ciao, Antje _

Re: [R] Plot with nested x-labels

2009-03-27 Thread Antje
Hi Jim, is this plotrix package version higher than 2.2-7 ? Antje Jim Lemon schrieb: Antje wrote: Hi there, I was wondering wether it is possible to creeate plots with nested lables like in excel? If yes, could anyone provide me the information how to do it? I've attached an image

[R] Plot with nested x-labels

2009-03-27 Thread Antje
Hi there, I was wondering wether it is possible to creeate plots with nested lables like in excel? If yes, could anyone provide me the information how to do it? I've attached an image of an Excel plot to show you, what I'd like to plot with R :-) C

[R] svDialogs

2009-03-16 Thread Antje
Hi there, I was using Open/Save-dialogs from the package svDialogs (SciViews). But now the package has dissapeared? How do I have to set up my R-installation to further use these dialogs??? (beside copying my old packages to the new installation). Ciao, Antje

[R] levelplot help needed

2009-02-27 Thread Antje
-- (I need to put this strange x-labels, because in my real data the values of the x-labels are too long and I just want to display the first 10 characters as label) My questions: * I'd like to start with "Y Label 1" in the upper row (that's a more

Re: [R] Axis-question

2009-02-27 Thread Antje
solved by grouping... (see my next mail) Antje schrieb: Hi there, I was wondering wether it's possible to generate an axis with groups (like in Excel). So that you can have something like this as x-axis (for example for the levelplot-method of the lattice pa

[R] Axis-question

2009-02-27 Thread Antje
Hi there, I was wondering wether it's possible to generate an axis with groups (like in Excel). So that you can have something like this as x-axis (for example for the levelplot-method of the lattice package): --- | X1 | X2 | X3 | X1 | X2 | X3

[R] Statistic community?

2009-02-25 Thread Antje
Hi there, I'm very glad to use the R-help mailing list for R-related question but more and more often I face general statistical problems. Does anyone know by chance a community (mailinglist, forum, ...) where I can ask these kind of questions? I'm glad for any link or hint

Re: [R] R running as a server on windows?

2009-02-11 Thread Antje
my question not primarily bound to this software. Thanks a lot for all answers! Antje Antje schrieb: Nobody can help with this question (or tell me where I can find help) ? Antje schrieb: Hi there, I'm not sure whether this is the right mailing list to put this question... if not,

Re: [R] R running as a server on windows?

2009-02-10 Thread Antje
Nobody can help with this question (or tell me where I can find help) ? Antje schrieb: Hi there, I'm not sure whether this is the right mailing list to put this question... if not, please tell me where I can find help. I have a spare dual-core machine which run Windows XP Professiona

[R] R running as a server on windows?

2009-02-09 Thread Antje
ting Knime (knime.org) to set up data analysis workflows. They have some nodes to execute R on a remote machine. Is it possible to run R on this windows machine, so that I can call it from somewhere else? Antje __ R-help@r-project.org mailing

Re: [R] need some lattice help

2009-01-27 Thread Antje
I guess, I got the answer. (http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f) Ciao, Antje Antje schrieb: Hello everybody, I just started with lattice plots and I was wondering why it behaves different than expected. If I generated multiple

[R] need some lattice help

2009-01-27 Thread Antje
. Now, I tried the same with "levelplot" (instead of "plot") and I see all windows are created but the plots are only drawn in one window, one on top of the other... Can anybody give me a hint, why it behaves like this and what should I

Re: [R] heatmap with levelplot

2009-01-26 Thread Antje
lt;- seq(thr[1], thr[2], step) limit <- ifelse(max(my.mat) < thr[2] + step, max(my.mat) + step, max(my.mat)) up <- seq(thr[2] + step, limit + step, step) my.at <- c(lp,mp,up) my.col.regions <- c(rep("green", length(lp)), colorFun(length(mp)), rep("blue", length(up)

Re: [R] heatmap with levelplot

2009-01-26 Thread Antje
lt;- seq(thr[1], thr[2], step) limit <- ifelse(max(my.mat) < thr[2] + step, max(my.mat) + step, max(my.mat)) up <- seq(thr[2] + step, limit + step, step) my.at <- c(lp,mp,up) my.col.regions <- c(rep("green", length(lp)), colorFun(length(mp)), rep("blue", length(up

[R] heatmap with levelplot

2009-01-26 Thread Antje
#x27;t know how to handle the extrem values... Can anybody help? Antje __ 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] merging several dataframes from a list

2009-01-21 Thread Antje
this will do it for now! Thank you! On Wed, Jan 21, 2009 at 6:19 AM, Antje <mailto:niederlein-rs...@yahoo.de>> wrote: Hi there, I have a list of dataframes (generated by reading multiple files) and all dataframes are comparable in dimension and column names. They a

Re: [R] merging several dataframes from a list

2009-01-21 Thread Antje
call(cbind, mylist) ALL <- ALL[regexpr("data", names(ALL)) > 0] names(ALL) <- sub("[.].*", "", names(ALL)) ALL df1 df2 df3 1 2 6 9 2 6 2 3 3 3 9 6 4 1 7 2 5 9 5 1 On Wed, Jan 21, 2009 at 3:19 AM, Antje wrote: Hi there, I have

[R] merging several dataframes from a list

2009-01-21 Thread Antje
have it like this: pos df1 df2 df3 1 A2 6 9 2 B6 2 3 3 C3 9 6 4 D1 7 2 5 E9 5 1 How, can I realize it? (The list, I'm working with has not just 3 data frames like given in my example, so I need to automize it) Antje __

Re: [R] from matrix to data.frame

2009-01-20 Thread Antje
Wow, there are a lot of possibilities... thank you all very much!!! I guess, I'll go for "as.data.frame.table", because it's one line and does exactly what I want :-) Ciao, Antje Antje schrieb: Hello, I have a question how to reshape a given ma

[R] from matrix to data.frame

2009-01-20 Thread Antje
7 5 E 25 How would you solve this problem in an elegant way? Antje __ 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 pro

Re: [R] Find all numbers in a certain interval

2008-12-17 Thread Antje
Thanks a lot for every answer I got! I could solve my problem! Greg, your proposal seems to be quite useful for me :-) Thank you. Ciao, Antje Antje schrieb: Hi all, I'd like to know, if I can solve this with a shorter command: a <- rnorm(100) which(a > -0.5 & a < 0.5) #

Re: [R] Find all numbers in a certain interval

2008-12-16 Thread Antje
Hi David, thanks a lot for your proposal. I got a lot of useful hints from all of you :-) David Winsemius schrieb: It's not entirely clear what you are asking for, since which(within.interval(a, -0.5, 0.5)) is actually longer than which(a > -0.5 & a < 0.5). Right but in case 'a' is someth

Re: [R] Find all numbers in a certain interval

2008-12-16 Thread Antje
#-- a <- rnorm(100) # it's simply more human readable if I can write which( isIn( c(-0.5, 0.5), a) ) # instead of which( a > -0.5 & a < 0.5 ) Thanks to baptiste! So there is no method available doing this and I have to define this by myself. That's all I

[R] Find all numbers in a certain interval

2008-12-16 Thread Antje
mands... I'd like to have something like: which(within.interval(a, -0.5, 0.5)) Is there anything I could use for this purpose? Antje __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

Re: [R] Legend and Main Title positioning

2008-12-08 Thread Antje
Thank you very much for your help! That code does exactly what I was looking for ( I don't have experience with lattice yet ) Ciao, Antje [EMAIL PROTECTED] schrieb: layout(matrix(c(1,2,3,4), nrow = 2, byrow = TRUE)) plot(rnorm(100)) plot(rnorm(200)) plot(rnorm(300)) plot(rnorm(400))

Re: [R] levels update

2008-12-05 Thread Antje
Thanks a lot!!! the "drop" thing was exactly what I was looking for (I already used it some time ago but forgot about it). Thanks to everybody else too. Antje Prof Brian Ripley schrieb: On Fri, 5 Dec 2008, jim holtman wrote: try this: df <- data.frame(factor(c("a&quo

[R] levels update

2008-12-05 Thread Antje
ot;,"X2","X3") my.sub <- subset(df, X1 == "a" | X1 == "b") levels(my.sub$X1) # still gives me "a","b","c", though the subset does not contain entries with "c" anymore I guess, the solution is rather simple, but I

[R] Legend and Main Title positioning

2008-12-05 Thread Antje
t and generate a common title. How can I do that? Antje __ 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-cont

Re: [R] Colors in barplot

2008-12-04 Thread Antje
Hi Benjamin, thanks for the hint. In barplot.default I found "grey.colors(nrow(height))" :-) (I had the same problem with the help file for grey.colors) Ciao, Antje Nutter, Benjamin schrieb: I believe the defaults in barplot are found using grey.colors{GrDevices}. ?grey.colors

[R] Colors in barplot

2008-12-04 Thread Antje
Hello, Can anybody help me to find out which colors are used automatically when calling barplot (e.g. 3 series beside each other will get different gray values). I want to apply a legend but I don't know the colors used... Antje __ R-h

Re: [R] Switch language

2008-12-03 Thread Antje
Hello Annette, that explains everything... Thank you! I just thought having an English version of Windows would be enough but indeed my Regional and Language-Setting are set to German... Ciao, Antje Annette Heisswolf schrieb: Hei, in the FAQ on R for Windows it says: 3.4 I selected

[R] Switch language

2008-12-03 Thread Antje
dy give me a hint? (Error-Messages in German are not easy to get a solution for...) Antje __ 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 p

Re: [R] Question to regular expressions

2008-12-02 Thread Antje
Thanks a lot again to all of you!!! Antje Antje schrieb: Hi Gabor, it works! Thank you very much! But I still don't understand the difference between [0-9] and [:digit:]... Ciao, Antje Gabor Grothendieck schrieb: Try this: folders <- c("folder1", "f2", &q

Re: [R] Question to regular expressions

2008-12-02 Thread Antje
Hi Gabor, it works! Thank you very much! But I still don't understand the difference between [0-9] and [:digit:]... Ciao, Antje Gabor Grothendieck schrieb: Try this: folders <- c("folder1", "f2", "F234562", "12345678", "234567",

[R] Question to regular expressions

2008-12-02 Thread Antje
- c("folder1", "f2", "F234562", "12345678", "234567", "912345", "333") I'd like to get only "234567" and "912345". Can anybody help me creating a regex for this??? For example this regex:

Re: [R] boxplot via plot command

2008-12-02 Thread Antje
Hi, thank you both for your response. I don't want to do anything like this - I just got some code like this from someone else and was wondering about the result. I would have used another approach to create a boxplot like this... Ciao, Antje [EMAIL PROTECTED] schrieb: hi: i'

[R] boxplot via plot command

2008-12-02 Thread Antje
rep("label3",150)) df <- data.frame(as.factor(l), x) plot(df) Thank you! Antje __ 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.ht

[R] duplicate values

2008-11-16 Thread Antje Nöthlich
me), but it does not work here because the rows are no real duplicates of each other. thanks in advance for your help! Antje __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://ww

Re: [R] par(new = TRUE) - overplotting

2008-10-08 Thread Antje
boxplot(data.frame(mydata[i]), col=use_col, pars= bpars) }) ciao, Antje Dieter Menne schrieb: Antje yahoo.de> writes: I want to create some boxplots (as png) within an lapply method. To get nice gridlines behind the boxplot, I plotted it twice and therefore I set par(new=TRUE). This w

[R] par(new = TRUE) - overplotting

2008-10-08 Thread Antje
lot(mydata[i], pars= bpars ) abline(h = gridlines, col="lightgray", lty=2) abline(h = 1, col="red", lwd=3) par(new=TRUE) boxplot(mydata[i], pars= bpars, main = "title") dev.off() }) Ciao, Antje _

Re: [R] horizontal boxplot + xlim

2008-10-06 Thread Antje
ode with creating a strange plot: x <- rnorm(100) + 100 maxval <- max(x) boxplot(x, notch=TRUE, xlim = c(0,maxval), horizontal = TRUE) Any idea? Antje Regards, Richie. Mathematical Sciences Unit HSL ATTENTIO

[R] horizontal boxplot + xlim

2008-10-06 Thread Antje
c(-4,4), horizontal = TRUE) Antje __ 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] how to set rownames / colnames for matrices in a list

2008-09-23 Thread Antje
)<-nms x }) Is there anything wrong using a list instead of an array??? Antje Alain Guillet schrieb: Hi, If all your matrices have the same size, you should work with an array and not with a list. Then you can use dimnames to set the names of the rows, columns, and so on.. Alain Antj

[R] how to set rownames / colnames for matrices in a list

2008-09-22 Thread Antje
- matrix(26:50, nrow=5) # ... there can be much more than two matrices l <- list() l[[1]] <- list(m1,m2) r_names <- LETTERS[1:5] c_names <- LETTERS[6:10] ? how can I apply these names to any number of matrices within this list-list ? Ciao, Antje

Re: [R] paste with list

2008-09-22 Thread Antje
Great! That's exactly what I was looking for. (I see, I still have to learn a lot...) Thank you! Antje Dimitris Rizopoulos schrieb: try this: t1 <- c(1, 2, 3) t2 <- c(3.4, 5.5, 1.1) tl <- list(t1, t2) do.call("paste", c(tl, sep = "\t")) I hope it he

[R] paste with list

2008-09-22 Thread Antje
all n-th elements to a single string. # Example code (how it should look like): t1 <- c(1,2,3) t2 <- c(3.4,5.5,1.1) paste(t1,t2, sep="\t") # and now how the data is available tl <- list(t1,t2) ??? what do I have to do to get the same output ???

[R] tryCatch question

2008-09-12 Thread Antje
s: value <- "3.3" tryCatch({ as.numeric(value) }, warning = function(ex) { value}) it works pretty nice. but within the lapply construct I always end up with strings. Does anybody have an idea why? (I can try to create a simple testcode for this but maybe the

Re: [R] another XML package question

2008-09-08 Thread Antje
Duncan Temple Lang schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Antje wrote: Hi Duncan, thanks a lot for your explanations. I tried the following now to understand a bit more: data <- getNodeSet(doc, "//Data") xmlName(data[[1]]) xmlName(xmlRoot(data[[1]])) xpath

Re: [R] another XML package question

2008-09-08 Thread Antje
hApply() somehow sets the current node but does not change the root? So looking for a subnode at all levels below my current node is not possible with the xPath syntax? (search on all levels starting from root is possible with "//nodename") Antje Duncan Temple Lang schrieb: --

[R] another XML package question

2008-09-08 Thread Antje
Hi there, does anybody know how to return the xmlPath from a node? For example, at several location in the xml file, I have nodes with the same name and I'd like to process only the nodes from a certain path. Any idea? Antje __ R-h

Re: [R] XML - get node by name

2008-09-07 Thread Antje
the XML package but didn't know the possibilities to access data as I was used to. Antje schrieb: Hi there, I try to rewrite some Java-code with R. It deals with reading XML files. I started with the XML package. In Java, I had a very useful method which gave me a node by using: name of

[R] XML - get node by name

2008-09-07 Thread Antje
44 11 Now, I'd like to do something like this in R. Most important would be to retrieve a node just by its name, not by the whole path. How is it possible? Can anybody help me with this issue? Antje __ R-help@r-project.org mai

  1   2   >