similar to: Coercion/conversion of logical index to integer index

Displaying 20 results from an estimated 7000 matches similar to: "Coercion/conversion of logical index to integer index"

2002 Jun 02
1
predicting non-numeric values
Hi all, I had asked a question a few days ago on this list. I did not receive an answer. Since it was important to me, I looked for the answer in some references but as I am not really a statistics guy, the jargon was overwhelming for me. I apologize if this question is too trivial. Here is the question again: I used the lm() function to fit a linear model to a set of items that I got from a
2002 Aug 06
1
timing predict.tree()
Hi all, I am running R1.5.0 under Unix. I am repeating my earlier question with a few details added. I have the following tree fitted as the tree object 'my.tree': node), split, n, deviance, yval * denotes terminal node 1) root 5807 0.9998 0.0001722 2) V604 < 0.5 5798 0.0000 0.0000000 * 3) V604 > 0.5 9 0.8889 0.1111000 * And I have a data.frame called
2003 Dec 08
1
matrix coercion, logical -> character
Anyone know whether this is intentional, and by which rationale? (R-devel on RedHat, but hardly new) > l <- data.frame(a=rpois(10,1)>0,b=rpois(10,1)>0) > apply(l,1,which) Error in FUN(newX[, i], ...) : argument to "which" is not logical > lapply(l,mode) $a [1] "logical" $b [1] "logical" > mode(as.matrix(l)) [1] "character" --
2018 Jan 27
1
R (>= 3.4.0): integer-to-double coercion in comparisons no longer done (a good thing)
Hi, there was a memory improvement done in R going from R 3.3.3 to R 3.4.0 when it comes to comparing an integer 'x' an double 'y' (either may be scalar or vector). For example, in R 3.3.3, I get: > getRversion() [1] '3.3.3' > x <- integer(1000) > y <- double(1000) > profmem::profmem(z <- (x < y)) Rprofmem memory profiling of: z <- (x < y)
2003 Jan 08
0
integer coercion when indexing and subsetting (PR#2430)
At the end of his bug report, Philippe says PhGr> ..... Moreover, the subset operation [] uses as.integer() and PhGr> consequently, can suffer from the same syndrome. A WARNING section in PhGr> Extract.Rd would be welcome too. [BTW: Thank you Philippe! ] Currently, "Extract.Rd" does not say anything on the kind of indices `i' that can be used in things like
2011 Feb 14
2
How to get warning about implicit factor to integer coercion?
Is there a way in R (12.x) to avoid the implicit coercion of factors to integers in the context of subscripts? If this is not possible, is there a way to get at least a warning, if any coercion of this type happens, given that the action of this coercion is almost never what is wanted? Of course, in the rare case that as.integer() is applied explicitly onto a factor, the warning is not needed,
2016 Mar 01
4
GSOC 2016 Aspirant for Kepler Accelerated Video Encoding;
Hi, First of all, congratulations to the X.org team for selection into Google Summer of Code 2016. I would like to participate to Google Summer of Code 2016 by contributing to Kepler Accelerated Video Encoding for Nouveau. I request you to kindly guide me as to how to get started with this project. Regards, Saket Sinha
2002 Oct 25
4
R v/s S-plus
Hi all, I have Splus and R both on my unix machine. I intend to keep only one of them. R looks to be a better choice. But I want to confirm. Is there any function or group of functions in Splus that are absent in R? Thanks, Saket. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send
2014 Mar 28
2
Recompiling the Kernel for CentOS 6.5
Hi, I am working on CentOS 6.5 which has 2.6.32-431 kernel. I have a problem with my driver and I need to enable Kernel-Memory leak in the kernel for which I will have to recompile the kernel. I get the kernel source tree from the the source rpm for my running kernel from below link- http://vault.centos.org/6.5/updates/Source/SPackages/kernel-2.6.32-431.11.2.el6.src.rpm and I try to build
2020 Jun 09
1
[PATCH v2] mm/balloon_compaction: Fix trivial spelling
On Tue, Jun 9, 2020 at 8:04 PM Kieran Bingham <kieran.bingham+renesas at ideasonboard.com> wrote: > > The word 'descriptor' is misspelled throughout the tree. I think, *throughout the tree* is not appropriate* here. This patch has fixed it within the file. With that, Acked-by: Souptick Joarder <jrdr.linux at gmail.com> > > Fix it up accordingly: >
2014 Aug 11
0
diag(x, n) not preserving integer and logical x
Martin Maechler wrote: > diag(x) preserves the storage mode of x for 'complex' and > 'double' precision, but converts integer and logicals to double : Duncan Murdoch wrote: > I think the change to preserve integer makes sense, but preserving > logical does not. A diagonal matrix has zeros off the diagonal, and > they are not logical. Having diag() sometimes
2005 Aug 28
1
DIALSTATUS for Originate
Hi all, I am from India and has been recently using asterisk for testing and enahncing my telephony knowledge. I am trying to use the originate Command from the Asterisk manager on both SIP and ZAP. The command works successfully but does not return any DIALSTATUS such as BUSY,ANSWER,NOANSWER as in case of command DIAL when used from the dial plan. Can some one guide me how to get the vaue of
2002 Aug 29
3
2 questions
Hi all, I am using R1.5.0 under Unix, I have a couple of questions here. 1. My program is running out of memory. I am writing a program to grow a list of trees using rpart() on a subset of a large dataset(5807x693) with a different response for every tree. I saw that after each tree was constucted, 116 MB of data was being added to the Vcells. I have no idea what this data is. My dataset is
2002 Aug 23
2
why delete.response?
Hi all, I am running R1.5.0 under unix. I recently used the function 'predict.tree' to make predictions with a tree object and a dataframe of numeric items. The predict.tree internally, calls a function 'delete.response'. When I removed this function call from the source code of predict.tree, it ran 10 times faster without any differences in the result obtained. The
2002 May 15
3
question about scan()
Hi, I am using the scan function to read from a file. In general the syntax I am using is as follows: scan("myfile", list(a = "", b="", c="", d=""), sep=",") The file I am trying to read contains a #< in the 'd' field. When the file is read into an object, the d field comes as "" for that particular string. I
2001 Aug 02
0
gsub() and parenthesis symbols -- solved
Hello again -- inevitably, I discovered the (documented) answer 30 seconds after sending my question. Using gsub(...,extended=FALSE) is the way to avoid this issue. Cheers, Kieran -- Kieran Healy, Assistant Professor, Sociology Dept, University of Arizona. kjhealy at u.arizona.edu :: (520) 621-3480 http://www.u.arizona.edu/~kjhealy -------------- next part -------------- An embedded message
2020 Jun 09
0
[PATCH 15/17] mm: Fix trivial spelling
On 09.06.20 14:46, Kieran Bingham wrote: > The word 'descriptor' is misspelled throughout the tree. > "mm/balloon_compaction:" is a better subject prefix Reviewed-by: David Hildenbrand <david at redhat.com> > Fix it up accordingly: > decriptors -> descriptors > > Signed-off-by: Kieran Bingham <kieran.bingham+renesas at ideasonboard.com>
2020 Jun 09
0
[PATCH v2] mm/balloon_compaction: Fix trivial spelling
On Tue, Jun 09, 2020 at 03:34:12PM +0100, Kieran Bingham wrote: > The word 'descriptor' is misspelled throughout the tree. > > Fix it up accordingly: > decriptors -> descriptors > > Signed-off-by: Kieran Bingham <kieran.bingham+renesas at ideasonboard.com> > Reviewed-by: David Hildenbrand <david at redhat.com> Acked-by: Michael S. Tsirkin <mst
2020 Jun 10
0
[PATCH v2] mm/balloon_compaction: Fix trivial spelling
Hello! On 09.06.2020 17:34, Kieran Bingham wrote: > The word 'descriptor' is misspelled throughout the tree. > > Fix it up accordingly: > decriptors -> descriptors decriptor -> descriptor really. ;-) > Signed-off-by: Kieran Bingham <kieran.bingham+renesas at ideasonboard.com> > Reviewed-by: David Hildenbrand <david at redhat.com> >
2001 Oct 31
3
maps in R (fwd)
Here is the answer to an old question of mine, regarding maps in R Hope this help. claudia ---------- Forwarded message ---------- Date: Mon, 25 Jun 2001 13:48:05 -0400 From: Kieran Healy <kjhealy at Princeton.EDU> To: Claudia Tebaldi <tebaldi at ucar.edu> Subject: Re: [R] maps in R Hi Claudia -- you can get the maps() library from here: