Re: [R] Weird behaviour of order() when having multiple ties

2022-01-31 Thread Stefan Fleck
Thanks everyone, i guess i just had a too long and confusing coding session. I tried it again and now everything seems to work. sorry for the fuzz. On Sun, Jan 30, 2022 at 9:17 PM Avi Gross wrote: > Stefan, > > I did not replicate your results as it works fine and applying the order

Re: [R] I'd like to request that my R CRAN package is not tested on Solaris OS

2021-10-22 Thread Stefan Evert
Just to add my personal cent to this: I've had similar issues with an R package some time ago, which kept crashing somewhat unpredictably in the Solaris tests. Debugging was hard because it only happened on Solaris, but in the end it turned out to be due to serious bugs in the code that only

Re: [R] Beginner problem - using mod function to print odd numbers

2021-06-05 Thread Stefan Evert
> > I don't understand. -- > > 7%%2=1 > 9%%2=1 > 11%%2=1 > > What aren't these numbers printing ? > > num<-0 > for (i in 1:100){ > num<-num+i > if (num%%2 != 0) > print(num) > } Your code tests the numbers 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, … and correctly prints the odd

Re: [R] Printing upon calling a function

2020-11-30 Thread Stefan Evert
so it won't auto-print. You have to use an explicit print print(me.probit(obj)) or use your work-around to convince R that you actually meant to print the output. If you dig through the full code of me.probit(), you'll probably find the function invisible() called somewh

Re: [R] Question about PERL lookahead construct in regex's

2020-08-12 Thread Stefan Evert
a given starting point; what you have in mind is to _search_ a string for matches of a regular expression. Python uses this terminology in its regexp matching functions, and from what you cited in the documentation so do Perl and PCRE in their docs. Best, Stefan _

Re: [R] how to calculate odd ratios with R?

2020-07-06 Thread Stefan Evert
fisher.test() computes exact confidence intervals for the odds ratio. > On 6 Jul 2020, at 15:01, Luigi Marongiu wrote: > > Is there a simple function from some package that can also add a > p-value to this test? Or how can I calculate the p-value on my own?

Re: [R] Ubuntu 18.04 R repo bionic-cran35 seems to be broken

2020-04-28 Thread Stefan Evert
he problem must be something else. Best, Stefan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide com

Re: [R] Accessing Data From packages

2020-02-27 Thread Stefan Schreiber
rkingDir.R. Before running any code, open that file, change the path to reflect the folder of your installed files and run it." So it seems like you downloaded the zip file but still have to make sure that the working directory is set correctly (see third paragraph in the instructions above).

Re: [R] Annotate question

2020-02-19 Thread Stefan Schreiber
Since factor levels (groups) are coded by integers, you can use 1, 2, 3 etc. as your x values. If you want to annotate in between you can simply pick values in between 1, 2, 3, etc. On Wed, Feb 19, 2020, 13:26 Thomas Subia, wrote: > Colleagues, > > To add an annotation using ggplot, I've used

[R] object.size vs lobstr::obj_size

2020-02-17 Thread Stefan Schreiber
I am currently working through Advanced R by H. Wickham and came across the `lobstr::obj_size` function which appears to calculate the size of an object by taking into account whether the same object has been referenced multiple times, e.g. x <- runif(1e6) y <- list(x, x, x) lobstr::obj_size(y) #

Re: [R] density vs. mass for discrete probability functions

2019-03-16 Thread Stefan Schreiber
Thank you Peter and Spencer. That clears things up. Also since no one responded the second part of my question, I'm still wondering if it was noted that there is a hyperlink in the dbinom help file (?dbinom) that isn't directing correctly? Stefan On Fri, Mar 15, 2019, 07:37 peter dalgaard

[R] density vs. mass for discrete probability functions

2019-03-15 Thread Stefan Schreiber
uld. Maybe this could be updated? Thank you, Stefan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and pr

Re: [R] NAs produced by integer overflow, but only some time ...

