search for: stefanml

Displaying 7 results from an estimated 7 matches for "stefanml".

Did you mean: stefan
2010 Sep 15
3
warning or error upon type/storage mode coercion?
Hi, I'm aware that the language definition states "R objects are often coerced to different types during computations". Two questions: 1. Is it possible to configure the R environment so that, for example, coercion from (say) numeric to integer will throw a warning or an error? I realize that in the base R code alone, there are thousands of calls to as.integer() which would
2017 Jun 18
2
dist function in R is very slow
...ms(m*m);? sqrt(outer(sq,sq,"+") - 2*mtm)} It takes less than 50 seconds for my (dense) matrix of 5,054 rows and 12,803 columns, while dist.matrix with method="euclidean" takes almost 10 minutes (which is still orders of magnitude faster than dist). From: Stefan Evert <stefanML at collocations.de> To: Moshe Olshansky <m_olshansky at yahoo.com> Cc: R-devel Mailing List <r-devel at r-project.org> Sent: Sunday, 18 June 2017, 2:33 Subject: Re: [Rd] dist function in R is very slow > On 17 Jun 2017, at 08:47, Moshe Olshansky via R-devel <r-devel at...
2010 Aug 24
0
mlm for within subject design
...# will remove all the objects - except a ls() # presto -- View this message in context: http://r.789695.n4.nabble.com/How-to-remove-all-objects-except-a-few-specified-objects-tp2335651p2336200.html Sent from the R help mailing list archive at Nabble.com. --Forwarded Message Attachment-- From: stefanML at collocations.de To: r-help at stat.math.ethz.ch Date: Tue, 24 Aug 2010 10:47:58 +0200 Subject: Re: [R] 3D stariway plot On 24 Aug 2010, at 02:20, Ben Bolker wrote: >> Please, is there an R function /package that allows for 3D stairway plots > like the attached one ? >> In addi...
2017 Jun 18
0
dist function in R is very slow
> By the way, since the tcrossprod function in the Matrix package is so fast, the Euclidean distance can be computed very fast: Indeed. > euc_dist <- function(m) {mtm <- Matrix::tcrossprod(m); sq <- rowSums(m*m); sqrt(outer(sq,sq,"+") - 2*mtm)} There are two reasons why I didn't use this optimization in "wordspace": 1) It can be inaccurate for small
2010 Sep 20
0
unz() ignores encoding argument
Hi! I'm trying to read individual files from a ZIP archive, using the unz() function. Some of the files contain non-ASCII characters and I'd like to avoid unpacking them in a temporary directory. My problem is that unz() seems to ignore the encoding="latin1" option I need to read the non-ASCII characters properly. I can't find a clear indication in the documentation that
2017 Aug 23
0
Flummoxed by gsub().
> On 23 Aug 2017, at 07:45, Rolf Turner <r.turner at auckland.ac.nz> wrote: > > My reading of ?regex led me to believe that > > gsub("[:alpha:]","",x) > > should give the result that I want. That's looking for any of the characters a, l, p, h, : . What you meant to say was gsub("[[:alpha:]]","",x) i.e. the character
2015 Oct 03
1
issues with dev.new avoiding RStudio plot device on unix?
> The problem is that the device chosen by dev.new() depends on the GUI. > You can see the code that does this in grDevices:::.onLoad. So in fact > with noRstudioGD=TRUE, the decision is identical to what it is in R: > you only get X11 if your GUI is X11 or Tk, you get pdf otherwise. > It's pretty common to use R on a machine where X11 won't work, so this > makes sense.