Displaying 20 results from an estimated 20235 matches for "logics".
Did you mean:
logic
2010 Jan 07
1
Drop a part of an array\list\vector?
I did have a verbose description of why but rather then make everyone's eyes
bleed with 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
2007 Jun 20
2
Expected behavior from: all(c(NA, NA, NA) < NA, na.rm = TRUE)?
Hi all,
Came across this curious behavior in:
R version 2.5.0 Patched (2007-06-05 r41831)
A simplified example is:
> all(c(NA, NA, NA) > NA, na.rm = TRUE)
[1] TRUE
Is this expected by definition?
If one reduces this to individual comparisons, such as :
> NA > NA
[1] NA
> all(NA > NA)
[1] NA
> all(NA > NA, na.rm = TRUE)
[1] TRUE
the initial comparison on the 3
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
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
Hi,
I am trying to find an efficient way of applying a linear regression
model to different factor combinations in a data frame.
I want to obtain the output with minimal or no use of loops if
possible. Please let me know if this query is unclear.
Thanks,
Murtaza
2013 May 17
1
Multi-Track-Single-Logical-Stream Ogg-Vorbis (mogg) vs Multi-Track-Multi-Logical-Stream Ogg-Vorbis
Hi All,
I am in the midst of developing a library for easily recording 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
2007 Oct 18
1
Offtopic: help with an iPod
A friend bring and Ipod, initially it didn't start because of charge, so
I connected to my PC to give some charge, after that my linux didn't
mount it, and when I start the iPod it shows me a folder with a sign,
and that's all, nothing else matters. when I connected the iPod to the
PC it start to charge and suddenly stops and shows the folder I have
talked before
I run the command
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", "TRUE"))))
[1] FALSE TRUE
according to the
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 = representation
2016 Aug 07
2
table(exclude = NULL) always includes NA
This is an example from https://stat.ethz.ch/pipermail/r-help/2007-May/132573.html .
With R 2.7.2:
> a <- c(1, 1, 2, 2, NA, 3); b <- c(2, 1, 1, 1, 1, 1)
> table(a, b, exclude = NULL)
b
a 1 2
1 1 1
2 2 0
3 1 0
<NA> 1 0
With R 3.3.1:
> a <- c(1, 1, 2, 2, NA, 3); b <- c(2, 1, 1, 1, 1, 1)
> table(a, b, exclude = NULL)
b
a 1 2
2013 Jan 31
1
Installing RHEL On Laptop.....
Not sure if this is the right place to come to, but I don't have "RHN"
support.....I'm hoping someone can help me out here.
I have downloaded the RHEL .ios file and burned it to DVD/CD, my laptop
is primed to Boot From CD/ROM Drive, I start the installation using the
semi-graphical interface, and the first few options are a breeze, then
it gets to identifying the CD drive
2013 Mar 20
1
htmlParse (from XML library) working sporadically in the same code
I am using htmlParse from XML library on a paricular website. Sometimes code fails, sometimes it works, most of the time id doesn't and i cannot see why. The file i am trying to parse isĀ
http://www.londonstockexchange.com/exchange/prices-and-markets/international-markets/indices/home/sp-500.html?page=0
Sometimes the following code works
n<-readHTMLTable(htmlParse(url))
But most of the
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 for that in my code by testing
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
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
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
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 4.7 NA 1.3
2007 Feb 15
1
Can't mount USB drives
Fresh install of CentOS 4.4. uname -a, lspci, & lsusb output at bottom.
I insert my 256MB USB key, light goes on, then off. Never mounts. Here's
the end of dmesg:
usb 1-1: new full speed USB device using address 11
scsi7 : SCSI emulation for USB Mass Storage devices
Vendor: Generic Model: STORAGE DEVICE Rev: 1.02
Type: Direct-Access ANSI SCSI revision:
2003 Jun 24
1
S4 method setClass prototype definition question
Dear list,
this is not a problem report -- I would like to ask for advise what the
recommended and safe way to perform the following is or what problems might
arise in doing it differently.
The question is: What is the recommended way of providing a default value in a
prototype statement for a derived class for a slot provided from a parent class?
I have first consulted the methods package
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(...)