2018-05-09 Thread Stefan Th. Gries
> You are right that various arithmetic operators map a pair of integer > arguments to various type: the power and division operators map them to > double precision while the the addition, multiplication, and subtraction > operators map them to integer results (giving NA's if the result cannot

Re: [R] NAs produced by integer overflow, but only some time ...

2018-05-09 Thread Stefan Th. Gries
Before responding to Jeff's posting, let me reiterate my question: Why does a function using m1*m1 produce an integer overflow, but m1^2 does not? As for Jeff's 'response': > a) Numeric values may be either integers (signed 32 bit) or double precision > (53 bit mantissa). > b) Double precision

[R] NAs produced by integer overflow, but only some time ...

2018-05-08 Thread Stefan Th. Gries
overflow > m1^2 [1] 3748378176 That is, the multiplication worked with the numbers but not the numeric vectors; the above is literally copied from the console. Why is that happening? Any help would be much appreciated! STG -- Stefan Th. Gries --

Re: [R] regex - optional part isn't considered in replacement with gsub

2017-08-29 Thread Stefan Evert
they're optional in the following subexpression). If you make the first group non-greedy (.*?), this works for me: ecommerce$sku <- gsub("(.*?)([a-zA-Z]{0,2}[0-9]{2}[a-zA-Z]{1,2}[0-9]{2,4})(.*)", "\\2", ecommerce$producto) But as others have pointed out, you might wa

Re: [R] Flummoxed by gsub().

2017-08-23 Thread Stefan Evert
h, : . What you meant to say was gsub("[[:alpha:]]","",x) i.e. the character class [:alpha:] within a character set. Best, Stefan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/ma

Re: [R] Sparse (dgCMatrix) Matrix row-wise normalization

2017-05-04 Thread Stefan Evert
P.norm <- normalize.rows(P) which is a short-hand for P.norm <- scaleMargins(P, rows=1 / rowNorms(P, method="euclidean")) Best, Stefan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/

Re: [R] Using R and Python together

2017-03-31 Thread Stefan Evert
What do you need that can't easily be down with rpy2? Best regards, Stefan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/

Re: [R] fisher.test function error

2017-03-31 Thread Stefan Evert
the gmodels package, not with stats::fisher.test. The usual recommendation is to contact the package authors for help. Best regards, Stefan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do r

Re: [R] multiplying a matrix by a vector

2016-11-04 Thread Stefan Evert
se, if you care about speed (and memory efficiency), you could also library(wordspace) scaleMargins(x, cols=y) Best, Stefan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/

[R] [R-pkgs] New Package: Plotluck

2016-10-10 Thread Stefan Schrödl
ing of factor levels, and overlaying smoot hing curves and median lines. Plots are drawn using 'ggplot2'. Please see the v ignette for some examples. I welcome all feedback, suggestions, bug reports and feature requests. Thank you! - Stefan References 1. https://cran.r-project.org/w

Re: [R] Resample with replacement to produce many rarefaction curves with same number of samples

2016-09-08 Thread Stefan Evert
inappropriate) assumptions about the population. Best, Stefan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html an

Re: [R] Resample with replacement to produce many rarefaction curves with same number of samples

2016-09-08 Thread Stefan Evert
eatly in their > size (number of species). Are you sure it makes sense to resample with replacement? This will systematically underestimate the number of species at a given sample size (because of the artificial repetition) and will never find more species than there are in your origin

Re: [R] Reduce woes

2016-08-01 Thread Stefan Kruger
That seems like sage advise :) Thanks Stefan On 29 July 2016 at 22:06, Jeff Newmiller <jdnew...@dcn.davis.ca.us> wrote: > Having experienced some frustration myself when I first started with R > many years ago, I can relate to your apparent frustration. However, if you > would

Re: [R] Reduce woes

2016-07-29 Thread Stefan Kruger
o a list or S3 object. Stefan On 29 July 2016 at 15:54, William Dunlap <wdun...@tibco.com> wrote: > Reduce (like lapply) apparently uses the [[ operator to > extract components from the list given to it. X[[i]] does > not attach names(X)[i] to its output (where would it p

Re: [R] Reduce woes

2016-07-29 Thread Stefan Kruger
acc, setNames(length(item), names(item)))} }, data, list()) > str(r) int 2 > r [1] 2 I don't think you could achieve that with lapply()? Thanks Stefan On 28 July 2016 at 20:19, jeremiah rounds <roundsjerem...@gmail.com> wrote: > Basically using Reduce as an lapply in that example

