Displaying 20 results from an estimated 100 matches similar to: "sort data.frame by specific date column"
2009 Jul 07
4
Test for X=1 fails, test for >0 works, data in text file is 1
Hi,
I am apparently not understanding some nuance about either the use
of subset or more likely my ability to test for a numerical match
using '='. Which is it? Thanks in advance.
I've read a data file, reshaped it and then created MyResults by
keeping only lines where the value column is greater than 0. So far so
good. The data in MyResults looks good to me by eye.
The
2009 Jul 08
1
What is cast telling me?
Hi,
What is cast telling me when it says the following?
Aggregation requires fun.aggregate: length used as default
What is 'length'?
I've taken a small subset of data and wondered what EnTime vs
ExTime might look like. cast is kind enough to give me a table but I
don't understand the values in the table. They seem to sum up ro be
the same as the total dimension of the data
2009 Jul 11
2
Date conversions
Hi all,
I'm having a little bit of trouble with some date conversions and
am hoping someone can help me out. Thanks in advance.
OK, I have two sources of data that provide date info in a csv file
differently. I've attached a small zipped file with two text files
that illustrate both. (Is it ok to send attachments to this list? Not
sure. It's very small.) I need to be able to
2009 Jul 10
2
ReShape/cast question - sum of value in table
Hi,
I've tried to capture the basics of this problem I'm having. Been
working on this for a couple of days and just cannot get past it. As a
test of this list software I've attached is a small text file zipped
up. I hope it gets through but if it doesn't I'll post the actual text
which is only 26 lines. Put it somewhere sensible and change the first
line in the code to point
2009 Aug 28
2
new data.frame summed by date
Hi,
I wonder if someone can suggest how to create a new data.frame Y
from X where X$PL_Pos is summed by each unique X$MyDate. Y should end
up with two (or more) columns Y$MyDate and Y$PL_Sum with its value
being the cumsum of all the values in X for that date. - a 'daily
cumsum'.
Thanks,
Mark
TStoDate = function (TSDate) {
X = strptime(TSDate + 19e6L, "%Y%m%d")
2009 Jul 12
2
for (n in SystemResults$EnTime) return EnTime[n] until reaching "(all)"
Hi,
Newbie alert on for loops...
I have a bunch of data.frames built using rbind that have repeated
values in the EnTime column. I want to read the value in the EnTime
column and use it as an input to a function, but only down to the
first occurrence of the string "(all)" where I want to break off and
do other things. From the results I'm getting from some test code I
clearly
2006 Jul 26
8
change text_field_tag class
in my booking / _form I have the following input fields : (startdate and
endate)
<div>
<label for="startdate">Booking Start Date</label><br />
<%= text_field_tag(''startdate'', @startdate, {:class => @startdateclass,
:readonly => "readonly", :maxlength => "25"} ) %>
<%= observe_field("startdate",
2009 Jul 13
0
Reducing arrays for comparison with each other...
Hi,
First up, thanks again for all the help I'm getting on this list.
I'm making great headway in analyzing my experimental data on an
experiment by experiment basis. No way I could have done this in the
time I've done it without your help.
This email is partially a question about R but is also soliciting
overall guidance if anyone wants to give it. I somehow managed to get
an
2012 May 15
1
Error in eval(expr, envir, enclos) : object 'Rayos' not found???
Hi R-listers,
I am trying to make a trellis boxplot with the HSuccess (y-axis) in each
Rayos (beach sections) (x-axis), for each Aeventexhumed (A, B, C) - nesting
event. I am not able to do so and keep receiving:
Error in eval(expr, envir, enclos) : object 'Rayos' not found
Please advise,
Jean
require(plyr)
resp <- read.csv("ABC Arribada R File Dec 12 Jean
2011 Aug 18
1
Loop trouble with Excel Serial Numbers!
Hi All!
I'm trying to convert serial numbers in Excel to dates in R. For each
single "thedate" entry, I get a correct answer. But if I try using the for
loop, I get bizarre numbers in "mynewdata".
thedate<-as.matrix(40548:40759,ncol=1)
exdate<-function(){
mynewdate<-NULL
for(i in 1:nrow(thedate)){
2009 Jul 09
2
How to Populate List
Hi,
I'm new to R and would like to know, how one can populate the list with array data.
I'm reading a tab separated table in R. The data in the table looks something like this.
#Table Data
Comp A B C
Extracellular 103 268 535759
Nucleus 45603 47783 442744
#R code
myData <- read.table("table.data",
header=T,
2009 Sep 02
2
Help with sub-setting data.frame
Friends
I have a data frame, df that I want to extract some rows from
Here is a sample of the data
> head(df)
TDate Expiry Underlie Strike CSettle PSettle Futures ExDate
TTE
1 20080102 200801 200803 0.840 0.0000 0 0.9207 20080104
0.005479452
2 20080102 200801 200803 0.850 0.0000 0 0.9207 20080104
0.005479452
Rate Disc
1 0.0457 0.9997496
2 0.0457
2012 May 12
1
masked by GlobalEnv ???
Hi R Listers,
I am trying to upload a data file and I received this message. It seems that
I am still able to make graphs and Aeventexhumed still works in the
analysis. Can I ignore this message or do I need to do something about this?
Jean
> require(plyr)
Loading required package: plyr
> turtlehatch <- read.csv(file.choose())
> attach(turtlehatch)
The following object(s) are
2009 Jun 30
0
ri_cal 0.7.0 Released
Subject: [ANN] ri_cal 0.7.0 Released
ri_cal version 0.7.0 has been released!
* <http://ri-cal.rubyforge.org/>
* <by Rick DeNatale>
A new Ruby implementation of RFC2445 iCalendar.
The existing Ruby iCalendar libraries (e.g. icalendar, vpim) provide
for parsing and generating icalendar files,
but do not support important things like enumerating occurrences of
repeating events.
This
2006 Nov 04
0
weird problem with content type
Hey all,
My site is working ok except for a page that displays as text instead of html.
I tried to use this:
puts "Content-Type: text/html"
then it display the page as html normally but I still get that ugly
part on top of my page:
Content-Type: text/html
Set-Cookie: _session_id=6356b18a24d56a0da01bfab791fa911d; path=/
Status: 200 OK
Cache-Control: no-cache
here is the url:
2012 Oct 08
0
Best method for comparing rectangles sections of beach
Hi R-listers,
I am trying to compare sections of the beach separated from the HTL to the
Veg (east to west), separated into indices (-5 to 30m), HTLIndex. Cross
parallel (north to south) are major beach sections (Rayos 1, 2, 3, 4 and
MNB). I am thinking to do an ANOVA for each independent rectangle of beach
(not exactly but will be treated as). The HTL from (0-5m) in Rayo 1 is one
rectangle of
2010 Jan 31
3
[LLVMdev] llvm-gcc 4.0 question
Thanks for responding, Duncan, and clarifying that y'all need more info
to help.
I'm trying to compile binaries on os x 10.5.8 intel hardware that are
compatible on ppc os x 10.4.
When I include various flags to llvm-gcc, including: -m32 -arch ppc
-isysroot /Developer/SDKs/MacOS10.4u.sdk -mmacosx-version-min=10.4
I am seeing errors when compiling using llvm-gcc 4.2.
If I leave out
2010 Dec 02
4
Why msvcrt generates errors ?
Hello winers
I'm doing a little excersice.
A minimal source
#include <string>
int main(void)
{
return 0;
}
So, if i compile that with:
g++ -I/usr/include/wine/msvcrt -c myfile.cpp
I get errors like:
In file included from /usr/include/c++/4.4/bits/postypes.h:42,
from /usr/include/c++/4.4/bits/char_traits.h:42,
from
2010 May 20
3
Install eventmachine on Debian Lenny
Hi,
I can''t install eventmachine on Debian Lenny. ruby-dev and
build-essential are installed. Where''s the problem?
My (awful) logs:
=============================
# gem i eventmachine
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking for
2011 Sep 10
0
npreg: plotting out of sample, extremely large bandwidths
Hello r-help,
I am using the excellent np package to conduct a nonparametric kernel
regression and am having some trouble plotting the results.
I have 2 covariates, x1 and x2, and a continuous outcome variable y. I
am conducting a nonparametric regression of y on x1 and x2. The one
somewhat unusual feature of these data is that, to be included in the
dataset, x1 must be at least as large as x2.