Displaying 20 results from an estimated 1000 matches similar to: "indexing in data frames"
2012 Jul 31
3
year extraction over a list
Hello,
I have a data frame, one element in that data frame is a LIST, with each element being a character string. I am trying to extract the first year listed in each of those character strings. The character elements are typically csv, but the position of the year can vary (think citations with varying citation standards). I.e.,
foo$a
[[1]]
[1] text, text, 2001, text
[2] text, 2000, text
[3]
2006 Dec 28
6
1.4 Random disconnects
Hi,
We just upgraded to 1.4 and I'm noticing weird issues. I have noticed
that asterisk stops running and I need to restart in order for us to
receive calls. We receive our calls via a local sip provider over a
dedicated T-1. We never have had an issue before until the upgrade to
1.4. It seems like asterisk gets hung up on a certain call and dumps.
Anyone else noticing anything like
2002 Feb 25
5
another basic ?
i am sure that there is a simple solution that i am just overlooking, but
there is no logical test for =
there is one for != and >,<, >=, <=...
what do i do if i need to check if something IS EQUAL
or is there an easy way, in working with a matrix of size n x 3, to sort
the matrix by one of the columns?
specifically what i am trying to do is i have a matrix with individual and
2002 Feb 18
3
i think i asked the wrong ?
me again, new to R, haven't programmed in a long time at all
sorry to ask what is probably basic
a while ago i asked how to remove an element from a list
apparently what i am using is not a list but a vector, didn't realize there
was a list data type
could also use a matrix for what i am doing, is there a way to remove
single elements from either of those?
thanks for any help, if i was
2006 Oct 13
1
Calls being disconnected across VPN
Hey All,
Sometimes we are running into issues with calls randomly being
disconnected. We have a couple of phones is in a remote office. We
have a PIX-to-PIX VPN setup between the offices. I know neither of
these devices provide QOS but we usually don't run into any problems. I
notice this problem when we are in a conference call with one of the
employees at the remote office and a
2002 Mar 20
7
how does while work
i am having some problems with a program that i am writing and i think that
knowing how the while command works will help me to figure out where i am
going wrong
*when do you get kicked out of a while loop?*
(i.e., in the following example what would the final value of 'a' be?) i
thought it would be 99 but running it in R i get 101 (and 101 for x too!)
while (x <100) {
for (i in
2006 Aug 07
5
[PATCH][LINUX] use machine_emergency_restart() from the generic header.
This patch uses the standard generic header for the definition of
machine_emergency_restart() and reverses the call path for XenoLinux.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
---
diff -r 7680b29c03a6 drivers/xen/core/reboot.c
--- a/drivers/xen/core/reboot.c Sat Aug 05 11:33:24 2006 -0400
+++ b/drivers/xen/core/reboot.c Mon Aug 07 09:50:33 2006 -0400
@@ -9,6 +9,7 @@
#include
2002 Mar 20
3
check without loop
i am probably just missing this one, but how can i check to see if a number
is a part of a vector?
i know i could do a loop checking for equivalence for each element, but i am
thinking that there must be a simpler way to do it than that ( i think that
i have even done it in the past, but can't remember how!)
thanks
what i am working with:
(hope this makes sense)
arclist
[1] 2 2 6
2006 Aug 11
2
[PATCH][XEN] Use a union to pack the dual-short combos in an endian neutral way.
The first to members of a grant entry are updated as a combined pair.
The following union patch uses a union so updated can happen in an
endian neutral fashion.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
diff -r 1f611b58729f xen/common/grant_table.c
--- a/xen/common/grant_table.c Wed Aug 09 18:53:00 2006 -0400
+++ b/xen/common/grant_table.c Fri Aug 11 12:29:48 2006 -0400
@@ -32,6
2010 May 20
10
Question about templates from variables
I''m running into an issue trying to do something like the following:
class test {
file {"test":
content => template(''mytemplate1'',''mytemplate2''),
}
}
class test::test2 inherits test {
File["test"] { content +> template(''mytemplate3''), }
}
So, basically I want the inherited class to tack on another
2006 May 10
2
Headsets
Hey Everyone,
We are in the process of reviewing headsets for use with our GXP-2000s.
I'm looking for some feedback as to which headsets people are using, the
pros and cons of those headsets, and if they would recommend them to
someone else.
Any help would be appreciated...
- Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Mar 30
3
[patch] bitops on irq_cpustat_t->__softirq_pending
As mentioned earlier, PowerPC''s atomic ops operate on longs, and we have made
our *_bit() prototypes use long* (instead of void*) to warn us of problems at
compile time. Here''s one caller that was flagged:
test_and_set_bit(nr, &softirq_pending(cpu))
Accordingly, we need __softirq_pending to be long, not int.
PowerPC is currently using a few files unmodified from the x86
2006 Oct 31
1
Fw: domU network problem , 10/30 progress
Hao Yu
Commercial Scale Out
IBM T.J. Watson Research Center
1101 Kitchawan Rd/Route 134, Rm 36-019
Yorktown Heights, NY 10598-0218
914-945-1854, Email: yuh@us.ibm.com
----- Forwarded by Hao Yu/Watson/IBM on 10/31/2006 09:52 AM -----
Jimi
2006 Oct 31
1
Fw: domU network problem , 10/30 progress
Hao Yu
Commercial Scale Out
IBM T.J. Watson Research Center
1101 Kitchawan Rd/Route 134, Rm 36-019
Yorktown Heights, NY 10598-0218
914-945-1854, Email: yuh@us.ibm.com
----- Forwarded by Hao Yu/Watson/IBM on 10/31/2006 09:52 AM -----
Jimi
2007 Feb 01
2
[LLVMdev] llvm-java
So, the question that every once in a while is posed on this mailing
list:
What's the latest on llvm-java?
I couldn't get the CVS version to compile under LLVM 1.9.
I need to get Java class files to LLVM.
If anyone can just tell me how to get it to compile, that would be
great.
-Jimi
2004 Aug 02
1
Rsync and open files
I didn't see this answered in the FAQ, and it's important to one of my
application owners.
How does RSYNC handle open or write in process files?
Thank you!
J
jadams@molex.com
john.adams@molex.com
CONFIDENTIALITY NOTICE: This message (including any attachments) may contain Molex confidential information, protected by law. If this message is confidential, forwarding it to
2002 Mar 08
2
? about sample
i am trying to use the
sample command and have one question about it:
i am getting the error
Error in sample(length(x), size, replace, prob) :
insufficient positive probabilities
when i use something like:
sample (1:4, prob=c(0,0,1,0))[1]
i was expecting that to return a 3 every time
while this is not exactly what i am using it for, i need the capabilities to
deal with zeros (as the
2002 Apr 08
2
changing the form of a list
i have a 2 x n matrix that is a paired list of connections, i am working
with that looks something like:
1 2
1 3
1 5
2 1
2 3
3 1
3 2
4 5
5 1
5 4
for later operations it would be helpful if i could change this into the
form of:
1 2 3 5
2 1 3
3 1 2
4 5
5 1 4
the initial list is randomly generated and the max number of times that any
one number can appear is previoulsy defined by a limiting
2006 Oct 25
2
Re: [Xen-staging] [xen-unstable] [XEND] Open xend-debug.log in append mode.
Missed this in the [patch] state.
If we are gonna do this can we get a timestamp on every open? or
every message?
-JX
On Oct 25, 2006, at 5:30 AM, Xen staging patchbot-unstable wrote:
> # HG changeset patch
> # User kfraser@localhost.localdomain
> # Date 1161768423 -3600
> # Node ID 0c7923eb6b9846c92f1c15486e06ee9745bcf676
> # Parent 410df40afc014555ce7bfcad2852de9e6d0425f0
2002 Apr 29
2
efficiency
i have a set of files that i am reading into R one at a time and applying
to a function that i have written
where each is a 'table' n (columns) x 10000 (rows)
n varies across the files and most of the rows only have data in the first
few columns
currently i am reading them in with the command:
read.table(file="2.75.0.997.1", header=FALSE, sep="", skip=13, fill=,