Re: [R] Reduce woes

2016-07-28 Thread Stefan Kruger
d], fn rev -> {id, rev} end) end) |> Enum.filter(fn {id, rev} -> !Dict.has_key?(dict, "#{id}/#{rev}") end) |> Enum.reduce(%{}, fn ({k, v}, d) -> Map.update(d, k, [v], &[v|&1]) end) ``` On 28 July 2016 at 12:03, Ulrik Stervbo <ulrik.ster...@gmail.c

Re: [R] Reduce woes

2016-07-28 Thread Stefan Kruger
ssibly 'purrr.reduce()' aim at doing what I'd like to do - but I've not been able to figure out quite how. Thanks Stefan On 27 July 2016 at 20:35, David Winsemius <dwinsem...@comcast.net> wrote: > > > On Jul 27, 2016, at 8:20 AM, Stefan Kruger <stefan.kru...@gmail.com> > w

[R] Reduce woes

2016-07-27 Thread Stefan Kruger
required to be of the same type as the elements of the vector you're reducing -- so I can't build up. So whilst I can do, say > Reduce(function(acc, item) { acc + item }, c(1,2,3,4,5), 96) [1] 111 I can't use Reduce to build up a list, vector or data frame? What am I missin

Re: [R] strange behavior of lchoose in combinatorics problem

2016-06-29 Thread Stefan Evert
phyper(J-1, N1, N-N1, N2, lower.tail=FALSE) You can then instruct phyper() to return log probabilities and use -phyper(J-1, N1, N-N1, N2, lower.tail=FALSE, log.p=TRUE) as a measure of association strength. Best, Stefan __ R-help@r-projec

Re: [R] strange behavior of lchoose in combinatorics problem

2016-06-26 Thread Stefan Evert
ve value because all the individual logs are negative. Best, Stefan > On 25 Jun 2016, at 16:13, Gonçalo Ferraz <gferra...@gmail.com> wrote: > > I am working on interactions between animals, studying whether animal 1 is > attracted to animal 2 (or vice-versa). I looked for the two

Re: [R] Scaling rows of a large Matrix::sparseMatrix()

2016-01-13 Thread Stefan Evert
org/ has an efficient scaleMargins() function, which can be made to do what you need in combination with rowNorms() and colNorms(); cf. the trivial implementation of normalize.rows(). These functions only work with a dgCMatrix and will try to coerce any other sparseMatrix to this

Re: [R] RGL Problem

2015-11-24 Thread Stefan Evert
w they've installed XQuartz – the first thing you should do is to check "which xmkmf". If you find one, it is likely to be the cause of the failure. Best, Stefan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://st

Re: [R] RGL Problem

2015-11-23 Thread Stefan Evert
urce for some time on Mavericks, and have now discovered that this was due to a HomeBrew-installed imake in /usr/local. Perhaps it would make sense always to use the well-known standard XQuartz paths on Mac and only consider other locations if explicitly asked for by the u

Re: [R] package implementing continuous binomial?

2015-05-08 Thread Stefan Evert
and Poisson distributions in what I consider to be an accessible manner. (PDF, now at last with bookmarks: http://purl.org/stefan.evert/PUB/Evert2004phd.pdf) Best, Stefan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

Re: [R] Two-tailed exact binomial test with binom.test and sum(dbinom(...))

2014-12-14 Thread Stefan Evert
p-value as binom.test() does. This is particularly relevant if you want to compute confidence intervals for the true probability p based on a large sample, which takes ages with binom.test(). Hope this helps, Stefan __ R-help@r-project.org mailing

Re: [R] Finding unique elements faster

2014-12-08 Thread Stefan Evert
, you might want to take a look at Unit 4 of the SIGIL course http://sigil.r-forge.r-project.org/ which has some tips on how you can deal efficiently with co-occurrence data in R. Best, Stefan __ R-help@r-project.org

Re: [R] R write strange behavior in huge file

2014-09-17 Thread Stefan Evert (Mailing Lists)
to the output file. I�m planning to add such a function to one of my packages, so I�d be interested if somebody has a better solution. Best, Stefan On 16 Sep 2014, at 18:54, Maxime Vallee vall...@iarc.fr wrote: In my script I have one list of 1,132,533 vectors (each vector contains 381 elements

Re: [R] Parliament Seats Graph

2014-09-12 Thread Stefan Petersson
Yes. That's correct. The main problem is to solve a matrix where the colSums and rowSums are known. Credits to dwinsem...@comcast.net for pointing out the function r2dtable to me. Just feed it with the known margins and the number of matrices You want. And Bob is Your uncle! Look at the thread

[R] Margins to fill matrix

2014-09-11 Thread Stefan Petersson
Hi, I have two vector of margins. Now I want to create fill matrix that reflects the margins. seats - c(17,24,28,30,34,36,40,44,46,50) mandates - c(107,23,24,19,112,19,25,20) Both vectors adds up to 349. So I want a 10x8 matrix with row sums corresponding to seats and column sums

Re: [R] Margins to fill matrix

2014-09-11 Thread Stefan Petersson
at 10x8 matrix (i.e. 80 values). If you can clarify better we may be better able to help you. Charles On Thu, Sep 11, 2014 at 3:47 AM, Stefan Petersson ste...@inizio.se wrote: Hi, I have two vector of margins. Now I want to create fill matrix that reflects the margins. seats - c

Re: [R] Margins to fill matrix

2014-09-11 Thread Stefan Petersson
Carlson Department of Anthropology Texas AM University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Stefan Petersson Sent: Thursday, September 11, 2014 7:13 AM To: Charles Determan Jr Cc: r

[R] Parliament Seats Graph

2014-09-08 Thread Stefan Petersson
Hi, Is there any package (or homegrown function) that can produce Parliament Seats Graph? I'm referring to the nice looking concentric half circles of colored seats as seen on Wikipedia (for example). I can pretty easily plot the points and color them. But I can't group the colored points in

Re: [R] conversion error from numeric to factor in raster: Error in 1:ncol(r) : argument of length 0, r command: as.factor()

2014-05-07 Thread Stefan Schmidt
(projectRaster(r, to, method='ngb')) Furthermore I found in another blog (Dec 2013), following: This [the as.factor(raster)] is a bug in package raster. Once again, thanks a lot! Best, Stefan Am 06.05.2014 20:27, schrieb David L Carlson: Does values(r) - as.factor(1:ncell(r)) do what you want

[R] conversion error from numeric to factor in raster: Error in 1:ncol(r) : argument of length 0, r command: as.factor()

2014-05-06 Thread Stefan Schmidt
) values(r) - 1:ncell(r) as.factor(r) Urgently I have to figure out how to convert a numeric raster into a factor raster for a predict() calculation within the raster package. Every hint is very welcome! Best, Stefan

Re: [R] Fast way to populate a sparse matrix

2014-04-25 Thread Stefan Evert
? adjM - sparseMatrix(i = locs[,1], j = locs[,2], x = vals) I've found this to be very efficient and have used it with sparse matrices containing up to around 100 million nonzero entries. Hope this helps, Stefan __ R-help@r-project.org mailing

[R] Permutation test with raster data

2014-01-03 Thread Stefan Mühlbauer
  Dipl.-Ing. Stefan Mühlbauer, MSc Kaiser Strasse 85/2/15 A - 1070 Wien E-Mail: stefan.mue...@yahoo.de dattel_pa...@yahoo.de [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] GotoBLAS2 with multiple cores

2013-12-01 Thread Stefan Evert
parallel process by setting the OMP_NUM_THREADS environment variable (or in some other way). Hope this helps, Stefan On 24 Nov 2013, at 10:03, Safiye Celik safi...@gmail.com wrote: So, is it possible to use many cores at the same time with GotoBLAS2, do you have any ideas

[R] Real frequencies in a 'set' problem

2013-11-13 Thread Stefan Petersson
I have three media channels where I can push public health information (tv, radio and newspaper). Any given citizen can be touched by the information from one, two or three channels (let's ignore for the moment that citizens might miss the information all together). Hence these sets:

[R] R on Server without installation

2013-10-15 Thread Stefan Petersson
Hi, I use a regular web hosting service to build a web site under windows .NET. Now I need statistical functionality on the site, and I would really like to use R for that. However, I'm not allowed to install anything (e.g. R) on the host. Are there any implementations/workarounds of R that

Re: [R] Small p from binomial probability function.

2013-10-10 Thread Stefan Evert
percentages in your approach. It doesn't give you the 50% point either, but I don't think that's a meaningful quantity with a two-sided test. Hope this helps, Stefan On 9 Oct 2013, at 15:53, Benjamin Ward (ENV) b.w...@uea.ac.uk wrote: I got given some code that uses the R function pbionom: p

Re: [R] Random Projection

2013-10-04 Thread Stefan Evert
/?group_id=783 for download / installation. Best, Stefan __ 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

[R] Hierarchical multi-level model with lmer: why are the highest-level random adjustments 0?

2013-07-07 Thread Stefan Th. Gries
Hi all I have a hopefully not too stupid question about multi-level / mixed-effects modeling. I was trying to test a strategy from Crawley's 2013 R Book on a data set with the following structure: - dependent variable: CONSTRUCTION (a factor with 2 levels) - independent fixed effect: LENGTH (an

[R] Vertex names by creating a network object via an edgelist [package: network]

2013-06-29 Thread Daniel Stefan Hain
Dear R community, I have the following problem, and kindly ask for some support. I want to create a network object, representing a directed network on basis of an edgelist. The first column contains some unique ID of project leaders, the second project partners, let's say: x -

[R] Gini coefficient sensitive to skewness of Lorenz curve?

2013-06-21 Thread Stefan Sobernig
appreciate any hint in this direction! stefan __ 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

Re: [R] highlight points in lattice cloud plot

2013-05-29 Thread Stefan Lüdtke
the same in 3d using panel.cloud, but now luck. I attached a minimal example, I think the first plot shows the idea. Thanks, Stefan -- View this message in context: http://r.789695.n4.nabble.com/highlight-points-in-lattice-cloud-plot-tp4668157.html Sent from the R help mailing list

Re: [R] highlight points in lattice cloud plot

2013-05-29 Thread Stefan Lüdtke
That looks good, thanks a lot! Iwill give it a try in my real problemsoon. Cheers, stefan On 05/29/2013 06:02 PM, ilai wrote: On Wed, May 29, 2013 at 7:57 AM, Stefan Lüdtke slued...@gfz-potsdam.dewrote: x=runif(100, 1, 2) y=runif(100, 2, 4) z=runif(100, 1, 4) data_xyz=as.data.frame

[R] Repeating sequence elements

2013-05-17 Thread Stefan Petersson
I want to create a sequence, repeating each element according to a vector. I have this: v - c(4, 4, 4, 3, 3, 2) And want to create this: 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 5 5 5 6 6 TIA // s R version 3.0.0 (2013-04-03) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8

Re: [R] SVD on very large data matrix

2013-04-08 Thread Stefan Evert
you tried the svd() function? Most good BLAS libraries include highly optimised SVD code; if your machine has enough CPU cores, even a high-dimensional SVD might be fast enough. Best, Stefan __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] Fitting pareto distribution / plotting observed fitted dists

2013-02-15 Thread Stefan Sobernig
to correct for xmin like so? x2 - x2 - xmin Am I missing anything? Do I need to be more careful at an earlier stage (e.g., breaks as this is binned data)? I apologize in advance, I am a statistical autodidact, so I might just be confusing the obvious. I'd highly appreciate your hints :) Stefan

[R] How to deal with zero-inflated proportion data?

2013-02-15 Thread Stefan Sobernig
of censored methods (for regression analysis etc.), but not when it comes down to distribution fitting, I fear. Many thanks, Stefan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] Correct use of the cluster::daisy function

2013-01-08 Thread Stefan Petersson
Hi, I have two groups, and I want to find the dissimiarity between the members of the two groups. Since I have mixed level variables on the members, I opt for the daisy function in the cluster package. Let's pretend that the following represent my groups: x -

Re: [R] Package check using --as-cran

2013-01-03 Thread Stefan Evert
there is a bug in CMD check path/name --as-cran in the MacosX version. I guess you could argue that. If whitespace isn't allowed in file path, check --as-cran should issue a meaningful warning; otherwise, it should work just as check without --as-cran does. Best Stefan

[R] log-scale xy-plots

2012-11-30 Thread Stefan Stagge
a nice 0.1 to 10 log-axis which is commonly used for biological datasets. Good luck, Stefan -- Dipl. Biologe Stefan Stagge Pengsjövägen 35 91133 Vännäs mobilephone: +46 762 666401 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] How to visualize relation between two sets of rel. frequencies?

2012-11-13 Thread Stefan Sobernig
). My apologies and thanks for your hints! //stefan __ 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

Re: [R] How to visualize relation between two sets of rel. frequencies?

2012-11-13 Thread Stefan Sobernig
! //stefan __ 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] Any better way of optimizing time for calculating distances in the mentioned scenario??

2012-10-12 Thread Stefan Evert
of dist(). I haven't uploaded the package to CRAN yet, but you should be able to install with install.packages(wordspace, repos=http://R-Forge.R-project.org;) Best, Stefan PS: Glad to see that daily builds on R-Forge work again -- that's an extremely useful feature to get beta testers

Re: [R] Efficient distance calculation on big matrix

2012-06-18 Thread Stefan Evert
for nearest neighbour search in large sets of vectors.) Best, Stefan __ 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

Re: [R] Efficient distance calculation on big matrix

2012-06-17 Thread Stefan Evert
This is still single-threaded, so you can run multiple of these calculations in parallel depending on how many cores your server has. Hope this helps, Stefan PS: In case you'd like to give it a try yourself and aren't daunted by a complete lack of documentation: svn checkout svn://scm.r-forge.r

Re: [R] R quantreg anova: How to change summary se-type

2012-05-28 Thread Stefan Voigt
? Do I have to generate my own quantreg package? Thank you very much for you help cheers Stefan Am 28.05.2012 19:05, schrieb Roger Koenker: Stefan, You could try this: make a private version of anova.rqlist and change the call to lapply that computes summaries so that se = ker instead of se

[R] clogit, modeling change...

2012-05-25 Thread Stefan Petersson
coefficients etc. However, the literature states that one can model change in, say, price. Answering questions like How many will read magazine 2 when price falls with $2?. Can someone please outline a simple example on how to calculate / model such a change? TIA // stefan

Re: [R] levels of comma separated data

2012-05-25 Thread Stefan
analyst41 at hotmail.com analyst41 at hotmail.com writes: I have a data set that has some comma separated strings in each row. I'd like to create a vector consisting of all distinct strings that occur. The number of strings in each row may vary. Thanks for any help. # # # Some data:

Re: [R] Inf and lazy evaluation

2012-05-15 Thread Stefan Evert
everything that fits the naming pattern, now wouldn't it? Just saying ... Stefan __ 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

[R] for loop problem

2012-04-30 Thread Schreiber, Stefan
and hope someone can give me some pointers. Thanks, Stefan [[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

Re: [R] for loop problem

2012-04-30 Thread Schreiber, Stefan
:) Thanks! Stefan -Original Message- From: Tyler Rinker [mailto:tyler_rin...@hotmail.com] Sent: Mon 4/30/2012 6:40 PM To: Schreiber, Stefan; r-help@r-project.org Subject: RE: [R] for loop problem I don't really work with dates but thought I'd pass a solution on.  I think that there some great

Re: [R] ncd4 package

2012-03-16 Thread Stefan Luedtke
This one is for windows. http://cran.r-project.org/web/packages/RNetCDF/index.html but you need netcdf libraries and udunits libraries installed. http://cran.r-project.org/web/packages/RNetCDF/INSTALL Cheers See the On Fri, 2012-03-16 at 00:39 -0700, Amen wrote: Hi I am using

Re: [R] ncd4 package (really ncdf4)

2012-03-16 Thread Stefan Luedtke
sorry, I did not know that, thanks! On Fri, 2012-03-16 at 11:35 +, Prof Brian Ripley wrote: On Fri, 16 Mar 2012, Stefan Luedtke wrote: This one is for windows. http://cran.r-project.org/web/packages/RNetCDF/index.html but you need netcdf libraries and udunits libraries

Re: [R] rtags for VI(M)

2012-03-09 Thread Stefan Luedtke
the capabilities of this part of the plugin are and how useful it might be for you, but I think it is worth it to give it a shot. Hope that helps!? Cheers, STefan On Fri, 2012-03-09 at 11:33 +, Federico Calboli wrote: Hi, according to the help file rtags does not support VI(M) yet

Re: [R] Regarding randomForest regression

2012-03-08 Thread Stefan MA (MOH)
Sent from my HTC -Original Message- From: David Winsemius dwinsem...@comcast.net Sent: Friday, 9 March 2012 12:26 AM To: shameek ghosh shamee...@gmail.com Cc: r-help@r-project.org r-help@r-project.org Subject: Re: [R] Regarding randomForest regression On Mar 8, 2012, at 5:10 AM,

Re: [R] times series trellis plot

2012-03-06 Thread Stefan Luedtke
variable. What I want to do: 1) Add other variables to each panel, that worked as well, but a bit by chance. 2) Add an panel.xblocks to each panel that show the data gaps of any variable but not the first. If any of you could provide a minimal example. Cheers, Stefan On Fri, 2012-03-02

Re: [R] times series trellis plot

2012-03-06 Thread Stefan Luedtke
for the columns a and b?? Thanks for your efforts. Stefan On Tue, 2012-03-06 at 08:33 -0500, R. Michael Weylandt wrote: Type at your console: library(lattice) example(xyplot.zoo) I think the second and third do what you were asking. Otherwise, please describe in more detail what you

Re: [R] times series trellis plot

2012-03-04 Thread Stefan Luedtke
Thanks, a lot!! On Fri, 2012-03-02 at 18:00 -0500, Gabor Grothendieck wrote: On Fri, Mar 2, 2012 at 5:15 PM, sluedtke slued...@gfz-potsdam.de wrote: Dear List, I am struggling with the trellis graphic. A similar problem was mentioned here:

Re: [R] package does not have a NAMESPACE

2012-02-09 Thread Reinker, Stefan
A new version of the kopls package has been made available. This installs without problems in R 2.14 (windows 32-bit). Download from here: https://sourceforge.net/projects/kopls/files/K-OPLS%20for%20R/1.1.2/ [[alternative HTML version deleted]]

Re: [R] package does not have a NAMESPACE

2012-01-30 Thread Reinker, Stefan
to be available. Stefan [[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 commented, minimal, self

Re: [R] work with a subset of the dataset

2012-01-12 Thread Schreiber, Stefan
Or with what I just learned: subset-[mydata$age %in% c(20:30),] Thanks for explaining Michael! Stefan -Original Message- From: r-help-boun...@r-project.org on behalf of Marc Schwartz Sent: Thu 1/12/2012 8:38 PM To: R. Michael Weylandt Cc: r-help@r-project.org; manu79 Subject: Re: [R

Re: [R] work with a subset of the dataset

2012-01-12 Thread Schreiber, Stefan
But better without calling your new data frame subset since it's a function as well. -Original Message- From: r-help-boun...@r-project.org on behalf of Schreiber, Stefan Sent: Thu 1/12/2012 8:50 PM To: Marc Schwartz; R. Michael Weylandt Cc: r-help@r-project.org; manu79 Subject: Re: [R

Re: [R] work with a subset of the dataset

2012-01-12 Thread Schreiber, Stefan
Thanks for the warning ! Better use Michael's or Marc's suggestion instead. Stefan -Original Message- From: R. Michael Weylandt [mailto:michael.weyla...@gmail.com] Sent: Thu 1/12/2012 9:05 PM To: Schreiber, Stefan Cc: Marc Schwartz; r-help@r-project.org; manu79 Subject: Re: [R] work

[R] multcomp two-way anova with interactions within and between

2012-01-11 Thread Schreiber, Stefan
matrix and code the comparisons myself. Thanks for any hints! Stefan __ 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

[R] ANOVA on residuals to check for equality of variances

2011-11-16 Thread Schreiber, Stefan
, mydata$group, location=mean) and it works fine. Thanks for any answers on that! Stefan [[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

[R] Predicting x from y

2011-11-11 Thread Schreiber, Stefan
? Unfortunately, dose.p from the MASS package doesn't work for non-linear models. When I take the log(abs(x)) the relationship becomes not satisfactory linear either. Any suggestions are highly appreciated! Thank you! Stefan EXAMPLE for species #1: y.damage-c(5.7388985,1.7813519,3.7321461,2.9671031

Re: [R] Predicting x from y

2011-11-11 Thread Schreiber, Stefan
Thanks Ted! I really appreciate your time! Thanks for the link about the 'problem of calibration', and your suggestion to reformulate my model. I had no idea about it before. I certainly learnt something today. I will try your suggestions later today and let you know how it works out. Stefan

[R] MD5 checksum, mirror Zuerich

2011-11-03 Thread Stefan Bienert
Hi there, I just downloaded the newest version of R for Mac from the mirror in Zuerich… checksums do not match. bye, stefan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] factor level issue after subsetting

2011-11-01 Thread Schreiber, Stefan
all fine; but I don't like this idea and was wondering what am I missing here? Thanks! Stefan P.S. I am using R 2.13.2 for Mac. dat-read.csv(~/MyFiles/data.csv) class(dat$treat) [1] factor dat treat yield 1 cont 98.7 2 cont 97.2 3 cont 96.1 4 cont 98.1 5 10 103.0 6 10

Re: [R] factor level issue after subsetting

2011-11-01 Thread Schreiber, Stefan
Thanks for the fast response and your comments! That works perfect! Another little mystery solved ;) Stefan From: Felipe Carrillo [mailto:mazatlanmex...@yahoo.com] Sent: Tuesday, November 01, 2011 3:54 PM To: Schreiber, Stefan; r-help@r-project.org Subject: Re: [R] factor level

[R] Password protected R Repository

2011-09-28 Thread stefan . petersson
Hi, I've set up a very simple R repository. Just a single source library. Everything works fine. I can install the package on my client using: install.packages(repos='http://www.myServer.se/myRepo/', pkgs='myLib', dep=TRUE) However, I want to protect the repo, so I use a .htaccess, placed

Re: [R] Password protected R Repository

2011-09-28 Thread Stefan Petersson
stefan.petersson at inizio.se writes: Hi, I've set up a very simple R repository. Just a single source library. Everything works fine. I can install the package on my client using: install.packages(repos='http://www.myServer.se/myRepo/', pkgs='myLib', dep=TRUE) However, I want

Re: [R] Password protected R Repository

2011-09-28 Thread Stefan Petersson
. It then calls download.file to get the packages. So please read the help for download.file (as the help pages say), and try the solutions described there. On Wed, 28 Sep 2011, Stefan Petersson wrote: The helpfiles for 'download.file' was not that helpful. But maybe it's just me

Re: [R] Password protected R Repository

2011-09-28 Thread Stefan Petersson
The helpfiles for 'download.file' was not that helpful. But maybe it's just me not being able to read them correctly. Yes, looks like this is the case. I tried to call install.packages with the 'method=wget', and hoped for a username and password dialog. But no luck. The help

Re: [R] The CRAN packages webpages are not found

2011-09-20 Thread Stefan Theussl
On 09/20/2011 10:57 AM, Achim Zeileis wrote: On Tue, 20 Sep 2011, Tal Galili wrote: I am not sure who to send this to - so I am writing this here. It seems that the index.html pages on CRAN are gone. For example: http://cran.r-project.org/web/packages/ggplot2/index.html Is gone. But the

  1   2   3   4   >