similar to: accessing members from a data frame

Displaying 20 results from an estimated 40000 matches similar to: "accessing members from a data frame"

2011 Feb 23
3
Using string to call/manipulate an object
I am using getSymbols function from quantmod package to get price data from internet. Currently I have: my.ticker <- "IBM" getSymbols(my.ticker,src="google") This creates an xts object named my.ticker which contains historical price data for IBM. How can I call and manipulating this xts object using my original string my.ticker? I want to do: colnames(my.ticker) <-
2010 Apr 23
2
read.csv data frame thousands separator
Dear group, Here is my df, trades1 : trades1 <- structure(list(Instrument.Long.Name = c("CORN", "CORN", "CORN", "CORN", "CORN", "SOYBEANS", "SOYBEANS", "SOYBEANS", "SOYBEANS", "SOYBEANS", "SOYBEANS", "STANDARD LEAD USD", "STANDARD LEAD USD", "SPCL
2010 May 26
1
data frame manipulation change elements meeting criteria
Dear group, Here is my df : trade <- structure(list(Trade.Status = c("DEL", "INS", "INS"), Instrument.Long.Name = c("SUGAR NO.11", "CORN", "CORN"), Delivery.Prompt.Date = c("Jul/10", "Jul/10", "Jul/10"), Buy.Sell..Cleared. = c("Sell", "Buy", "Buy"), Volume = c(1L, 2L,
2011 Feb 24
2
if statements on vectors
I have two vectors: both have possible values of 1,-1, or 0 trend1 <- c(1,1,1,1,1,1,-1,-1,-1,-1,-1,-1) trend2 <- c(1,1,1,1,1,1,1,1,1,1,1,1,1,1,) i want to create a third vector that is conditional upon these two vectors: if (trend2 == 1 && trend1 == 1) {position <- 1} elseif (trend2 == -1 && trend1== -1) {position <- 1} else {position <- 0} based on this two
2011 Mar 10
2
using lapply
I have a function with the follow signare: apply.strategy(instr, strat) where instr and strat are both objects of classes instrument and strategy respectively. I want to apply this function to a list that holds objects of the class instrument. Currently I am doing this by explicit looping: for(i in length(instr.list) ) { apply.strategy(instr.list[[i]], my.strat) } Is it possible to
2011 Jan 18
1
Reorganizing Data Frame
Hi I need some help trying to restructure a data frame: I have: food transaction quantity pizza BUY 5 pizza SELL 3 apple BUY 2 orange SELL 1 pizza BUY 2 And the data frame I want to make is: food BUY SELL pizza 7 3 apple 2 0
2010 May 27
1
switch function
Dear group, Here is my df : trades <- structure(list(Trade.Status = c("DEL", "INS", "INS"), Instrument.Long.Name = c("SUGAR NO.11", "CORN", "CORN"), Delivery.Prompt.Date = c("Jul/10", "Jul/10", "Jul/10"), Buy.Sell..Cleared. = c("Sell", "Buy", "Buy"), Volume = c(1L, 2L, 1L),
2007 Jul 15
1
Restructuring data
Hi folks, I am new to the list and relatively new to R. I am trying to unstack data "arraywise" and could not find a convenient solution yet. I tried to find a solution for the problem on help archives. I also tried to use the reshape command in R and the reshape package but could not get result. I will illustrate the case below, but the real dataset is quite large so that I would
2013 Sep 14
2
the problem of buying and selling
I own a lot to the folks on r-help list, especially arun who answered every of my question and was never wrong. I am disinclined to once again ask this question, since it is more arithmatic than technical. But, having worked 2 days on it, I realized my brain is just not juicy enough.... Here is the problem. Trust not for freedom to the Franks--- They have a king who buys and sells. -
2012 Apr 07
2
newbie question: strategy
newbie to R, less than a week, and I ordered some books about R, but I learn better by examples.. and thus far I cant find a good example of what I am trying to do... which follows: assuming one is using any instrument intra-day data... I want to.. open a file (lets name it signal) that will contain two fields... date/time(MM/DD/YYYY HH:MM) and signal (1=buy,-1=sell) open a file with real time
2012 Apr 24
1
Multiple Conditional Statement
Dear R helpers, I have two separate data frames. In one data frame the transaction data is stored and the other data frame has exchange rates stored say rate_A and rate_B where rate_A and rate_B are series of rates. rate_A and rate_B are properly defined and I am reading them through the appropriate dataframe. (Actually I have a different datasets and to try to keep things simple, I am defining
2011 Feb 11
1
if a variable is defined
I have an object type my.object. One of its slots contains a data frame (i.e. my.object@my.data.frame) .. I want to check if one of the variables exists in this data frame (i.e. my.object@my.data.frame$my.var) I am trying to use the exists function but can't figure out how the arguments work. Please help. So far I have tried exists(my.object@my.data.frame$my.var)
2011 Jan 10
2
Aggragating subsets of data in larger vector with sapply
Have 40,000 rows of buy/sell trade data and am trying to add up the buys for each second, the code works but it is very slow. Any suggestions how to improve the sapply function ? secEP = endpoints(xSym$Direction, "secs") # vector of last second on an XTS timeseries object with multiple entries for each second. d = xSym$Direction s = xSym$Size buySize = sapply(1:(length(secEP)-1),
2012 Sep 26
2
R and sell buy stock
Hi all, I have seen that R can be switched on to a Broker called IB. There is another one similar to IB that permits to make a "code" and send orders to broker to buy or sell stocks? Can be done trough R, writte in excel and trough API sell/buy to the broker? Can someone send me an example (easy example?) Many thanks. [[alternative HTML version deleted]]
2008 Dec 15
2
How to sell linux tools?
Hi, I need clarifications on how to sell linux tools. (Though i' not sure how people ready to buy it :) ) I have written few tools and planning to write more(by giving up current non-linux & boring job). I want to know,which license will allow me to sell tools/softwares? (I hope to sell the products through online) Cheers, Lakshmipathi.G www.giis.co.in
2006 May 30
2
Polycom replacement handset
Does anyone know where I can get replacement handsets for the Polycom SoundPoint IP phones? Or does anyone have any they want to sell? From the looks of it you have to buy a whole new phone to get a new handset. My vendor, TriaTechCOA, told me I had to buy a whole new phone to get a handset, which is pretty ridiculous. Maybe there is a more sane vendor I should be buying from? Thanks, -Ryan
2006 Feb 22
2
Cisco 79xx firmware
I have several Cisco 79xx phones (7905, 7920, 7940, 7960, 7970, ATA 186) and I need to buy firmware for them. I have contacted http://www.cdw.com and http://www.insight.com/ but they didn't respond. Can anybody tell me where can I buy SCCP and SIP firmware for my phones? BTW, I'm in Croatia (Hrvatska). I heard that location does matter. P.S. My local Cisco reseller wants to sell me
2007 Sep 04
2
Microsoft RTAudio
B. Mitchell Loebel wrote: > Hello LWATCDR: > > OK with me, but 1) I'm a Microsoft stockholder and 2) I'm not going to > stand still for people trashing Capitalist successes!! 'Nuff said. How about if I sell you a copy of speex. Buy low, sell high seems like a good capitalist plan, and then you could feel good about using Speex! Ben -- Ben Greear
2004 Sep 27
2
Cisco Downloads --> was --> Re: Cisco 7960 andAsterisk...not working...
> I too contacted CDW about the $9.37 Cisco support > contract. But because I did not buy my phone from them I was > not allowed to purchase it. The vendor I bought the phone > from does not provide them. What are the "magic words" to > get CDW to sell it to you? With all of this hassle I highly > doubt that I will buy more Cisco phones anyway. After >
2009 Jan 06
9
Test
Given that a 4-day silence on this list is almost unprecedented, thought I had better send a test post. Apologies for the spam. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB