Displaying 20 results from an estimated 5663 matches for "price".
2010 Nov 18
0
.pkg won't fully install on my MacBook
...eciated.
I'm running on Mac OS X version 10.5.8 with all 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]:
v...
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_...
2006 Jun 02
2
I need help with my 1st sortable list!
...error -
NoMethodError in 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'...
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, and the corresponding
accesors:
class Repor...
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 c...
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 14...
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, and the corresponding
accesors:
class Repor...
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 R...
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-base...
2011 Nov 18
1
Filling a variable with unmentioned categories
Hello, list,
I've been struggling with this task for a while looking for an efficient way to solve it:
There are two variables 'price' and 'mentioned'.
I want to 'enlarge' data so that missing price points within the price range are added to variable price.
Also variable 'mentioned' is to receive values 0 in these cases.
Note: Price points in original data can repeat if several persons mentioned that p...
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...
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_...
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
opti...
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 &quo...
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 acc...
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) row[''price''][0]
"\xA3"
(rdb:1) row[''price''][0] == "\xA3"
false
(rdb:1) row[''price''...
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...
2006 Nov 17
2
Data table in C
...$<NA>
$<NA>[[1]]
[1] "BID"
$<NA>[[2]]
[1] 0.6717
$<NA>[[3]]
[1] 5e+06
$<NA>
$<NA>[[1]]
[1] "BID"
$<NA>[[2]]
[1] 0.6717
$<NA>[[3]]
[1] 17200000
and then as.data.frame them in R but this gives me
> print(l);
X0.type X0.price X0.volume X1.type X1.price X1.volume X2.type X2.price
1 BID 0.6723 3e+06 BID 0.6722 5e+06 BID 0.67195
X2.volume X3.type X3.price X3.volume X4.type X4.price X4.volume X5.type
1 19400000 BID 0.6723 3e+06 BID 0.6722 5e+06 BID
X5.price X5.volume X...
2008 Feb 20
1
Is there simple code for this simple financial time series task?
My code below makes a data frame with columns for
date, time, and price. Time on each date runs from 1
to 4.
I'd like to add a new column "ts$closingprice", which
would have the closing price for that date. To find
the closing price, I'd like to take the price in the
row having the greatest time value for each date.
Then I'd like to fill that...