similar to: "reverse truncate" to extract only decimal values

Displaying 20 results from an estimated 2000 matches similar to: ""reverse truncate" to extract only decimal values"

2008 Jun 02
4
NOT-SO-SIMPLE function!
I am trying to set up a function which processes my data according to the following rules: 1. if (x[i]==0) NA 2. if (x[i]>0) log(x[i]/(number of consecutive zeros immediately preceding it +1)) The data this will apply to include a variety of whole numbers not limited to 1 & 0, a number of which may appear consecutively and not separated by zeros. Below is an example with a detailed
2008 May 05
3
merge numerous columns of unequal length
I have numerous objects, each containing continuous data representing the same variable, movement rate, yet each having a different number of rows. e.g. d1<-as.matrix(rnorm(5)) d2<-as.matrix(rnorm(3)) d3<-as.matrix(rnorm(6)) How can I merge these three columns side-by-side in order to create a table regardless of the difference in length? I wish to analyze the output in a spreadsheet
2008 Sep 16
1
analyze subsample of dataframe
Hi there, I'm dealing with a pretty big dataset (~22,000 entries) with numerous entries for every day over a period of several years. I have a column "judy" (for Julian Day) with 0 beginning on Jan. 1st of every new year (I want to compare tendencies between years). However, in order to control for a leap year (2004), I simply need to subtract 1 from every judy value for the year
2009 Mar 28
1
Find inflection points using smooth.spline
Is there any way to identify or infer the inflection points in a smooth spline object? I am doing a comparison of various methods of time-series analysis (polynomial regression, spline smoothing, recursive partitioning) and I am specifically interested in obtaining the julian dates associated with the inflection points inferred by the various models. Tyler e.g.
2008 Jun 19
2
Advanced Filtering problem
http://www.nabble.com/file/p18018170/subdata.csv subdata.csv I've attached 100 rows of a data frame I am working with. I have one factor, id, with 27 levels. There are two columns of reference data, x and y (UTM coordinates), one column "date" in POSIXct format, and one column "diff" in times format (chron package). What I am trying to do is as follows: For each day
2010 Nov 13
1
truncate integers
Is there any really easy way to truncate integers with several consecutive digits without rounding and without converting from numeric to character (using strsplit, etc.)?? Something along these lines: e.g. = 456 truncfun(e.g., location=1) = 4 truncfun(e.g., location=1:2) = 45 truncfun(e.g., location=2:3) = 56 truncfun(e.g., location=3) = 6 It's one thing using floor(x/100) to get 4 or
2009 Oct 02
3
Tabulating using arbitrary numbers of factors
Dear R-help, First of all, thank you VERY much for any help you have time to offer. I greatly appreciate it. I would like to write a function that, given an arbitrary number of factors from a data frame, tabulates the number of occurrences of each unique combination of the factors. Cleary, this works: > table(horse,date,surface) <SNIP> , , surface = TURF
2006 Apr 24
26
prototype-based color picker
has anyone in this list ever tried to make a javascript color picker something like http://www.daantje.nl/blog/index.php?buttonID=37 or http://typetester.maratz.com/ i just thought i''d ask before i force myself to doing this. thanks mark renn _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Oct 31
9
Dare Picker
Is there a good date picker that can be used with prototype & scriptaculous library. I am looking for something outside ruby on rails. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to
2015 Nov 19
7
[Bug 93004] New: Guild Wars 2 crash on nouveau DX11 cards
https://bugs.freedesktop.org/show_bug.cgi?id=93004 Bug ID: 93004 Summary: Guild Wars 2 crash on nouveau DX11 cards Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/DRI/nouveau Assignee: nouveau at
2010 Aug 19
1
GLMM random effects
Hello, I have a couple questions regarding generalized linear mixed models specifically around fitting the random effects terms correctly to account for any pseudo-replication. I am reading through and trying to follow examples from Zuur et al. Mixed Effects Models and Extensions in Ecology with R, but am still at bit unsure if I am specifying the models correctly. Background information: Our
2005 May 23
6
colors and palettes and things...
After trying to find if there was a color picker in the FAQs and the help, I thought I would send a post here. I was overwhelmed with all the wonderful color choices R has predefined (discovered after typing in colors()) but can't figure out what they all (by name) look like. Is there a color picker or some other method to display all those colors next to the name? I think I can put together
2006 Apr 28
5
Newbie: using date-picker
Finally found a nice date chooser script (http://projects.exactlyoneturtle.com/date_picker), but am a little confused how to implement it. So I put this where I need the date picker: <a id="_name_link" href="#" onclick="DatePicker.toggleDatePicker(''name'')" class="demo_link">[ choose date ]</a> <div
2019 Mar 23
4
topenv of emptyenv
I was surprised just now to find out that `topenv(emptyenv())` equals ? `.GlobalEnv`, not `emptyenv()`. From my understanding of the description of `topenv`, it should walk up the chain of enclosing environments (as if by calling `e = parent.env(e)` repeatedly; in fact, that is almost exactly its implementation in envir.c) until it hits a top level. However, `emptyenv()` has no enclosing
2007 Nov 29
2
rails color picker?
Hello, Is there a color picker somewhere that is integrated with rails? Specifically a I''m hoping for a full 24-bit picker with sliders, etc, that can interact with rails objects, such as updating a form that rails has setup, or just injecting it''s chosen value into an input value that rails has set up to put back into an object after submission. Thanks, Avram
2003 Jul 03
1
Position Available...
Our software company is looking for a technical support/customer service agent This person should be knowledgeable with FreeBSD (installation and troubleshooting), Windows, hardware support (diagnosing hardware problems, replacing memory, cards, etc...), building out hardware (servers/workstations) for customers. Experience with JMS, and/or FoxPro desirable but not required. Some light book
2015 Dec 10
6
How do I reliably and efficiently hash a function?
I?ve got the following scenario: I need to store information about an R function, and retrieve it at a later point. In other programming languages I?d implement this using a dictionary with the functions as keys. In R, I?d usually use `attr(f, 'some-name')`. However, for my purposes I do not want to use `attr` because the information that I want to store is an implementation detail that
2006 Jan 20
13
Calendar date picker for use with rails.
Howdy folks, As I was putting together a rough form for a rails app, I got to thinking how much smoother (in my siytuation) a little calendar widget would be than the default date picker selects. Does anyone know if such a thing exists ? I suspect it would have to be somewhat designed with rails in mind to populate the right kind of post params for convenient use at the controller end.
2008 Oct 15
3
firefox is incredibly unstable
does anyone else have major probs with Firefox as installed on CentOS5? ever since the RPM for FF3 came out it has been crashing daily. Usually when I use Save As... or Browse... or anything else that brings up the Gnome file picker. After the crash I re-start then the file picker works for a while. Sometimes it just takes scrolling or click+drag an image or some other random action. BANG
2005 Apr 28
7
Calendar helper?
Does anyone know if someone has created a popup calendar helper for selecting dates? The current way in rails with the multiple selects is cumbersome at best, and I didn''t see any calendar type helpers in there.