similar to: Dataframe manipulation

Displaying 10 results from an estimated 10 matches similar to: "Dataframe manipulation"

2012 Jul 15
4
Imposing more than one condition to if
Hi,   I have a dataset which contains several time records for a number of days, plus a variable (light) that allows to determine night time (lihgt= 0) and daytime (light> 0). I need to obtain get dusk time and dawn time for each day and place them in two columns. This is the starting point (d): day time light 1     1       20 1     12     10 1     11     6 1     9       0 1     6       0
2018 Nov 18
2
How to add instructions to a Module at runtime?
Hi David, Thanks for your answer. Just to clarify, I would like to create 2 3 instructions put them in a function and execute them. Do you still think the JIT would be the best option? Thanks On Sun, Nov 18, 2018, 12:55 David Blaikie <dblaikie at gmail.com wrote: > If you're looking to execute code at runtime (within th eam process - or > across a network etc - as the one that
2013 Jun 08
0
modify and append new rows in a dataframe
My data frame shows changes on the variable act which records the consecutive duration (in seconds) of two states (wet-dry) over a few days for several?individuals (identified by Ring). Since I want to work with daytime (i.e. from dawn till dusk) and night time (i.e. from dusk till next dawn), I have to split act in two: from time[i] till dusk and from dusk until time[i+1], and from time[k] till
2013 Jun 10
1
modify and append new rows to a data.frame using ddply
Hi, I have a data.frame that contains a variable act which records the duration (in seconds) of two states (wet-dry) for several individuals (identified by Ring) over a period of time. Since I want to work with daytime (i.e. from sunrise till sunset) and night time (i.e. from sunset till next sunrise), I have to split act from time[i] till sunset and from sunset until time[i+1], and from time[k]
2018 Nov 18
2
How to add instructions to a Module at runtime?
Hi all, I'm trying to understand how the Module object works more in details, so suppose I've an empty module and I'd like to know if it is possible to add instructions at runtime and execute it. Is it possible to do it? Any suggestion on how? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL:
2020 Aug 14
0
Wine release 5.15
The Wine development release 5.15 is now available. What's new in this release (see below for details): - Initial implementation of the XACT Engine libraries. - Beginnings of a math library in MSVCRT based on Musl. - Still more restructuration of the console support. - Direct Input performance improvements. - Exception handling fixes on x86-64. - Various bug fixes. The source is
2010 Aug 25
6
(preview) Whitepaper - ZFS Pools Explained - feedback welcome
Hello list, while following this list for more then 1 year, I feel that this list was a great way to get insights into ZFS. Thank you all for contributing. Over the last month''s I was writing a little "whitepaper" trying to consolidate the knowledge collected here. It has now reached a "beta" state and I would like to share the result with you. I call it -
2009 Dec 22
2
Mirror of SAN Boxes with ZFS ? (split site mirror)
Hello, I''m thinking about a setup that looks like this: - 2 headnodes with FC connectivity (OpenSolaris) - 2 backend FC srtorages (Disk Shelves with RAID Controllers presenting a huge 15 TB RAID5) - 2 datacenters (distance 1 km with dark fibre) - one headnode and one storage in each data center (Sorry for this ascii art :) ( Data Center 1) <--1km--> (Data
2006 Jun 14
2
Base class model not found, even with require
I want to create a base class for a few of my models, as follows: class SingletonRecord < ActiveRecord::Base def self.get instance = self.find_all[0] instance ||= Current.new return instance end def save self.delete_all super end end Then I create a subclass model like so: require
2004 Nov 22
1
patch to fix non-echo tty on scp SIGINT
A long-time missing feature (or bug, depending on how you look at it) is that a Ctrl-C at the password prompt in scp does not restore the terminal settings, thus dropping you to the command prompt without any keyboard echo. (A "reset" command will fix it.) This is a pretty regular occurance for me, and some others I've talked to - usually when you realize that the scp command you