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 &g

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 h

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 o

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() cal

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

2020-08-12 Thread Stefan Evert
p at 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
the 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 provid

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 pete

[R] density vs. mass for discrete probability functions

2019-03-15 Thread Stefan Schreiber
ere it should. 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.h

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 f

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 c

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

2018-05-08 Thread Stefan Th. Gries
eger 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
llowing 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 wan

Re: [R] Flummoxed by gsub().

2017-08-22 Thread Stefan Evert
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/mailman/listinfo/r-help

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.et

Re: [R] Using R and Python together

2017-03-31 Thread Stefan Evert
'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/posting-guide.html and

Re: [R] fisher.test function error

2017-03-31 Thread Stefan Evert
est. 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 read the posting guide http://ww

Re: [R] multiplying a matrix by a vector

2016-11-04 Thread Stefan Evert
eed (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-help PLEASE do read the pos

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

2016-10-10 Thread Stefan Schrödl
f 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-pro

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

2016-09-08 Thread Stefan Evert
ssumptions 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 and prov

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

2016-09-08 Thread Stefan Evert
(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 original sam

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 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 like to succeed in using R I

Re: [R] Reduce woes

2016-07-29 Thread Stefan Kruger
he results, and turn those into a list or S3 object. Stefan On 29 July 2016 at 15:54, William Dunlap 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

Re: [R] Reduce woes

2016-07-29 Thread Stefan Kruger
th(item) > 1) {append(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 wrote: > Basically using Reduce as an lapply in that example, bu

Re: [R] Reduce woes

2016-07-28 Thread Stefan Kruger
> Enum.map(data[id], 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 wrote:

Re: [R] Reduce woes

2016-07-28 Thread Stefan Kruger
.fold()' and possibly '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 wrote: > > > On Jul 27, 2016, at 8:20 AM, Stefan Kruger > wrote: > > >

[R] Reduce woes

2016-07-27 Thread Stefan Kruger
value you feed it is 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? W

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

2016-06-28 Thread Stefan Evert
t, alternative="greater")$p.value is the same as 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

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

2016-06-26 Thread Stefan Evert
negative value because all the individual logs are negative. Best, Stefan > On 25 Jun 2016, at 16:13, Gonçalo Ferraz 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 animals in N=2178 >

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

2016-01-13 Thread Stefan Evert
ject.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

Re: [R] RGL Problem

2015-11-24 Thread Stefan Evert
und even they know 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 m

Re: [R] RGL Problem

2015-11-23 Thread Stefan Evert
cks, 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 user? Best, Stefan

Re: [R] package implementing continuous binomial?

2015-05-08 Thread Stefan Evert
mma function, the Beta and Gamma distributions, and the binomial 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-

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

2014-12-14 Thread Stefan Evert
s expensive (in computational terms) than computing an exact (likelihood-based) two-tailed 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 t

Re: [R] Finding unique elements faster

2014-12-08 Thread Stefan Evert
0.2s for 770,000 word pairs. BTW, 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 _

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

2014-09-17 Thread Stefan Evert (Mailing Lists)
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 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 "

Re: [R] Margins to fill matrix

2014-09-11 Thread Stefan Petersson
17550 50 > [11,] 107 23 24 19 112 19 25 20 349 > > > - > David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77840-4352 > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-hel

Re: [R] Margins to fill matrix

2014-09-11 Thread Stefan Petersson
looking to fill 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 wrote: >> >> Hi, >> >> I have two vector of margins. Now I want to cre

[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 corresp

[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
as.factor(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:ncel

[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
(ncol=5, nrow=5) 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

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

2014-04-25 Thread Stefan Evert
ta in this format, why not construct the sparse matrix directly? 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] 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/

Re: [R] GotoBLAS2 with multiple cores

2013-12-01 Thread Stefan Evert
ads within each 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 wrote: > So, is it possible to use many cores at the same time with GotoBLAS2, do &g

[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: library(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 doesn'

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) wrote: > I got given some code that uses the R function pbionom:

Re: [R] Random Projection

2013-10-04 Thread Stefan Evert
://r-forge.r-project.org/R/?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.h

[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 i

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

2013-06-28 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 <- cbind(rbind(1,1

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

2013-06-21 Thread Stefan Sobernig
080798 I'd 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, sel

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 wrote: > >> x=runif(100, 1, 2) >> y=runif(100, 2, 4) >> z=runif(100, 1, 4) >>

Re: [R] highlight points in lattice cloud plot

2013-05-29 Thread Stefan Lüdtke
;> Dear list, >> >> I am >> struggling with the following problem. >> >> In a 2d case I managed to highlight a subset of points through the >> panel.xyplot function. >> >> However, I was trying the same in 3d using panel.cloud, but now luck. >> &g

[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 L

Re: [R] SVD on very large data matrix

2013-04-08 Thread Stefan Evert
ave 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/ma

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

2013-02-15 Thread Stefan Sobernig
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] Fitting pareto distribution / plotting observed & fitted dists

2013-02-15 Thread Stefan Sobernig
tical autodidact, so I might just be confusing the obvious. I'd highly appreciate your hints :) Stefan -- Institute for Information Systems and New Media Vienna University of Economics and Business Augasse 2-6, A-1090 Vienna `- http://nm.wu.ac.at/en/sobernig `- stefan.s

[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 <- data.frame(sex=factor(c(1,0,0,1,0,1

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

2013-01-03 Thread Stefan Evert
t; Then I check it on windows XP, R 2.15.2 and it works. No error. > > Then it seems 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

[R] log-scale xy-plots

2012-11-30 Thread Stefan Stagge
ers/210673/aaron. I just added the ylim option to create 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@

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

2012-11-13 Thread Stefan Sobernig
ion! //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.

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

2012-11-13 Thread Stefan Sobernig
y question other than "by example"). 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 a

Re: [R] Any better way of optimizing time for calculating distances in the mentioned scenario??

2012-10-12 Thread Stefan Evert
"wordspace" package includes a function dist.matrix() for calculating such cross-distance matrices. The function is written in C code and doesn't handle NA's and NaN's properly, but it's considerably faster than the current implementation of dist(). I haven't uploaded

Re: [R] Efficient distance calculation on big matrix

2012-06-18 Thread Stefan Evert
release. (I need cross-distances 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/postin

Re: [R] Efficient distance calculation on big matrix

2012-06-17 Thread Stefan Evert
Manhattan distance for an additional, more substantial speed boost: > system.time(d3 <- dist.matrix(A, method="manhattan", byrow=FALSE)) user system elapsed 42.488 0.999 43.569 This is still single-threaded, so you can run multiple of these calculations in paralle

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

2012-05-28 Thread Stefan Voigt
his change. How can I produce my private version? 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 th

Re: [R] levels of comma separated data

2012-05-25 Thread Stefan
analyst41 hotmail.com 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: d <- d

[R] clogit, modeling change...

2012-05-25 Thread Stefan Petersson
... The clogit() gives me 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

Re: [R] Inf and lazy evaluation

2012-05-15 Thread Stefan Evert
x27;t now when it's seen 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/p

Re: [R] for loop problem

2012-04-30 Thread Schreiber, Stefan
That's it. Nice and easy :) 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

[R] for loop problem

2012-04-30 Thread Schreiber, Stefan
uess I am missing some vocabulary here 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 posti

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 y

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 window

Re: [R] rtags for VI(M)

2012-03-09 Thread Stefan Luedtke
w 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

Re: [R] Regarding randomForest regression

2012-03-08 Thread Stefan MA (MOH)
Sent from my HTC -Original Message- From: David Winsemius Sent: Friday, 9 March 2012 12:26 AM To: shameek ghosh Cc: r-help@r-project.org Subject: Re: [R] Regarding randomForest regression On Mar 8, 2012, at 5:10 AM, shameek ghosh wrote: > Sir, > This query is related to randomF

Re: [R] times series trellis plot

2012-03-06 Thread Stefan Luedtke
ing panel, but, how do I add the missing data from ts2 to the plot that show the data from ts1 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

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-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 wrote: > > Dear List, > > > > I am struggling with the trellis graphic. A similar problem was mentioned > > here: > > > > http://r.789695.n4.nabble.com/R-How-can-you-get-N-rep

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
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
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

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

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] multcomp two-way anova with interactions within and between

2012-01-11 Thread Schreiber, Stefan
ce I am not in interested in every *single* comparison within and between, I was wondering to how to come up with a potential maximal but empty matrix and code the comparisons myself. Thanks for any hints! Stefan __ R-help@r-project.org mailing list https://st

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

2011-11-16 Thread Schreiber, Stefan
each. Then I run levene.test(mydata$y, 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/lis

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 ou

[R] Predicting x from y

2011-11-11 Thread Schreiber, Stefan
d then take the mean? 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

[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

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] factor level issue after subsetting

2011-11-01 Thread Schreiber, Stefan
it's 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

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 luc

Re: [R] Password protected R Repository

2011-09-28 Thread Stefan Petersson
CKAGES[.gz] file. 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

Re: [R] Password protected R Repository

2011-09-28 Thread Stefan Petersson
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 to prote

[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 di

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 dir

  1   2   3   4   5   >