Displaying 20 results from an estimated 30000 matches similar to: "Row subsetting of data frames (PR#425)"
2013 Jul 15
1
pmatch inconsistency
The pmatch help (see also section 4.3.2 in the R Language Definition)
claims that pmatch with duplicates.ok=FALSE provides the same
functionality as R's argument matching algorithm, modulo how empty
strings are matched.
Here's an undocumented inconsistency between pmatch and R's argument
matching algorithm:
> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform:
2003 Sep 24
1
partial matching in data frame subscripting
I'm not sure if the following is a bug or a feature:
> jjmat <- array(1:6, c(2,3), list(c('ABC', 'DEF'), c('xyz', 'tuv',
'qrs')))
> jjdf <- as.data.frame(jjmat)
> jjmat['AB', ]
Error: subscript out of bounds
> jjdf['AB',]
xyz tuv qrs
ABC 1 3 5
> jjmat[, 'tu']
Error: subscript out of bounds
2011 Jan 18
1
Xen; xm usb-add syntax - or - where is xm usb-attach
Hi all,
I'm running Centos 5.5 with Xen 4.0.1
Would like to use a USB key (not a block device) in my domU.
Dom0 lsusb yields;
Bus 002 Device 004: ID 064f:0bd8 ABC-Systems AB CDE/FG
xm usb-add shows;
Usage: xm usb-add <domain> <[host:bus.addr] [host:vendor_id:product_id]>
Not sure what combo will work in this case.
However, I've read some notes regarding xm usb-attach.
2011 Apr 04
5
Creating multiple vector/list names-novice
Hi I have very simple issue as I am still new to the group of R
I have basically
vector of names for which i want to create mutliple combinations and then
place them in different vectors. In some other language I can just place a
third dimension to separate list (or matrix) but i do not know how to do it
in R.
My issue is simple I use
cc<-combn(colnames(DD),2)
I would need to have this
2016 Oct 04
1
error handling in strcapture
It is also not catching the cases where the number of capture expressions
does not match the number of entries in proto. I think all of the
following should give an error about the mismatch.
> strcapture("(.)(.)", c("ab", "cde", "fgh", "ij", "lm"),
proto=list(A="",B="",C=""))
A B C
1 a b cd
2 d
2005 Dec 03
2
how to subset rows using regular expression patterns
hi netters,
i have a dataframe A with several columns(variables). the elements of
column M are character strings. so
A$M=c("ab","abc","bcd","ac","abcd","fg",....."fl").
i wanna extract all the rows where A$M match some regular expression
pattern.
for a simple example, let the pattern be just "ab", i wanna subset
2007 May 31
0
Branch 'as' - 8 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_string.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c test/trace
libswfdec/swfdec_as_context.c | 20 +
libswfdec/swfdec_as_interpret.c | 9
libswfdec/swfdec_as_string.c | 15 -
libswfdec/swfdec_as_strings.c | 2
libswfdec/swfdec_as_types.c | 2
test/trace/Makefile.am | 28 +
test/trace/isnan-5.swf |binary
2010 Apr 05
2
spool directories and filename
Hi,
Is it possible to configure Asterisk to fetch for files from the spool directory in different directories? For example, fetch voicemail files in /abc/voicemail and call files in /cde/outgoing ?. And is it possible to configure the filename that Asterisk gives to files, like voicemail files?
Thanks,
Ricardo
2011 Oct 18
1
Function to "lump" factors together?
Sorry about the odd terminology, but I suspect that my intent might be
completely missed had I used "aggregate" or "classify" (each of which
appears to have some rather special meanings in statistical analysis and
modeling).
I have some data about software builds; one of the characteristics of
each is the name of the branch.
A colleague has generated some fairly interesting
1999 May 11
1
model.matrix crashes (PR#189)
With 0.64.1 on Intel RH5.2,
abc <- list()
abc$abc$abc <- matrix(1:20)
mt <- terms(~(abc$abc$abc[,1]==64)|(abc$abc$abc[,1]==65)|(abc$abc$abc[,1]==75)
|(abc$abc$abc[,1]==84)|(abc$abc$abc[,1]==85))
model.matrix(mt,model.frame(mt))
crashes. With ab$ab$ab, it does not. Apparently, the bug I reported
for 0.64.0 has just been pushed back one step. Jim
2006 Oct 26
1
Pb with .findInheritedMethods
Hi again,
Here is a very simplified version of a class hierarchy
defined in the Biobase package (Bioconductor). I post
here because this seems to be an S4 related problem:
setClass("A", representation(name="character"))
setMethod("initialize", "A", function(.Object) {.Object at name <- "I'm
an A"; .Object})
2009 May 04
1
How to determine connection time between two node ?
Hi all CentOS users,
How can i determine connection time during the package walking between
two nodes ? But not in my network ! only any two network nodes in
world ?
For example: Get report time value betwwen www.abc.com and www.cde.com
Thanks for all advice.
--
Iyi calismalar.Basarilar...
Semih Gokalp
Istanbul/Turkiye
2007 Sep 04
1
SOLVED: importing huge XML-Files -- new problem: special characters
Hi all,
thanks to the people who replied to my question! I finally solved the
issue by writing own handlers and using xmlEventParse - which leads
to the following problem which is so odd that its probably a bug.
I use several special charachter in my XML-File, e.g. umlauts or ? or
? - but no matter how I encode my XML (UTF or ISO) or I escape these
characters xmlEventParse always stops
2009 Dec 01
1
explanation for left-side behaviour
Hi there,
I'm pretty sure that it's written down somewhere but I cannot find it so
far.
The little example shows different approaches to replace a substring.
Only the last one works. I think it has something to do with the fact
that "substr" is used on the left side. Can anybody refer to an
explanation for this behaviour?
Thanks a lot in advance!
Antje
values <-
2012 Aug 27
4
?nchar ?strsplit
Hi, my data frame is
x<-data.frame(ID=c("abc/def","abc/def/ghi","abc","mno/pqr/st/ab"))
I want to split my column ID using "/" as the place to split. How can I do that without telling the code how many sub-columns. I could use nchar(gsub("[^/]","",x$ID)) to get how many "/" are in each row of the column, but could
2013 Nov 01
5
cat with backspace and newline characters
Hi,
when mixing newline and backspace characters I get the following output
(see below). In the second call, the backspace character is simply not
applied. Is this normal behaviour?
Thank you.
> cat("abc\b")
ab> cat("abc\b\n")
abc
>
[[alternative HTML version deleted]]
2008 Jul 25
4
Matrix barplot
Hi,
as a bloody R beginner I failed to solve the probably simple problem
to create a barplot of the following data read from a file
Year A B C
2000 4 3 0
2001 2 1 3
2002 1 2 5
The Barplot should look like
5 | C
4 | A C
3 | AB C C
2 | AB A C BC
1 |
2001 Oct 02
1
problem with while loop with next (was RE: file connection, w hile, readLines and browser)
Dear R-help,
I think I have kinda isolated the problem I had to the following:
i <- 0
while( {i <- i + 1} < 5) {
if(i < 3) next
print(i)
}
This seems to go into an infinite loop. After I break the execution, i has
the value 1.
At the R prompt, if I start from i <- 0 and keep typing {i <- i + 1} < 5, it
eventually evaluate to TRUE. So why does the while loop not work?
2013 Jun 18
1
transform 3 numeric vectors empty of 0/1
Dear all,
Without a loop, I would like transform 3 numeric vectors empty of 0/1 of
same length
Vec1 : transform 1 to A and 0 to ""
Vec2 : transform 1 to B and 0 to ""
Vec3 : transform 1 to C and 0 to ""
to obtain only 1 vector Vec who is the paste of the 3 vectors (Ex : ABC,
BC, AC, AB,...)
Any idea ?
Thank you for your help
--
Michel ARNAUD
2010 Jul 13
1
StartsWith over vector of Strings?
Given vectors of strings of arbitrary length
content <- c("abc", "def")
searchset <- c("a", "abc", "abcdef", "d", "def", "defghi")
Is it possible to determine the content String set that matches the
searchset in the sense of 'startswith' ? This would be a vector of all
strings in content that start with