search for: quanity

Displaying 12 results from an estimated 12 matches for "quanity".

Did you mean: quantity
2010 Jun 01
3
as.date
...10", "PALLADIUM Jun/10", "PALLADIUM Jun/10", "SUGAR NO.11 Jul/10", "SUGAR NO.11 Jul/10"), CREATED.DATE = c("13/05/2010", "13/05/2010", "14/05/2010", "14/05/2010", "10/05/2010", "10/05/2010"), QUANITY = c(1, 1, -1, -1, 1, 1), CLOSING.PRICE = c("81.2000", "81.2000", "503.6000", "503.6000", "13.8900", "13.8900")), .Names = c("DESCRIPTION", "CREATED.DATE", "QUANITY", "CLOSING.PRICE"), row.names =...
2010 Apr 23
3
substract start from the end of the vector
...ar group, Here is my df : df <- structure(list(DESCRIPTION = c("PRM HGH GD ALUMINIUM USD 09/07/10 ", "PRM HGH GD ALUMINIUM USD 09/07/10 ", "PRIMARY NICKEL USD 04/06/10 " ), CREATED.DATE = structure(c(18361, 18361, 18325), class = "Date"), QUANITY = c(-1L, 1L, 1L), CLOSING.PRICE = c("2,415.90", "2,415.90", "25,755.71")), .Names = c("DESCRIPTION", "CREATED.DATE", "QUANITY", "CLOSING.PRICE"), row.names = c(NA, 3L), class = "data.frame") > > df...
2010 Apr 16
1
data frame manipulation
...IGH GRAD", "SPCL HIGH GRAD", "SPCL HIGH GRAD"), CREATED.DATE = structure(c(14708, 14708, 14672, 14673, 14678, 14678, 14700, 14700, 14700, 14700, 14700, 14700, 14700, 14705, 14707, 14707, 14707, 14708, 14708, 14708, 14708, 14708, 14622, 14634), class = "Date"), QUANITY = c(-1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, 1, -1, 1, 1, 1, -1, -1, 1, -1, 1, 1, 1, -1), CLOSING.PRICE = c("2,415.9000", "2,415.9000", "25,755.7100", "25,755.7100", "25,760.8600", "25,760.8600", "2,355.9600", "2,355.9600&...
2010 Apr 29
3
convert Factor as numeric
...11, 14711, 14707, 14707, 14707, 14707, 14707, 14708, 14708, 14708, 14708, 14708, 14708, 14708, 14708, 14708, 14672, 14673, 14678, 14678, 14700, 14700, 14700, 14700, 14700, 14700, 14700, 14705, 14707, 14707, 14707, 14708, 14708, 14708, 14708, 14708, 14622, 14634), class = "Date"), QUANITY = c(1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, 1, -1, 1, 1, 1, -1, -1, 1, -1, 1, 1, 1, -1), CLOSING.PRICE = c("467.7500", "467.7500", "467.7500", "467.7500", "78.1300&...
2010 Apr 14
6
sum specific rows in a data frame
I have a data frame called "pose": DESCRIPTION QUANITY CLOSING.PRICE 1 WHEAT May/10 1 467.75 2 WHEAT May/10 2 467.75 3 WHEAT May/10 1 467.75 4 WHEAT May/10 1 467.75 5 COTTON NO.2 May/10 1 78.13 6 COTTON NO.2 May/10 3 78.13 7 COTTON NO.2 May/10...
2010 Apr 27
1
save a data frame in environment
..." *(\\d+/\\d+/\\d+) *$", "", lme$DESCRIPTION) library(plyr) PositionFut<-ddply(futures, c("CONTRAT","SETTLEMENT"), summarise, POSITION=sum(QUANTITY))[,c(1,3,2)] PositionLme<-unique(ddply(lme, c("DESCRIPTION"), summarise, POSITION=sum(QUANITY),DATE=max(CREATED.DATE),SETTLEMENT=CLOSING.PRICE[CREATE D.DATE == max(CREATED.DATE)]))[,-3] print(PositionFut) print(PositionLme) } As I'm totally new to this kind of sport, i.e. writing code, the code is maybe ugly, but it does work. Now, one thing is missing. I want to...
2010 Apr 30
1
read.csv and blank character in object name of my data.frame
...", "25/01/2010", "25/01/2010", "25/01/2010", "25/01/2010", "25/01/2010", "26/01/2010", "26/01/2010", "26/01/2010", "26/01/2010", "26/01/2010", "26/01/2010", "26/01/2010"), QUANITY = c(1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, -1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, 1, -1, 1, 1, -1, -1, 1, -1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, -1, -1, 1, -1, 1, 1, -1, 1, 1, -1, -2, 2, -2, 1, 1, -1, -1, 1...
2009 Feb 27
11
building a phone
Hi folks A common wisdom here is that one should use a proper hardware phone rather that an extra software on the user's PC. Why is that such a big issue? One thing that bothers me with the current crop of hardware SIP phones is that they are hopelessly properitary. So what would it take to build a fully-adaptable phone? Here are some of my thoughts. This is not anything I plan to do soon
2005 Jun 06
1
AW: Reading huge chunks of data from MySQL into Windows R
In my (limited) experience R is more powerful concerning data manipulation. An example: I have a vector holding a user id. Some user ids can appear more than once. Doing SELECT COUNT(DISTINCT userid) on MySQL will take approx. 15 min. Doing length(unique(userid)) will take (almost) no time... So I think the other way round will serve best: Do everything in R and avoid using SQL on the database...
2008 Jun 04
2
Mock with an attributes that has state
...erItem, :valid? => true, :product_id => 2, :cost => 1, :null_object => true) @order_item4 = mock_model(OrderItem, :valid? => true, :product_id => 1, :cost => 1, :null_object => true) Here is the spec I wrote to check for the quantity: it "should increment the quanity of the merged items" do lambda { @order.valid? }.should change(@order_item1, :quantity).from(1).to(2) end How do I create an attribute for ''quantity'' that has state on my OrderItem mocks? I realize I could do this differently and just do a should_rec...
2005 Jul 15
13
CentOS on Compaq Proliant Rackmount Servers
Greetings, Can anyone relate experience(s) installing CentOS on Compaq rack mount servers units please? Easy no problem, easy some issues, or ghastly do not do it under any circumstances... ;) Basically, I'm looking at some used/refurb dual PIII units and will run RAID on Compaq built in SCSI or is it easy to pop in some 3ware SATA in them? Let me know in terms of CentOS 3 and/or 4 please.
2010 Apr 15
4
Does "sink" stand for anything?
Hello Everyone,   Learning about R and its wonderful array of functions. If it's not obvious, I usually try to find out what a function stands for. I think this helps me remember better.   One function that has me stumped is "sink." Can anyone tell me if this stands for something?   Thanks,   Paul         __________________________________________________ [[alternative HTML