Displaying 20 results from an estimated 100 matches similar to: "R Newbie, please help!"
2010 Jun 08
1
Filtering out a data.frame
Sample Data.Frame format
Name is Returns.nodup
X id ticker date_ adjClose totret RankStk
427225 427225 00174410 AHS 2001-11-13 21.66 100 1235
"id" uniquely defines a row
What I am trying to do is filter out id's that have less than 1500 data
points (by date)
First, I used
total<-by(Returns.nodup, Returns.nodup$id,nrow)
which subsetted by
2010 Jun 09
3
Extracting Elements By Date
Dear R Gurus,
Thanks for any help in advance!
Date.frame: Returns.names
X id ticker date_ adjClose totret RankStk
258060 258060 13645T10 CP 2001-06-29 18.125 1877.758
My data frame is in the above format. I would like to filter by period, per
id (every 125 days) each consisting of 250 days, I.e. 1-250, 126-375, etc.
One important thing to note is that not all
2010 Jun 07
3
Subsetting subsets of data.frames
Hey Everyone,
I have been stumped by this all day.
Basically, I have a data.frame of multiple columns. Of concern are "id" &
"date"
For some reason, oftentimes there are duplicates of data with the same date.
I would like to remove the duplicates per different id (removing duplicate
dates for the entire data.frame would leave nothing since different id's all
have
2011 Dec 07
1
scatterplotting stock returns using quantmod and pairs()
I want to get data for a set of ticker symbols and compute the daily return of the adjusted close using quantmod, and then scatterplot returns using pairs().
The following gets data for the list of tickers:
tickers <- c("SHY","TLT","SPY","IWM","GLD","IEV","ILF","EWJ","EPP","SAF","ASA")
2009 Jun 15
2
GARCH:: False Convergence
Dear R users,
I am trying to use tseries' garch function in order to determine the
volatility of a return series generated by quantmod. Here is the code that I
am using:
> library(quantmod)
> getSymbols("AAPL")
convert daily closing prices into continuous log returns
> dret<-dailyReturn(AAPL,type='log')
check to see that the autocorrelations decay
>
2006 Jan 27
1
"Conditional" match?
I have two datasets, big and small.
s_date<-c(?2005-12-02?, ?2005-12-01?,
?2004-11-02?,?2002-10-05?,?2000-12-15?)
s_id<-c(?a?,?a?,?b?,?c?,?d?)
b_date<- c(?2005-12-31?, ?2005-12-31?,
?2004-12-31?,?2002-10-05?,?2001-10-31?,?1999-12-31?)
b_id<-c(?a?,?b?,?c?,?d?,?e?,?c?)
small<-data.frame(date_=as.Date(s_date),id=s_id)
big<-data.frame(date_=as.Date(b_date),id=b_id)
For each row
2006 Jan 03
2
For loop gets exponentially slower as dataset gets larger...
I am running R 2.1.1 in a Microsoft Windows XP environment.
I have a matrix with three vectors (“columns”) and ~2 million “rows”. The three vectors are date_, id, and price. The data is ordered (sorted) by code and date_.
(The matrix contains daily prices for several thousand stocks, and has ~2 million “rows”. If a stock did not trade on a particular date, its price is set to “NA”)
2005 Oct 11
6
adding 1 month to a date
Within an R dataset, I have a date field called “date_”. (The dates are in the format “YYYY-MM-DD”, e.g. “1995-12-01”.)
How can I add or subtract “1 month” from this date, to get “1996-01-01” or “ “1995-11-01”.
---------------------------------
[[alternative HTML version deleted]]
2012 Nov 28
2
data frame: adding columns from data and file title
Data processing?
I have a large number of csv files from animal tracks that look like this:
Date_ Time_ Speed
Course Type_ Distance
30/03/2012 11:15:05 108
121 -2
2014 Aug 06
2
Sieve filter extracting wrong header value on certain mail messages
# 2.2.12: /etc/dovecot/dovecot.conf
# OS: Linux 3.15.4-x86_64-linode45 x86_64 openSUSE 12.3 (x86_64)
Short version:
1) I filter out spam by using a dovecot sieve filter to act based on a
header inserted by bogofilter
2) In some cases, sieve fails to correctly file based on this header
3) Testing with sieve-test indicates that it's testing the wrong header
4) Suggestions? Am I doing
2008 Jul 10
4
Interpolation of data
Hello,
I have the data whcih are not balanced (several missing observations),
and one possibility is t use interpolation method
to get the information missing in this series from other series.
Does anybody know how I can program interpolation of
series1 (which ahs missing observations) and series 2-6,
for example.
Thanks a lot in advance,
Silke
2006 Jan 13
0
Controller part of in-place editing
I''m doing some incremental improvements on scaffolding, and want to add
in-place editing to an admin section. I think I may have the view part
working right (at least, the editor pops up as expected) with this in my
view:
###
<% for link in @links %>
<tr>
<td> <div id="<%= ''url'' + link.id.to_s -%>"><%= link.url
2007 Nov 08
2
DO NOT REPLY [Bug 5064] New: compile error - SCO 5.0.6a
https://bugzilla.samba.org/show_bug.cgi?id=5064
Summary: compile error - SCO 5.0.6a
Product: rsync
Version: 3.0.0
Platform: x86
OS/Version: Other
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: aaron.pelton@ahs.state.vt.us
2010 Aug 18
4
RE: [PATCH 05/15] Nested Virtualization: core
> +
> +/* The exitcode is in native SVM/VMX format. The forced exitcode
> + * is in generic format.
> + */
Introducing a 3rd format of exitcode is over-complicated IMO.
> +enum nestedhvm_vmexits
> +nestedhvm_vcpu_vmexit(struct vcpu *v, struct cpu_user_regs *regs,
> + uint64_t exitcode)
> +{
I doubt about the necessary of this kind of wrapper.
In single layer
2019 Jul 01
2
Issue with DHCP Updating DNS Records on AD DC
Greetings,
I am in the process of replacing my MicroFocus (Novell) eDirectory system
with a Samba-based Active Directory system. I've got three domain
controllers built, and they seem to be humming along nicely. Server OS is
Ubuntu 18.04 patched current. I started off with the Samba 4.7 packages
included in the default Ubuntu repository, but have since upgraded to Samba
4.10 using packages
2005 Oct 24
1
Out of memory
Hi,
I am using gamm and I run out of memory and R crashes. I have tried to change the amount of memory in R using memory.limit as so far the largest it has allowed
memory.limit(size=3072)
still ahs this problem.
If I try to use max I get the following error
> memory.limit(memory.size(max=TRUE))
Error in memory.size(size) : don't be silly!: your machine has a 4Gb address limit
Does
2009 Mar 19
1
[Bridge] Is bridging possible if two devices connected peer to peer ?
Hello,
In one of our project we need to connect one IMX 27 based baord which ahs a internal FEC controller & an MPC 8323RDb baord which has a Built in Network controller.
We need to connect the IMX27 based board to MPC board thro cross cable & MPC baord has wlan AP card .
Basically we want to communicate from IMX27 to wireless network. Hence we are planning to make follwoing arranage
2004 Jun 02
2
More than 10 open sessions
Hi,
we use OpenSSH_3.8.1p1 and we would like to change the complete printer
Spool communication from Unix r-Commands to ssh "OpenSSH". Sometimes, we
have problems, because of very high connection set-ups in extremely
short time intervals, more than 10 open sessions.
The connection set-up is partly declined with the error message:
ssh_exchange_identification: Connection closed by remote
2004 May 10
1
Samba Digest list - Why are they attached?
I really don't understand this...
Virtually *none* of the other email lists I am on send all of the
messages as separate attachments - they are forwarded inline. The only
other ones that do this are the Openoffice.org lists, and I have the
same problem with them.
I use Thunderbird, which shows the attachments at the bottom of the
window pane (this is not an option), and does *not* allow
2007 May 03
1
reshape question
Hello all,
A quick question concerning a behavior of reshape I fail tu understand, probably something obvious but I just can't see it.
With the following data frame further referred to as tab :