Displaying 20 results from an estimated 500 matches similar to: "Select just numeric values from rows"
2010 May 19
2
Reading in and writing out one line at a time
I hope that somebody can help me with this - I think very simple - issue...?
I am running a package that only accepts one line at a time, but I would
like to run this package on a dataframe of >500 lines.
Dataframe "d" is a single column:
APPLES
PEARS
AUBERGINES
KUMQUATS
I would like to read one line of my dataframe "d", individually into a new
frame "f", then
2007 Oct 26
2
function in R that's equivalent to SQL's "IN"
Hi all,
I'm trying to find
something like the "==" operator that will work on vectors or something
equivalent to SQL's "IN" function. For e.g., if I have:
x <- c(1,2,3,4,5)
y <- c("apples", "oranges", "grapes", "bananas", "pears")
z <- data.frame (x,y)
w <- c(2,4,5)
I want R to return the values
2010 Aug 01
0
ScrapeR Unanticipated XML objects
Dear All,
I have come across a very surprising result as I have started to learn how
to use R to pull data from the web for analysis.
I am trying to isolate that table headers for the quarterly income
statement (qtrinc) that I pulled from Google finance. I executed the
following commands after installing the scrapeR package.
require(scrapeR)
2010 Jan 13
4
a question about deleting rows
I have a file like this:
id n1 n2 n3 n4 n5 n6
1 3 4 7 8 10 2
2 4 1 2 4 3 10
3 7 0 0 0 0 8
4 10 1 0 0 2 3
5 11 1 0 0 0 5
what I want to do is: only if n2=0 and n3=0 and n4=0 and n5=0 then delete
the row. how can I do that?
thank you,
karena
--
View this message
2010 May 18
1
[LLVMdev] Possible memory leak in LLVM 2.5
Hi Reid,
I guess it's not so much a memory leak, as unexpected behaviour, resulting in excessive memory use.
I also call the following after EE->runFunction, which seems to clean up pretty nicely.
EE->freeMachineCodeForFunction(stub);
// Delete functions and IR.
stub->deleteBody();
stub->eraseFromParent();
Rob.
-----Original Message-----
From: reid.kleckner at
2007 Feb 26
1
match() function with a little enhancement
Dear R users,
I was wondering if R has a built-in function doing the following :
my_match(values_vector,lookup_vector)
{
for each value of values_vector :
if value %in% lookup_vector, then value is unchanged
else, value is changed the the closest element of lookup_vector, "closest"
meaning "the one that would come just after if we sorted them using order()"
}
For example :
1999 Oct 23
0
[slackware-security] CA-99-13: wu-ftpd upgrade available (fwd)
---------- Forwarded message ----------
Date: Fri, 22 Oct 1999 20:30:27 -0700 (PDT)
From: David Cantrell <david@slackware.com>
To: slackware-security@slackware.com
Subject: CA-99-13: wu-ftpd upgrade available
ATTENTION: All users of Slackware 4.0 and Slackware-current
REGARDING: CERT Advisory CA-99-13 Multiple Vulnerabilities in WU-FTPD
The recent CERT advisory reporting multiple
2012 Mar 17
1
Slow loading with Ruby 1.9.3 and FXRuby 1.6.23
We have been using Ruby 1.8.6 and FXRuby 1.6.16 under Windows, from the old
one step installer.
The following code takes less than a second to load and execute on my
five-year old Windows XP PC.
puts ''Starting''
require ''fox16''
puts ''Done''
With Ruby 1.9.3 and FXRuby 1.6.23, it takes 12 or more seconds. Both tests
are with all files on
2015 Mar 12
0
Expunge (?)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 12 Mar 2015, Muzaffer Tolga Ozses wrote:
> I don't know if this is the correct term. Let me elaborate. From time to
> time, I want to expunge (?) the mail folder so that users' Trash'd mails
> don't occupy space. So, here are my questions:
>
> 1. Is this the correct term?
Well, perhaps. Why you clinge on the
2002 Feb 05
0
X-Mailer: DPbsCO1o9zaCOOaY0rbioa
±ÀÂ˧A̤@Ó¤£¿ùªººô¯¸---¼Æ¦ìµø³¥
¦UºØ¼Æ¦ì¬Û¾÷ªºµû¤ñ»Pºô¤Íªº¤¬°Ê°Q½×,¥i¥H°µ¬°ÁʶR«eªº°Ñ¦Ò.
ÁÙ´£¨Ñ¤F³\¦h¨R¬~¼Æ¦ì·Ó¤ùªºªù¥«¤Îºô¯¸,¥Ø«e4x6¤@±i¥un6¤¸!
§ó¯S§Oªº¬O,ÁÙ¦³°O¾Ð¥dªº¥X¯²,§Ú¹L¦~¥X°ê´N¥´ºâ¦V¥L̯²°O¾Ð¥d,´N¤£¥Î§âNotebook¦ª¥X¥h!
www.dcview.com.tw
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this
2002 Feb 05
0
X-Mailer: DPbsCO1o9zaCOOaY0rbioa
±ÀÂ˧A̤@Ó¤£¿ùªººô¯¸---¼Æ¦ìµø³¥
¦UºØ¼Æ¦ì¬Û¾÷ªºµû¤ñ»Pºô¤Íªº¤¬°Ê°Q½×,¥i¥H°µ¬°ÁʶR«eªº°Ñ¦Ò.
ÁÙ´£¨Ñ¤F³\¦h¨R¬~¼Æ¦ì·Ó¤ùªºªù¥«¤Îºô¯¸,¥Ø«e4x6¤@±i¥un6¤¸!
§ó¯S§Oªº¬O,ÁÙ¦³°O¾Ð¥dªº¥X¯²,§Ú¹L¦~¥X°ê´N¥´ºâ¦V¥L̯²°O¾Ð¥d,´N¤£¥Î§âNotebook¦ª¥X¥h!
www.dcview.com.tw
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this
2005 May 30
3
sapply following using by with a list of factors
Background:
OS: Linux Mandrake 10.1
release: R 2.0.0
editor: GNU Emacs 21.3.2
front-end: ESS 5.2.3
---------------------------------
Colleagues
I am having some trouble extracting results from the function by, used to
average variables in a data.frame first by one factor (depth) and then by a
second factor (station). The real data.frame is quite large
> dim(data.2001)
[1] 32049 11
Here is a
2011 Jul 06
0
[LLVMdev] git-svn dcommit Question
On 07/06/2011 07:53 AM, David A. Greene wrote:
> Tobias Grosser<tobias at grosser.es> writes:
>
>>> Will git-cherrypick work or is the merging process going to confuse
>>> git-svn?
>>
>> To use git-svn you should always have a history without any git
>> merges. Just commit after commit after commit. I do not know what kind
>> of history
2010 May 18
0
[LLVMdev] Possible memory leak in LLVM 2.5
I'm unfamiliar with the leak you've just described, but Jeffrey
Yasskin has done a lot of work cleaning up leaks for 2.7 and trunk.
I was just going to mention that unless the function you are calling
via runFunction has a simple prototype that's special cased in
runFunction, it will generate its own stub function for every call.
If you don't want to worry about that, you can call
2013 Feb 25
2
[LLVMdev] Queries regarding function's arguments data type
Hi all,
I am working on my Master's project in security and I am trying to iterate
over the argument list of the function. Basically I need to do following
things :
1. Check data type of each argument of the argument list of the function.
2. Based on its data type like character array or integer array, pointer,
int, char, take different action.
3. I have added following code to check its
2003 Nov 19
0
Windows Offline Folders
Am running Samba 2.2.7 on Red Hat 8.0 with Windows 2K clients patched to SP4
Creating off line folders works fine but if any file is modified off line
and then sync'd back when the laptop is reconnected to the network it comes
back with an unable to connect - access denied message. But I can quite
happily copy the files over manually.
I have attached the log file (log level = 3) for the
2013 Feb 25
0
[LLVMdev] Queries regarding function's arguments data type
On 2/25/13 1:44 PM, teja tamboli wrote:
> Hi all,
>
> I am working on my Master's project in security and I am trying to
> iterate over the argument list of the function. Basically I need to do
> following things :
Interesting. Just out of curiosity, can you tell us what your project
is about?
>
> 1. Check data type of each argument of the argument list of the
2010 Jun 09
2
Change the name of one column ONLY
Hi all,
I have a very simple problem that I cannot seem to find the answer to. Consider the following toy dataset:
x <- read.table(textConnection("V1 apples bananas cherries
indv.1 7 8 4 3
indv.2 7 7 4 9"), header = TRUE)
How would I change the column name of ONLY the first column, not the others? Surely I should not have to re-specify the names of ALL the columns -- e.g.,
2011 Apr 06
1
shared folder: messages become invisible
Hello,
after dealing with shared folder within version 2.0 rc* I started using
it with a group of users.
user1 shares a folder to user2.
user2 has access to messages of this shared folder.
After a "random" time (minutes up to several days) user2 doesn't see
those messages anymore.
user1 (the owner) hasn't changed anything inside this folder. All
messages are still in place
2006 Oct 28
1
What determines the order of rows in a lattice barchart?
Hi,
What determines the order of the rows in a barchart?
Cheers,
Geoff.
Here is my code, and the data follows. If I have z in alpha order, the
barchart is in
some order I can't determine. I originally tried
rownames(twater)~twater$Cat, but the
chart wasn't in rownames(twater) order either.
library(lattice)
twater<-read.csv("totalwater.csv",strip.white=T)