Displaying 20 results from an estimated 1000 matches similar to: "R-project: plot 2 zoo objects (price series) that have some date mis-matches"
2011 Dec 28
2
Loops and vector operations
Dear all,
this is my first post and I?m very new at R, I don?t know if somebody can
help with an issue.
I?m doing some exercices and I don?t know if for example I can convert this
for in an operation with vectors:
for (i in 2:n){
if (ES[i-1]==0 && sprd[i-1]>mediaSDP[i-1] && sprd[i]<=mediaSDP[i]) {ES[i]
<- -1} else
if((ES[i-1]==-1 || ES[i-1]==-15) &&
2012 Oct 31
10
Gráfico von varias variables
Estimados amigos,
Tengo el siguiente set de datos:
caps <- datos[datos$NombreDepartamento=="LANUS", c("CAPS", "personas",
"PersonasRCVG", "Con12Meses")]
caps$prevalencia <- round(caps$PersonasRCVG/caps$personas*100,1)
caps
CAPS personas PersonasRCVG Con12Meses prevalencia
2345 2345 1347 132 211 9.8
2363
2023 May 07
5
[PATCH 00/53] drm: Convert to platform remove callback returning void
Hello,
this patch series adapts the platform drivers below drivers/gpu/drm
to use the .remove_new() callback. Compared to the traditional .remove()
callback .remove_new() returns no value. This is a good thing because
the driver core doesn't (and cannot) cope for errors during remove. The
only effect of a non-zero return value in .remove() is that the driver
core emits a warning. The device
2011 Mar 20
4
read file part way through based on start and end date (first column)
Hello folks - I have been trying to figure this out. I have a set of very
large files that are of this format
, , , ,
1/4/1999,9:31:00 AM,blah, blah, blah
1/4/1999,9:32:00 AM,blah, blah, blah
1/4/1999,9:33:00 AM,blah, blah, blah
I want to write R code that reads only that data between a start and an end
date (data is presented from oldest at the top of the file to the most
recent at the bottom
2012 Aug 01
4
as.date: do not know how to convert 'test[1]' to class "Date"
I have an object, which I pull in from a csv file here
http://r.789695.n4.nabble.com/file/n4638691/jan_2011.csv jan_2011.csv
mydata <- read.csv("jan_2011.csv", header=TRUE, sep=",")
> head(mydata)
Delivery.Date Hour.Ending Repeated.Hour.Flag Settlement.Point
Settlement.Point.Price
1 01/01/2011 01:00 N HB_BUSAVG
2011 Mar 12
3
pass character vector in instrument field of get.hist.quote function
I am new to R so I apologize if my question is trivial. I have not been able
to figure out whether what I want to do is even possible.
I have a data frame of stock ticker symbols which I store into R space from
a txt file as follows:
tickers <- read.csv("stocks.txt", header=FALSE, sep=",")
tickers <- tickers[1] / the tickers are stored in the first column
>
2007 Jun 12
2
Stock Price Correlation to Index Price Levels
Hi,
This is probably trivial to most people out there, but I'm struggling with this.
I have a data set which contains the closing prices (properly adjusted for dividends and splits) for several hundred securities and the closing prices for a general stock market index (S&P 500). I have no problem getting it into R with RODBC and manipulating it. There are no missing values. I can
2013 Jan 10
1
how to generate a matrix by an my data.frame
Dear All
It is a little hard to give a good small example of my question,so I
will show the full data on the bottom and the attachment.Maybe some
one could tell me an appropriate way
to show it.I'm sorry for the inconvenience.
Q:How to generate a 53*53 diagonal matrix by my data
Some problems confused me are that:
1.Since it is a diagonal matrix,I have tried to transform col1 and
col2 to
2011 Mar 23
1
using R variables in RMySQL query
I have the following function
myGetstockdataMySQL <- function(startdate, enddate, ticker) {
con <- dbConnect(MySQL(), user="blahblah", password="blahblah",
dbname="blahblah",
host="localhost")
rs <- dbGetQuery(con, "SELECT price.close FROM price INNER JOIN stocks ON
stocks.stock_id=price.stock_ID
WHERE (price.date_holding BETWEEN
2023 Jun 06
0
[bug report] ocfs2/cluster: Pin/unpin o2hb regions
[ This is ancient code. - dan ]
fs/fs_context.c
168 {
169 int ret;
170
171 struct fs_parameter param = {
172 .key = key,
173 .type = fs_value_is_flag,
174 .size = v_size,
175 };
176
177 if (value) {
--> 178 param.string =
2023 Sep 21
1
[RFT PATCH v2 00/12] drm: call drm_atomic_helper_shutdown() at the right times
This patch series came about after a _long_ discussion between me and
Maxime Ripard in response to a different patch I sent out [1]. As part
of that discussion, we realized that it would be good if DRM drivers
consistently called drm_atomic_helper_shutdown() properly at shutdown
and driver remove time as it's documented that they should do. The
eventual goal of this would be to enable removing
2015 Jan 23
9
[Bug 2343] New: test_fuzz.c won't compile if ssh1 support is disabled
https://bugzilla.mindrot.org/show_bug.cgi?id=2343
Bug ID: 2343
Summary: test_fuzz.c won't compile if ssh1 support is disabled
Product: Portable OpenSSH
Version: 6.7p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: Build system
Assignee:
2005 Sep 30
1
chan_zap.so ?
Hi,
I've a little problem with my asterisk server.
I have managed an asterisk server for a few months
one.
Today, I wanted to restart it and when I did it, my
asterisk server didn't want to start again.
I looked at the various messages in /var/log
and the same thing appears.
" [chan_zap.so] => (Zapata Telephony)
== Parsing '/etc/asterisk/zapata.conf': Found
Sep 30
2023 Jul 12
8
[PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev
Hello,
while I debugged an issue in the imx-lcdc driver I was constantly
irritated about struct drm_device pointer variables being named "dev"
because with that name I usually expect a struct device pointer.
I think there is a big benefit when these are all renamed to "drm_dev".
I have no strong preference here though, so "drmdev" or "drm" are fine
for me,
2023 Jul 12
8
[PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev
Hello,
while I debugged an issue in the imx-lcdc driver I was constantly
irritated about struct drm_device pointer variables being named "dev"
because with that name I usually expect a struct device pointer.
I think there is a big benefit when these are all renamed to "drm_dev".
I have no strong preference here though, so "drmdev" or "drm" are fine
for me,
2015 Jan 24
4
Indexing Mail faster
Hi,
I am trying to get faster search results on our webmail client(Roundcube).
Besides using Lucene for FTS are there other options?
Would having all mails indexed give fast results?
Currently the time it takes to search 25,000mails is 4mins. If indexed how
much faster are we looking at?
Really appreciate if someone could advise about this.
Thanks
Kevin
2009 Sep 25
2
Nested select
my data :
library(doBy)
lines<-"lo ptcl5 ptcl99 variable
430 . 8787 a
430 342 2343 m
430 . 89 mr
431 456 4774 a
431 299 2777 m
431 99 96 mr
432 333 3433 a
432 . 7377 m
432 .
2011 May 05
1
Question about error of "non-numeric argument to binary operator"
I have been trying to do a nls model and gives me the error of a nonnumeric
argument
table(file="c:/tt2.txt",header=T)
> fit.model <- nls(TT~60*(1+alpha*(v/c)^beta),data=tt2, start=list(alpha=1,
beta=3, v=1000))
Error in v/c : non-numeric argument to binary operator
> is.numeric(tt2)
[1] FALSE
> is.character(tt2)
[1] FALSE
> as.numeric(tt2)
Error: (list)
2007 Jun 07
1
Lost login process PID XXXXX
Dear List:
We installed Dovecot v1.0.0 a couple days ago.
After running the software for a couple days, the following happened:
Jun 6 15:58:10 cello dovecot: POP3(sgtdohara): Disconnected: Logged out
top=0/0, retr=0/0, del=0/0, size=0
Jun 6 15:58:10 cello dovecot: POP3(dorene): Disconnected: Logged out
top=0/0, retr=1/4652, del=1/1, size=4635
Jun 6 15:58:10 cello dovecot: Lost login process
2013 Jan 08
3
Conditional Statistics
Hello,
I am a new user of R. I am coming from SAS and do statistics on stock
market data, economic data, and social data. My question is this: How
can you get the mean, standard dev, etc. of a variable based on a
conditional statement on either the same variable or a different
variable in the same data set? So if I had the closing prices of the
S&P from 01/01/1990-12/31/1990, how could I get