Displaying 20 results from an estimated 20292 matches for "logical".
2010 Jan 07
1
Drop a part of an array\list\vector?
...useless details I ask the following :)
To make a long story short: How can I make newmcReg[[i]]["PreIO308"] go
away in the following list... er vector... no wait array.... dataframe....
awww crap...
summary(newmcReg[[i]])
UNITBUILD UNITDB ITBUILD ITDB
Mode :logical Mode :logical Mode :logical Mode :logical
FALSE:249 FALSE:249 FALSE:249 FALSE:249
TRUE :21 TRUE :21 TRUE :21 TRUE :21
UATBUILD UATDB HOGANCODE ACF
Mode :logical Mode :logical Mode :logical Mode :logical
FALSE:250...
2007 Jun 20
2
Expected behavior from: all(c(NA, NA, NA) < NA, na.rm = TRUE)?
...vector would be consistent with
the last example.
If one evaluates each side of the comparison within the parens in the
initial example, you get something along the lines of the following:
x <- c(NA, NA, NA)
x <- x[!is.na(x)] # remove NA's (eg. mean.default(x, na.rm = TRUE))
> x
logical(0)
> logical(0) > NA
logical(0)
> all(logical(0))
[1] TRUE
If my train of thought is correct, it seems to me that the behavior
above distills down to the comparison between logical(0) and NA, which
rather than returning NA, returns logical(0).
This would seem appropriate, given that...
2006 Oct 30
1
Cannot be coerced to logical?
Hello all,
So I am having a puzzling problem. I am working with a 534 x 1065
data frame entitled LocalMaxExpBlue.COR which is completely full of
logical values "TRUE" and "FALSE." However, when I attempt to
manipulate this data frame, R does not recognize it as logical.
Strangely enough, it will identify individual columns (but not rows)
as logical. It will also identify all of the individual elements of
each row as l...
2001 Apr 03
2
Parse error in xtabs
Greetings-
Using R 1.2.2 under linux, I get the following:
> l.agg<-xtabs(cbind(r.logic.interests, r.logic.morality,
+ r.logic.enlightened, r.logic.capacity,
r.logic.mediate)
+ ~ grouptype,
+ data=gt)
Error in parse(file, n, text, prompt) : parse error
I know the data are structured fine, as I can use all the elements in
individual xtabs()
2008 Dec 26
3
lm() with same formula but different column/factor combinations in data frame
...factors or different
combinations of 2 factors or
differennt combinations of 1 factor.
The formula remains fixed as:
> Formula
UncDmd ~ M1 + M2 + M3 + M4 + M5 + M6 + M7 + M8 + M9 + M10 + M11
So, different models I want to solve in R are :
1) Community : lm(Formula,TEST1[ as.logical(
(TEST1[[1]]=="20232") ) , ])
2) WT : lm(Formula,TEST1[ as.logical(
(TEST1[[2]]=="B") ) , ])
3) WT : lm(Formula,TEST1[ as.logical(
(TEST1[[2]]=="E") ) , ])
4) WT : lm(Formula,TEST1[ as....
2013 May 17
1
Multi-Track-Single-Logical-Stream Ogg-Vorbis (mogg) vs Multi-Track-Multi-Logical-Stream Ogg-Vorbis
...ecording multi-track
audio for a court recording system. Well, it can be used for anything, but
this is its first intended use.
The idea is to simultaneously capture/compress/archive 8 to 16 mono
sources (microphones) in an Ogg container using Vorbis. Then later, be
able to play back only selected logical streams, or
multiple-logical-streams via down-mixing.
Now, the way I've written the encoding logic (with liboggz and fishsound,)
is to compress each mono source (microphone) with Vorbis and store it in
Ogg as its own logical stream.
This works is currently working as I had hoped, because I en...
2007 Oct 18
1
Offtopic: help with an iPod
...: 00 00 00 00
sdb: assuming drive cache: write through
sdb : READ CAPACITY failed.
sdb : status=0, message=00, host=1, driver=00
sdb : sense not available.
sdb: Write Protect is off
sdb: Mode Sense: 00 00 00 00
sdb: assuming drive cache: write through
sdb:<3>Buffer I/O error on device sdb, logical block 0
Buffer I/O error on device sdb, logical block 0
Buffer I/O error on device sdb, logical block 0
Buffer I/O error on device sdb, logical block 0
Buffer I/O error on device sdb, logical block 0
Buffer I/O error on device sdb, logical block 0
Buffer I/O error on device sdb, logical block 0
Dev...
2010 Aug 15
2
as.logical(factor) behaviour
Hello,
According to ?as.logical:
"as.logical attempts to coerce its argument to be of logical type. For
factors, this uses the levels (labels)."
However,
> as.logical(factor(c("FALSE", "TRUE")))
[1] TRUE TRUE
Shouldn't it be the same as:
> as.logical(levels(factor(c("FALSE"...
2006 Sep 01
1
setMethod("Logic", ...)
Hi
In V&R the "polynomial" class is explicitly specified to have no
logical operators:
setMethod("Logic", signature(e1="polynomial"), function(e1,e2){stop
("...")})
I too have a class of objects for which I want to
specify that Logic operators do not work, but executing
setClass("brob",
representation = representat...
2016 Aug 07
2
table(exclude = NULL) always includes NA
...lue? The documentation doesn't say. Looking at the code of function 'table', the value is "always".
For the example, in R 3.3.1, the result like in R 2.7.2 can be obtained with useNA = "ifany" and 'exclude' unspecified.
The result of 'summary' of a logical vector is affected. As mentioned in http://stackoverflow.com/questions/26775501/r-dropping-nas-in-logical-column-levels , in the code of function 'summary.default', for logical, table(object, exclude = NULL) is used.
With R 2.7.2:
> log <- c(NA, logical(4), NA, !logical(2), NA)
>...
2013 Jan 31
1
Installing RHEL On Laptop.....
...capabilities: synchronous internal write-through data
*-cache:2
description: L3 cache
physical id: 4
slot: L3-Cache
size: 3MiB
capacity: 3MiB
capabilities: synchronous internal write-back unified
*-logicalcpu:0
description: Logical CPU
physical id: 0.1
width: 64 bits
capabilities: logical
*-logicalcpu:1
description: Logical CPU
physical id: 0.2
width: 64 bits
capabilities: logical...
2013 Mar 20
1
htmlParse (from XML library) working sporadically in the same code
...n<-readHTMLTable(htmlParse(url))
But most of the time it would return the following error coming from htmlParse:
Error: failed to load HTTP resource
Error is coming from the following line in htmlParse code:
ans <- .Call("RS_XML_ParseTree", as.character(file), handlers, as.logical(ignoreBlanks), as.logical(replaceEntities), as.logical(asText), as.logical(trim), as.logical(validate), as.logical(getDTD), as.logical(isURL), as.logical(addAttributeNamespaces), as.logical(useInternalNodes), as.logical(isHTML), as.logical(isSchema), as.logical(fullNamespaceInfo), as.character(enco...
2004 Apr 15
7
all(logical(0)) and any(logical(0))
Dear R-help,
I was bitten by the behavior of all() when given logical(0): It is TRUE!
(And any(logical(0)) is FALSE.) Wouldn't it be better to return logical(0)
in both cases?
The problem surfaced because some un-named individual called randomForest(x,
y, xtest, ytest,...), and gave y as a two-level factor, but ytest as just
numeric vector. I thought I check...
2015 Jul 06
13
[PATCH rebase v4 00/11] virt-resize: add support for resizing MBR logical partitions
In current virt-resize, only primary partitions(including
extended partition) are supported. They are collected in an
array for resize operations. Logical partitions are not
supported.
This series add support for resizing logical partitions.
v4:
rebase on upstream.
v3:
1) rewrite partitions/logical_partitions/extended_partition section
by the comments from Rich and Pino.
2) in 03/11 introduce logical_align for reserve enough space
when resi...
2015 Jun 03
13
[PATCH v3 00/11] virt-resize: add support for resizing MBR logical partitions
In current virt-resize, only primary partitions(including
extended partition) are supported. They are collected in an
array for resize operations. Logical partitions are not
supported.
This series add support for resizing logical partitions.
v3:
1) rewrite partitions/logical_partitions/extended_partition section
by the comments from Rich and Pino.
2) in 03/11 introduce logical_align for reserve enough space
when resizing logical/extended part...
2015 Jun 17
13
[PATCH v4 00/11] virt-resize: add support for resizing MBR logical partitions
In current virt-resize, only primary partitions(including
extended partition) are supported. They are collected in an
array for resize operations. Logical partitions are not
supported.
This series add support for resizing logical partitions.
v4:
rebase on upstream.
v3:
1) rewrite partitions/logical_partitions/extended_partition section
by the comments from Rich and Pino.
2) in 03/11 introduce logical_align for reserve enough space
when resi...
2013 Jul 22
1
union of a list of logical values
Dear all,
How can I obtain the union of a list of logical values?
Consider the following:
x <- head(iris)
x[,c(2,4)] <- NA
x[c(2,4),] <- NA
# > x
# Sepal.Length Sepal.Width Petal.Length Petal.Width Species
# 1 5.1 NA 1.4 NA setosa
# 2 NA NA NA NA <NA>
# 3...
2007 Feb 15
1
Can't mount USB drives
...t;f8822f0c>] scsi_error_handler+0x112/0x15a [scsi_mod]
[<f8822dfa>] scsi_error_handler+0x0/0x15a [scsi_mod]
[<c01041f5>] kernel_thread_helper+0x5/0xb
SCSI error : <7 0 0 0> return code = 0x10000
end_request: I/O error, dev sda, sector 511776
Buffer I/O error on device sda1, logical block 63968
scsi7 (0:0): rejecting I/O to dead device
Buffer I/O error on device sda1, logical block 63969
Buffer I/O error on device sda1, logical block 63970
Buffer I/O error on device sda1, logical block 63971
Buffer I/O error on device sda1, logical block 63972
Buffer I/O error on device sda1,...
2003 Jun 24
1
S4 method setClass prototype definition question
...os linux-gnu
system i686, linux-gnu
status
major 1
minor 7.1
year 2003
month 06
day 16
language R
## define a base class (virtual) without prototype
setClass("IDataType",
representation("VIRTUAL",
valid="logical"),
validity=NULL,
sealed=TRUE)
## same now with prototype definition
setClass("IDataType1",
representation("VIRTUAL",
valid="logical"),
prototype=list(valid=TRUE),
validity...
2004 Feb 09
2
apply on logical data frame together with all (PR#6560)
Full_Name: Roland Puntaier
Version: 1.8.1
OS: Windows XP
Submission from: (NULL) (62.99.238.78)
I have a data frame with some columns being logical.
I wanted to calculate a column that is an AND combination of the other logical
columns.
I tried to use
apply(df,1,all)
It did not work because of the implicit string conversion.
So I made the functions
All<-function(...) all(as.logical(...))#because all cannot be used with apply
Any<-f...