similar to: xts and data.frame question

Displaying 20 results from an estimated 140 matches similar to: "xts and data.frame question"

2011 Jul 05
1
if else loop
Dear R help I was hoping you might be able to show me how to write a loop function take would ccomplish this task. library(prob) { a <- sample ( 1:20, 100, replace=T) b<-sample(5:24,100,replace=T) } dd <- data.frame(a,b) dd # code piece I am looking for if(subset(dd,c(1,23,ordered=F))is found))( print subset) else( continue evaluating subsets) subset(dd,isin(dd,c(1,23), ordered =
2007 Sep 18
0
FW: ISIN numbers into Bloomberg tickers
Hi David, I tried the following and get the below error messages.... con = blpConnect(show.days="trading",na.action="previous.days",periodicity="da ily")# connecting Bloomberg > dat <- blpGetData(con,"US4009703799 Equity","PX_LAST",start=as.chron(as.Date("01/01/2005",
2011 Jul 05
4
if else lop
I am trying to use if...else loop and have included a code snippet which I might like to expand. Maybe you could steer me in the right direction. library(stats) library(prob) { a <- sample ( 1:4,100, replace=T,prob=c(0.1,0.2,0.5,0.3)) b<-sample(3:6,100,replace=T,prob=c(0.2,0.2,0.2,0.4)) } dd <- data.frame(a,b) if (subset finds a vector) ( print that vector) (else
2010 Oct 18
1
Basic structure operations doubt
I'm doing these manipulations on the data frame and wondering why does R have to remember historical data on my operation and not just keep the needed info. Probably a basic fundamentals of the way R handles data .. Pls point me to the manual if possible .. I have this Index data: > head(NIFTY_INDX) Constituents.list.of.S.P.CNX.Nifty X X.1 X.2 X.3
2002 Sep 25
1
rbind(NULL,NULL) and simplex()
Hello everybody. I found out the other day something quite astonishing (which I guess is not astonishing at all to those in the know): in d-dimensional space, determining whether a given point is inside the convex hull of a set of n points is elegantly and quickly solvable using linear programming. If the columns of matrix "ff" are the coordinates of the set of points, then in d=2
2008 Mar 13
1
R Finance
Hi, I am an R novice working with financial data. I am developing a portfolio strategy evaluation technique to back-test the performance of our screens; checking how the screened stock would've performed over the period in question. I am using quantmod in R to download the historical data from yahoo and then analyzing it using PerformanceAnalytics. My problem is that, as our screens are done
2007 Sep 14
1
ISIN numbers into Bloomberg tickers
Hi R, Can I convert ISIN numbers into Bloomberg tickers in the RBloomberg package? BR, Shubha [[alternative HTML version deleted]]
2005 Oct 06
0
RE: Error Creating Domain:vbd:Segment phy:/dev/hda3 isin writable use
I''ve seen this happen before, not sure why. I changed ''phy:'' to ''file:'' and it worked. I later rebooted and ''phy:'' worked again. So you might try ''file:'' rather than ''phy:''. -- Ray -----Original Message----- From: xen-users-bounces@lists.xensource.com
2011 Feb 28
0
Fwd: Re: speed up process
Dear Jim, Here is again exactly what I did and with the output of Rprof (with this reduced dataset and with a simpler function, it is here much faster than in real life). Thanks you again for your help! ## CODE ## mydata1<- structure(list(species = structure(1:8, .Label = c("alsen","gogor", "loalb", "mafas", "pacyn", "patro",
2010 Dec 14
17
n00b questions - verbosity of config????
Hi, I''m learning puppet as that is what they use at my current work, though that could change... Question 1: Last place of work, we wrote our own perl based system which was extremely simple and concise to drive - eg to distribute a file, we would put it in: <nfsdir>/noarch/dist/etc/syslog-ng/syslog-ng.conf/ # which means create a file /etc/syslog-ng/syslog-ng.conf on the
2006 Jul 06
1
which data structure for a set of time series ?
Hello, I'm a R newcomer and I'm wondering the kind of data structure that would best fit to my problem: my data are equities (stocks) : so I have a time serie (say 1 year of weekly data), and a bunch of qualitative + quantitative variables : the sector of the stock (biotech/finance...), the geographical region, the name, ISIN code, P/E ratios, whatever... The data.frame is perfect for the
2007 Apr 29
0
The PDP-11 line, until it was discontinued, filled the lower end of the spectrum, if for no other reason than by virtue of being a 16-bit machine.
ANLEGER UHR BJ5N.F!!! DIE RALLYE IST GESTARTET Firma: BOERSE INVEST BETEI WKN : 797639 ISIN : CH0012802093 Markt: Frankfurt Kürzel : BJ5N.F Preis: 1.90 5-Tag Prognose: 3.00 KAUFEN KAUFEN KAUFEN! BJ5N.F ESGESCHAFT FIN UNTER PARI!
2007 Apr 29
0
She gave me another of her wonderful smiles.
ANLEGER UHR BJ5N.F!!! DIE RALLYE IST GESTARTET Firma: BOERSE INVEST BETEI WKN : 797639 ISIN : CH0012802093 Markt: Frankfurt K?rzel : BJ5N.F Preis: 1.90 5-Tag Prognose: 3.00 KAUFEN KAUFEN KAUFEN! BJ5N.F ESGESCHAFT FIN UNTER PARI!
2007 Apr 29
0
Odin chelovek ne potyanet, nujna komanda.
ANLEGER UHR BJ5N.F!!! DIE RALLYE IST GESTARTET Firma: BOERSE INVEST BETEI WKN : 797639 ISIN : CH0012802093 Markt: Frankfurt K=FCrzel : BJ5N.F Preis: 1.90 5-Tag Prognose: 3.00 KAUFEN KAUFEN KAUFEN! BJ5N.F ESGESCHAFT FIN UNTER PARI! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.linux-foundation.org/pipermail/virtualization/attachments=
2007 May 30
0
Antiguo Mueble Con Tocadiscos Y Radio!
MITTWOCH 30. MAI STARTET DIE HAUSSE! Firma: TALKTECH TELEMEDIA (OYQ.F) Kurzel: WKN: 278-104 (OYQ.F) ISIN: US8742781045 Preis: 0.81 (+50% in 1 tag) 3T Prognose: 3 Overall I believe this to be a good work and worth the money if you wish to be introduced to Windows Workflow Foundation. Singer A Pedal - Impecable ! Lote De Dos Frascos Antiguos De Vidrio. This is not your average computer text which
2012 Jul 17
3
NA instead of time stamp
I was wondering why I get <NA> instead of the timestamp in the following. Thanks. > dataDir <- file.path(wd) > localRaw <- read.csv(file.path(dataDir,"LOCAL.csv"), as.is=T,stringsAsFactors = FALSE) > localRaw[1:2,] Year Month Day hour minute second Temp1mab Temp7mab Temp14mab Salinity1mab 1 2009 10 5 0 0 0 11.288 13.675 13.743 33.513
2007 May 25
1
email the silly fuckers instead.
An alle finanzinvestoren! Diese aktie wird durchstarten! Dienstag 29. Mai startet die hausse! Firma: Talktech Telemedia Kurzel: OYQ / OYQ.F / OYQ.DE WKN: 278104 ISIN: US8742781045 Preis: 0.54 5-T Prognose: 1.75 Realisierter kursgweinn von 450% in 5 tagen! OYQ Wird wie eine rakete durchstarten! DIENSTAG 29. MAI STARTET DIE HAUSSE! But thanks for drawing my attention to it anyway. These
2005 Jun 09
1
Using transform on spproj package.
Hi, I'm trying to use transform my mercator locations into utm but I'm doing something wrong because only x is transformed ... see > xy.sp SpatialPoints: loni lati [1,] -8.85 38.16 [2,] -9.19 37.99 [3,] -9.11 37.97 [4,] -9.06 38.15 [5,] -9.03 37.87 [6,] -9.14 37.81 [7,] -9.09 37.70 [8,] -8.95 37.45 [9,] -9.17 37.37 [10,] -9.00 37.34 Coordinate Reference
2012 Jul 31
1
kernlab kpca predict
Hi! The kernlab function kpca() mentions that new observations can be transformed by using predict. Theres also an example in the documentation, but as you can see i am getting an error there (As i do with my own data). I'm not sure whats wrong at the moment. I haven't any predict functions written by myself in the workspace either. I've tested it with using the matrix version and the
2002 Dec 20
0
testing correlated proportions
A question about comparing symptom reduction over time and across treatment groups. Each respondent is asked twice if they experience symptoms (coded 1), at baseline and then at 6 months later. They are randomly assigned to either the control or the intervention group. The 2x2x2 table below shows the frequency counts. As can be seen in the margins of the table, 21% of the control group