Displaying 20 results from an estimated 2000 matches similar to: "Accessing variables inside a namespace"
2011 Dec 22
1
Trying to use chartSeries in quantmod
> colnames = c("date","price")
> data = read.csv(file="data.csv", sep=",", header=F, nrows=261, skip=5, col.names=colnames)
> library(quantmod)
> data
date price
1 2011-12-18 13.7825
2 2011-12-11 13.5500
...
...
...
259 2007-01-07 10.8256
260 2006-12-31 10.8531
261 2006-12-24 10.8169
# Here's where I would like to use
2012 Jul 27
1
Working with quantmod chartSeries and plot.zoo
Hi all,
I'm a newbie to R and it has been very helpful to use your website.
Unfortunately I've been struggling with my code now for two days so I wanted
to ask few questions. I've been trying to create nice graphs to put into a
pdf sheet but I'm having little problems with all the packages I've been
using. So what I want to accomplish is create one pdf sheet with three
graphs
2020 Feb 06
1
R (language) + install.packages("DMwR") :
Hi:please i am working on fedora 31, then i installed R (language), and i want to install a R package ("DMwR"), but i get these warning messages ...:
The downloaded source packages are in
?? ??/tmp/RtmpCBUyte/downloaded_packages?
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning messages:
1: In install.packages("DMwR") :
2024 Dec 18
1
get.symbols doesn' work
Hello r-project:
I want to load and use the tiny quant libary.
Hello R-project:
get.symbols doesn't work this morning.
I use this code:
#############################################
#
# install.packages(c("quantmod", "TTR", "xts", "zoo" , "tidyquant" ))
# Load the tidyquant package
library("tidyquant")
library(TTR)
library(xts)
2024 Dec 18
1
get.symbols doesn' work
Please look at what you wrote.
get.symbols vs. getSymbols.
-- Bert
On Wed, Dec 18, 2024 at 7:56?AM Phil Smith via R-help
<r-help at r-project.org> wrote:
>
> Hello r-project:
>
> I want to load and use the tiny quant libary.
>
> Hello R-project:
>
> get.symbols doesn't work this morning.
>
> I use this code:
>
>
2011 Oct 20
4
quantmod package
i am new to the quantmod package . so if the answer is trivial please excuse
me. i want to study stock values within a day. i get current stock updates
using getQuotes and then want to produce usual quantmod graphs with that
values. also the graph should be able of adding technical indicators. please
help. in addition it will be helpful if anyone suggests how to run that code
continuously to get
2016 Apr 09
1
Quantmod abline and axis configuration
Hi all,
I have this code
I want to add two ablines like this
abline(h=2400, lty=3, col="lightgrey")
abline(h=400, lty=3, col="lightgrey")
But doesnt wotk.
I alo try to set ylim from 0 to max "Foa"+1000 but I?m not able ?Is it
posible?
require(latticeExtra)
require(ggplot2)
require(reshape2)
suppressPackageStartupMessages(require(googleVis))
require(quantmod)
2010 Apr 10
1
How to install Defaults package offline
Hi,
I just installed R software on my machine which is not supposed to have an
internet access. I installed several package that I need, which are
quantmod, xts, TTR etc. When I typed require(quantmod), I get " Error:
package 'Defaults' could not be loaded". How do you install Defaults package
if you don't have an internet access ? Does anyone know where I can find the
file
2012 May 22
1
Quantmod, Xts, TTR and Postgresql
Hi Everyone,
I'm currently using the latest build of R and R-Studio server (both are
amazing products)
I'm still very new to this but I came across this issue:
I'm trying to do a select from postgres and put the data into and xts
object like so:
# Libs
library('RPostgreSQL') # http://code.google.com/p/rpostgresql/
library('quantmod')
library('TTR')
2011 Jul 26
1
intraday plot and gaps in data
Hi,
I have an intraday timeseries of financial data (see below) which has gaps
due to market opening and closing hours. I am trying to plot it, but the
time gap is always visible in the plot. I tried converting data to xts, zoo,
timeSeries and plotting it with different functions i.e. plot.xts, plot.zoo.
The only way to make it work was with function 'chartSeries' in the quantmod
package
2010 Aug 15
2
Adding colored background area to a time series plot
Hi,
I am trying to add a rectangular colored background area to a plot of a time series of relative price changes. I believe that what I'm trying to do is very similar to the question and example given here:
http://www.mail-archive.com/r-help at stat.math.ethz.ch/msg73948.html
http://www.mayin.org/ajayshah/KB/R/html/g5.html
My problem/difference is that my time series looks like so:
>
2011 Nov 10
2
Error in axis ????
I did an update of both rstudio and my packages. I had some trouble but was
able to move a lot of the packages so most troubles seem to be behind me.
But having a problem with code that previously ran fine. See below:
require(quantmod)
Loading required package: quantmod
Loading required package: Defaults
Loading required package: xts
Loading required package: zoo
Attaching package: ?zoo?
The
2010 Oct 28
4
Returning highs and lows in R
I'm having trouble returning a rolling n period highest value for a data
set. For each day I want to calculate the highest value over the last 3
days. I am using the following packages: zoo, xts, quantmod and TTR.
Thanks, Jason
GLD.Close
2010-10-01 128.91
2010-10-04 128.46
2010-10-05 130.99
2010-10-06 131.81
2010-10-07 130.37
2010-10-08 131.66
2010-10-11
2009 Dec 19
1
as.xts convert all my numeric data to character
Hello, all... I've been playing with the TTR package and quantmod, and I'm
loading the Chicago Board of Exchange put/call ratio data via a simple
read.csv call...
CBOEtotal<-read.csv(file="
http://www.cboe.com/publish/ScheduledTask/MktData/datahouse/totalpc.csv
",skip=1)
this gives me a data frame with columns....
> names(CBOEtotal)
[1] "Trade_date"
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
2011 Nov 20
2
Continuasly Compunded Returns with quantmod-data
Hey guys,
i want to calculate the continuasly compounded returns for stock prices.
Formula for CCR:
R_t = ln(P_t/P_{t-1})*100
With R:
First i have to modify the vectors, so that they have the same length
and we start at the second observation.
log(GOOG1[-1]/GOOG1[1:length(GOOG1)-1])*100
That does work with normal vectors.
My Questions:
1) I want to use this for stock prices.
so i
2010 Nov 21
1
abline(h=whatever) not working in candleChart() (in quantmod)?
Hello, all--
I am having some fun playing with the graphing in quantmod-- very nice! I am
writing a function to calculate (and hopefully plot) support and resistance
lines, but the usual plot call of "abline(h=value)" does not seem to work.
Here's my code:
require(quantmod)
AAPL<-getYahooData("AAPL")
candleChart(AAPL,subset="last 3
2012 May 18
1
Financial Statements Date Subsetting
Dear All,
I'm new at R, but I really just need a couple of things. The first thing I
need is to figure out how to get each individual financial statement
(CF,BS,IS). I need each individual one because getting them all at once
allows for formatting issues once it is a CSV. The date subsetting is what
I need because I will be running a statistical model in excel. I know I
could probably
2017 Aug 07
1
tidyquant error downloading symbols for Index
Hi R Helpers,
I recently tried to take advantage of the ability to download all the
tickers in the S&P 500 using the functionality of tidyquant, but it threw
an error.
For summary, the set of commands that I ran was
library(tidyquant)
tq_index_options()
tq_index("SP500")
sessionInfo()
R feedback including error message and sessionInfo are provided below.
Guidance would be
2018 Jan 18
0
Split charts with ggplot2, tidyquant
Hi Charlie,
I am comfortable to put the data in any way that works best. Here are two
possibilities: an xts and a data frame.
library(quantmod)
quantmod::getSymbols("SPY") # creates xts variable SPY
SPYxts <- SPY[,c("SPY.Close","SPY.Volume")]
SPYdf <- data.frame(Date=index(SPYxts),close=as.numeric(SPYxts$SPY.Close),