Displaying 20 results from an estimated 10000 matches similar to: "Identify does sort the locations"
2018 Feb 15
0
Identify does sort the locations
Hi
Indeed the help page says ...
"the indices of the identified points, in the order they were identified"
... and that is a complete lie.
Sorry about that :(
The simplest thing would be to correct the help page.
It would be possible to have identify() return the order, though for
backward compatibility that should not be the default, so would require
another argument to
2012 Jul 10
1
identify.hclust() doesn't cut tree at the vertical position of the mouse pointer
Dear All
According to the identify.hclust documentation the function "cuts the tree at the vertical position of the pointer and highlights the cluster containing the horizontal position of the pointer".
When I carry out this, the tree isn't cut where I click - in fact, there seems to be a limit below which I cannot go.
Consider the following code:
mat <- matrix(rnorm(5000),
2018 Feb 15
2
Identify does sort the locations
Hi Paul,
Thanks for your answer. I am wondering if in the previous versions,
let's say 2.1x, the data were in the selection order... Let me know if
there a R fonction taht I can code. Do you think I should use locator
function and match points on my own?
Best,
Samuel
2017 Jun 23
2
LC_TIME not set correctly by Sys.setlocale() ?
Related to the following question on Stackoverflow:
https://stackoverflow.com/questions/44723690/unexpected-behavior-of-sys-setlocale#44723690
It appears as if Sys.setlocale() does not update LC_TIME correctly for use
in date formatting. Although R reports that LC_TIME is changed to the new
setting after use of Sys.setlocale(), as.Date() still uses the old
settings. The only way to update this is
2010 May 28
5
difference in sort order linux/Windows (R.2.11.0)
Dear R users,
I'm a bit perplexed with the effect sort has here, as it is different on
Windows vs. linux.
It makes my factor levels and subsequent plots different on the two systems.
Given:
types <- c("PC-D-Euro-0", "PC-D-Euro-1", "PC-D-Euro-2", "PC-D-Euro-3",
"PC-D-Euro-4", "PC-D-Euro-5", "PC-D-Euro-6",
2013 Feb 26
3
double bracket stripping names
Is it on purpose that `[[` strips the
names when used on an atomic vector?
> c(a=1, b=2)[1]
a
1
> c(a=1, b=2)[[1]]
[1] 1
> sessionInfo()
R Under development (unstable) (2013-02-11 r61902)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United Kingdom.1252
[2] LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C
2009 Sep 07
2
using an array of strings with strsplit, issue when including a space in split criteria
Dear all,
I'm having a problem understanding why a split does not occur with in
the 2nd use of the function strsplit below:
# text strings
> txt <- c("sales to 23 August 2008 published 29 August",
+ "sales to 6 September 2008 published?11 September")
# first use
> strsplit(txt, 'published', fixed=TRUE)
[[1]]
[1] "sales to 23 August 2008 "
2009 Dec 17
2
Wrong links in help help files? (PR#14155)
Dear R developers,
?help.search
...opens a tab in my browser (Firefox 3.5.6, Win XP):
http://127.0.0.1:31642/library/utils/html/help.search.html
When I click on the link for "?",
(http://127.0.0.1:31642/library/utils/help/?)
in the last line of "Details", I get an error message:
"Server error: invalid response from R".
Similarly,
The link to "??"
2012 Jun 06
1
error calling Winbugs using R2WinBugs to run a multi-level model
Dear all,
I'm calling Winbugs (1.4.3) through R2WinBugs (2.1-18 coda_0.14-7) to
fit a switching random walk model, but come up with an instant trap
with the log only displaying 'check('.
I will paste the trap with session info below; I'd be very grateful
for any ideas.
Couple of leads:
1. I presume the problem relates to the r package itself or the way I
call bugs(), because I
2008 Apr 29
2
help text for xlim
Dear R-developers,
A student asked me today of how to specify the limits of the x-axis. I
knew that he should use xlim, but I tried to encourage him to have a try
himself with the various help functions. I do not judge if he used the
correct search strategy or right key words, but anyway here is what he
tried: he looked at ?plot. There xlim is not mentioned. He checked ?par.
There you find
2012 May 26
3
Problem with readHTMLTable
Hello All,
i was trying to simply run the readHTMLTable on the example published in the
package. And on a page I was working on. So running:
u = "http://en.wikipedia.org/wiki/List_of_countries_by_population"
tables = readHTMLTable(u)
returns the following error:
Error in tb[["thead"]] : subscript out of bounds
looking up this error on the web, didnt give me any hint. Is
2008 Jun 10
2
Slow function
Hi,
I have the following function that I want to apply to a list of 14
matrices (1536 x 170) of binary data:
DRes <- function(x, nr = 10000, metric = "mixed", ...) {
require(analogue)
require(ade4)
m <- c()
for (i in 1:nr) {
set.seed(i)
x1 <- x[, sample(dimnames(x)[[2]], length(x[1,])/2)]
x2 <- x[, !dimnames(x)[[2]] %in% dimnames(x1)[[2]]]
d1 <-
2009 Apr 07
3
strange (?) behavoir of expand.grid()
Hello,
I came across a strange behavior of expand.grid (or at least strange to me).
For certain values of one of my input variables - created by seq() - I
have to use strings (e.g ==".6") to select a row of the object
created by expand.grid(), for other values numerical (e.g. ==.8) and
for some both work. Please find an example below.
#Example
x<- seq(0,1,1/10)
y <-
2007 Aug 08
2
Error: Cannot Coerce POSIXt to POSIXct when building package
A newbie here - please forgive me if this is a basic question. We have an
in house package built in R 2.2.1 (yes we're a little behind the times at
our firm)and would like to rebuild it using R 2.5.1. However, when I try
and build the package from source, I keep getting this error:
Error in as(slotVal, slotClass, strict = FALSE) :
no method or default for coercing "POSIXt"
2008 Nov 04
2
How to suppress errors from htmlTreeParse() function in XML package?
Dear R-help,
The following code downloads an html document into variable 'doc' and
then stores an internal representation into variable 'html.tree'. Even
if the html code is malformed, this still works which is fantastic.
However, as in the example below, i do get some ouput from R in the
console which i would like to suppress somehow, so i can keep my
window a bit cleaner.
I
2018 Mar 24
2
Possible bug: file.exists() always returns TRUE for prn.us.txt
Dear all,
while preparing some exercises I came across some highly surprising
behaviour of file.exists(). The specific value "prn.us.txt" always returns
TRUE, even though that file is nowhere to be found on my system.
In a fresh R session 3.4.4 installed on Windows 10:
> grep("prn.us.txt", dir(recursive = TRUE))
integer(0)
> file.exists("prn.us.txt")
[1] TRUE
2011 Nov 21
2
a^b when a is large and b < 1 (64bit R on windows 7)
Hi,
I'm getting some strange behaviour when trying to use the power operator
(a^b) when a is large and b is less than one:
big <- .Machine$double.xmax
big
big^0.5
sqrt(big)
> big <- 1.797693134862315708384e+308
> big^0.5
[1] Inf
> sqrt(big)
[1] 1.340781e+154
I'm guessing that this behaviour is not expected, or am I missing
something about ^?
Cheers
Martyn
>
2008 Oct 13
1
Running R at a specific time - alternative to Sys.sleep() ?
Dear R-Help,
Is it possible to set R up to run a particular script at specific
times of the day? trivial example: If the time is now 8:59:55am and I
wish to run a function at 9am, I do the following:
my.function <- function(x) {
p1 <- proc.time()
Sys.sleep(x)
print('Hello R-Help!')
proc.time() - p1
}
my.function (5)
[1] "Hello R-Help!"
user system
2007 Feb 08
2
obscure error with subsetting as.list() of a function then assigning that a (PR#9500)
Hello. I was writing some code that computes on the language and came across
this. I can work around it, but thought you might like to know about it.
> f <- function(x) { NULL }
> a <- as.list(f)[[1]]
> a # ie print(a)
Error: argument "a" is missing, with no default
Note it says *argument* "a", which is strange. In fact, and unsurprisingly, the bug lies
with
2008 Oct 06
3
Extracting text from html code using the RCurl package.
Dear R-help,
I want to download the text from a web page, however what i end up
with is the html code. Is there some option that i am missing in the
RCurl package? Or is there another way to achieve this? This is the
code i am using:
> library(RCurl)
> my.url <- 'https://stat.ethz.ch/mailman/listinfo/r-help'
> html.file <- getURI(my.url, ssl.verifyhost = FALSE,