Displaying 10 results from an estimated 10 matches for "datad".
Did you mean:
data
2010 Mar 23
2
Creating pdfs using qplot in qqplot2
I am trying to create plots within a for loop and output them to a pdf.
Here is a working example using plot:
gg <- data.frame(datadate=1:4, spread=5:8)
pdf()
for (i in 1:3) {
plot(gg$datadate, gg$spread, main=i)
}
dev.off()
I am trying to learn more about ggplot2 so I try a slight modification
and it doesn't work. Anyone know how to do this using qplot in ggplot2?...
2012 May 06
2
Saving a variable
...output of a program (my
constructed "H" matrix)
randz<-matrix(rnorm(1000000),500,2000)
H<-matrix(0,500,2000)
H[1,]<-randz[1,]
for (j in 1:2000){
for (i in 2:500){
if(i<251)
H[i,j]<-0.6*H[i-1,j]+randz[i,j]
else H[i,j]<-H[i-1,j]+randz[i,j]
}}
write(H, file = "datad.txt",2000)
If I ommit the 2000 on write function it only puts 5 columns.
The problem is that if I use this it seems it is not saving the same data I
have simulated....or this seems to me.
You see if I type H[,1] it is not the same that includen on the firs column
on datad.txt?
I feel very...
2012 May 10
1
Error t value matrix
...te to see if you can guide me¡¡¡
I swear I´m trying.
randz<-matrix(rnorm(5000),50,100)
H<-matrix(0,50,100)
H[1,]<-randz[1,]
for (i in 2:50){
if(i < 26) {
H[i, ] <- 0.6 * H[i-1, ] + randz[i, ]
} else {
H[i, ] <- H[i-1, ] + randz[i, ]
}
}
write.table(H, file = "datad.txt")
g<-read.table("datad.txt")
hy<-nrow(g)-1
estima<-H[2:nrow(g), ]
estima2<-H[ 1:hy, ]
mycoef <- function (x,y)
a<-estima
b<-estima2
f<-summary(lm(a~b))
ff<-coef(f)
ff[2,"t value"]
tvalue <- sapply (2:ncol(b) , function (i){
y<-a[,i]
x&...
2011 Jan 12
2
aggredating date data
I tried a date by date forecast of a time series and it seems to be
too wild. How can I aggregate the date into weeks or months as
required?
Thanks.
The input looks like
ID datadate("YYYY-MM-DD") value_for_day
-- ----- -------
-- ------ --------
and I want to be able to change it to
ID dataweek value_for_week
or
ID datamonth value_ for_ month
2011 Feb 10
0
Need help with merge
Have
> actualsdf
ID Name datadate val
1 23 Acme Corp 1 23
2 23 Acme Corp 2 43
3 23 Acme Corp 3 54
4 23 Acme Corp 4 65
5 23 Acme Corp 5 23
6 23 Acme Corp 6 43
7 23 Acme Corp 7 NA
8 23 Acme Corp 8 43
9 23 Acme Corp 9 54
10 23 Acme Corp 10 32
&...
2006 Jan 23
1
exporting dates into Microsoft SQL Server
I am running R 2.1.1 in a Windows XP environment.
I wish to use the sqlSave command to export a
dataframe into Microsoft SQL.
My dataframe is called temp and has 2 ?columns?,
?monthenddate? and ?value?.
Monthenddate is in 'POSIXct', format. (i.e. 'POSIXct',
format: chr "1984-01-31" "1984-01-31" "1984-01-31"
"1984-01-31" ...).
How can I
2008 Jun 25
0
Memory allocation failed: Copying Node
...tion(err)
unProcessedFiles(filein) )
if(is.null(xml)) next
if(is.null(xml)) {
stop("File not processed: " %+% file)
}
processed=FALSE
owner <- tryCatch(
data.frame(datadate=xValHelper("periodOfReport"),
CIK=xValHelper("issuerCik"),
conm=xValHelper("issuerName"),
tic=xValHelper("issuerTradingSymbol")),...
2011 Nov 09
0
Revolutions Blog: October Roundup
...fron on Bayesian
Inference: http://bit.ly/tWKnnC
Slides are available for the presentation "Backtesting FINRA's Limit
Up/Down Rules", where R was used to investigate the 2010 "Flash Crash"
of the stock market: http://bit.ly/rEl7cS
Two NYC-based R users have organized "DataDive" events for data
scientists to apply their skills to help non-profit and charity
organizations: http://bit.ly/uHokw0
Oracle has announced a "Big Data Appliance" that incorporates open
source R: http://bit.ly/vKGBWL
Other non-R-related stories in the past month included: statisti...
2010 Mar 24
0
R-help ordinal regression
...C58 at RINNYCSE000.rth.ad.rothschild.com>
> ???
> Content-Type: text/plain;???
> charset="us-ascii"
>
> I am trying to create plots within a for loop and output
> them to a pdf.
> Here is a working example using plot:
>
> ? ? ? ? ? gg <-
> data.frame(datadate=1:4, spread=5:8)
> ? ? ? ? ? pdf()
> ? ? ? ? ? for (i in 1:3) {
> ? ? ? ? ? ? ?
> plot(gg$datadate, gg$spread, main=i)
> ? ? ? ? ? }
> ? ? ? ? ? dev.off()
>
> I am trying to learn more about ggplot2 so I try a slight
> modification
> and it doesn't work.? Anyon...
2005 Aug 26
1
Success: MySQL Works on 0.99 But Not 1.0alpha
Great news!
yay!
I downshifted to dovecot 0.99-14 and pop server is working!
Finally a pop-server and postfix and all! And no Courier! or Qmail!
Whatever changed in the 1.0 release regarding MySQL is broken, and is
working in the .99-14 release.
I can finally use my mail server!
:-)
I'll keep an eye out for the 1.x stable release, hopefully it will have
MySQL support working.
Maybe