search for: prices

Displaying 20 results from an estimated 5652 matches for "prices".

Did you mean: price
2010 Nov 18
0
.pkg won't fully install on my MacBook
...l apple updates in. My processor is 2.2 GHz Intel Core 2 Duo Memory: 2 GB 667 MHz DDR2 SDRAM Startup Disk is a Macintosh HD. The computer is almost 3 years old. It just had a new hard drive installed as well. Thanks in advance, Brad Price The installer log looks like: Nov 17 21:32:39 brad-prices-macbook /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer[1503]: vm_allocate: 0, 0x5800000 - 0x25800000 Nov 17 21:32:39 brad-prices-macbook /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer[1503]: vm_protect: 0 Nov 17 21:32:39 brad-prices-macbook Installer[15...
2006 Aug 09
2
has_many through delete issue
I have the following many-to-many relationships defined in my model code to model a many to many relationship between Media and PriceCode with Price being the association table: class Media < ActiveRecord::Base has_many :prices has_many :price_codes, :through => :prices end class Price < ActiveRecord::Base belongs_to :media belongs_to :price_code end class PriceCode < ActiveRecord::Base has_many :prices has_many :medias, :through => :prices end Based this exmaple off a recipr in the Rails Recipies Cook...
2006 Jun 02
2
I need help with my 1st sortable list!
...AdminController#sort You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.each #{RAILS_ROOT}/app/controllers/admin_controller.rb:171:in `sort'' # My view - <ul id="price"> <% @prices.each do |@price| %> <li id="price_<%= @price.id %>"> <%= @price.service %> <%= @price.price %> </li> <% end %> </ul> <p id="list-info"></p> <%= sortable_element ''price'', :update =>...
2006 Jun 07
2
Problem with a setter that converts euros to cents
Hi, I have some problems with an application where I''m using custom accessors to do currency conversions. In my model, I have a price attribute in the database that stores the value in cents, to avoid future problems with float arithmetic and round. But at the views, I would like to show the price in euros, with decimal for the cents. So I defined a new attribute called price_in_euros,
2006 Jan 03
2
For loop gets exponentially slower as dataset gets larger...
I am running R 2.1.1 in a Microsoft Windows XP environment. I have a matrix with three vectors (“columns”) and ~2 million “rows”. The three vectors are date_, id, and price. The data is ordered (sorted) by code and date_. (The matrix contains daily prices for several thousand stocks, and has ~2 million “rows”. If a stock did not trade on a particular date, its price is set to “NA”) I wish to add a fourth vector that is “next_price”. (“Next price” is the current price as long as the current price is not “NA”. If the current price is NA, the “n...
2011 Jan 17
3
to append a column to a data frame, has I use loop/if in my case?
days=Sys.Date()-1:70 price=abs(rnorm(70)) regular=rep(c(0,0,0,0,1,0,1,0,0,1),c(7,7,7,7,7,7,7,7,7,7)) y=data.frame(cbind(days,price,regular)) y is like days price regular 1 14990 0.16149463 0 2 14989 1.69519358 0 3 14988 1.57821998 0 4 14987 0.47614311 0 5 14986 0.87016180 0 6 14985 2.55679229 0 7 14984 0.89753533 0 the output I want:
2006 Jun 07
1
Setter that converts a float attribute to integer
Hi, I have some problems with an application where I''m using custom accessors to do currency conversions. In my model, I have a price attribute in the database that stores the value in cents, to avoid future problems with float arithmetic and round. But at the views, I would like to show the price in euros, with decimal for the cents. So I defined a new attribute called price_in_euros,
2004 Sep 01
3
Imputing missing values
Dear all, Apologies for this beginner's question. I have a variable Price, which is associated with factors Season and Crop, each of which have several levels. The Price variable contains missing values (NA), which I want to substitute by the mean of the remaining (non-NA) Price values of the same Season-Crop combination of levels. Price Crop Season 10 Rice Summer 12
2012 Mar 23
5
How to convert factors to numbers
Hello, I am relatively new to using R. The text file contains the date and price . I want to read and manipulate the data in R. However, when I use read.table, it treats all of the data as "factors" and I do not know how to treat the data as numbers: http://r.789695.n4.nabble.com/file/n4498828/p_diarios.txt p_diarios.txt setwd ("C:\\Users\\Sandro\\Dropbox\\R")
2012 Oct 17
3
subtotals based on price bands?
I would like to create a subtotal table with custom bands. seq1 = seq(0, 100, by = 5) seq2 = seq(100, 1000, by = 100) Bands = c(seq1, seq2) #Prices Prices = sample(1:1000, 200, replace=F) #corresponding size for the given price above. size = sample(1:1000, 200, replace=F) How would I find the subtotal of the size based on a given price falls within a band? -- View this message in context: http://r.789695.n4.nabble.com/subtotals-based...
2011 Nov 18
1
Filling a variable with unmentioned categories
...9;mentioned' is to receive values 0 in these cases. Note: Price points in original data can repeat if several persons mentioned that price point.   Example: a) Original data: price mentioned 0,00 1 0,00 1 0,02 1 0,03 1 0,03 1 0,04 1 0,10 1 0,16 1 0,19 1 0,19 1   price range is 0,00 - 0,19. Some prices are missing, e.g. 0,01 .   b) Supplemented data: price mentioned 0,00 1 0,00 1 0,01 0 0,02 1 0,03 1 0,03 1 0,04 1 0,05 0 0,06 0 0,07 0 0,08 0 0,09 0 0,10 1 0,11 0 0,12 0 0,13 0 0,14 0 0,15 0 0,16 1 0,17 0 0,18 0 0,19 1 0,19 1 0,20 0   Any ideas are welcome. Thanks a lot,  Mario Aachen, Germany [...
2013 Mar 04
3
Excel User interface for R
HI, Assume I have the data frame generated from R as the following: Product Price market_share A 100 10% B 110 9% C 120 20% D 90 61% What I want to do is to have this kind of excel user interface by changing price of certain products, to get the impact of market share generated from R: if I change A
2006 Mar 10
2
adding to has_many on create and edit
...king for a little validation (no flames please). I have a table of units like so: CREATE TABLE `units` ( `id` int(11) NOT NULL auto_increment, `number` varchar(255) NOT NULL default '''', `description` text NOT NULL, PRIMARY KEY (`id`) ) TYPE=MyISAM; that has_many :prices like so: CREATE TABLE `prices` ( `id` int(11) NOT NULL auto_increment, `price` decimal(10,2) NOT NULL default ''0.00'', `unit_id` int(11) default NULL, `created_at` datetime NOT NULL default ''0000-00-00 00:00:00'', PRIMARY KEY (`id`), KEY `unit_i...
2007 Oct 16
0
Simple plot of IR and option prices
Hi, I'm trying to construct what I think should be a fairly simple plot, yet I'm having a tremendously difficult time. I'm trying to create a very simple graph showing the effect of interest rates on option prices. I have three sets of option prices that I've calculated using rMetrics. Each set contains a call price and a put price at a particular interest rate. Each set uses a different interest rate(0%, 5%,10%). The idea is to have "call" and "put" on the X axis, the optio...
2012 Jun 16
3
Temporal disaggregation
Dear R users, I have a panel data set (in MS excel) on prices across countries and time country time price 1 "23/11/08" 2 1 "28/12/08" 3 1 "25/01/09" 4 1 "22/02/09" 5 1 "29/03/09" 6 1 &quot...
2011 Nov 17
3
Named rows in a table (data frame) read from a file
I read a table as follows: > F1 <- read.table("Rtext3.txt") > F1 Price Floor Area Rooms Age Cent.heat a 52.00 111 830 5 6.2 no b 54.75 128 710 5 7.5 no c 57.50 101 1000 5 4.2 no d 57.50 131 690 6 8.8 no e 59.75 93 900 5 1.9 yes As it is seen, the rows have a name. However I don't know how to access a
2010 Dec 05
3
Strange problem with CSV and funny chars
I am using CSV in a rake task (db:seed) on Rails 3.0.3, Ruby 1.9.2 to read a file with some funny chars in it. Upon breaking in at a point where the row read using CSV is in variable row, with the string with the char in row[''price''] I get the following strange results which I cannot understand. (rdb:1) row[''price''] "\xA32.00" (rdb:1)
2012 Sep 04
1
Producing a SMA signal when closing price is above the moving average for 3 days
I have loaded price data for GE and then calculated a 50 day simple moving average. Then I have a created a ifelse statement that produce a 1 when GE's closing price is above the simple moving average and a 0 when GE Closing price is below the 50 day simple moving average. However, what I really want to do is to produce a 1 for when the price is above the simple moving average for 3 days
2006 Nov 17
2
Data table in C
After getting one list done, I am now struggling to form a data frame in C. I tried to do a list of lists which gives me : $<NA> $<NA>[[1]] [1] "BID" $<NA>[[2]] [1] 0.6718 $<NA>[[3]] [1] 3e+06 $<NA> $<NA>[[1]] [1] "BID" $<NA>[[2]] [1] 0.6717 $<NA>[[3]] [1] 5e+06 $<NA> $<NA>[[1]] [1] "BID"
2008 Feb 20
1
Is there simple code for this simple financial time series task?
...I'd like to fill that closing price into the $closingprice column for all other rows having the same date. --This appears to be such an easy task, yet is there a simple way to do it that doesn't require a lot of cleverness? dates<-c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4) times<-c(1,2,3,4) prices<-c(14,15,16,15,15.5,16,14,13,13,11,12,13,14,15,16,15) ts<-matrix(nrow=16,ncol=3) ts[,1]<-dates;ts[,2]<-times;ts[,3]<-prices;ts ts<-as.data.frame(ts); names(ts)<-c("dates","times","prices");ts dates times prices 1 1 1 14.0 2 1...