Comments (3)
Please try updating SIT and SIT.date packages
devtools::install_github('systematicinvestor/SIT.date')
curl::curl_download('https://github.com/systematicinvestor/SIT/raw/master/SIT.tar.gz', 'SIT.tar.gz',mode = 'wb',quiet=T)
install.packages('SIT.tar.gz', repos = NULL, type='source')
If you still get some warnings regarding indexClass, please install development version of xts and quantmod packages:
devtools::install_github('joshuaulrich/xts')
devtools::install_github('joshuaulrich/quantmod')
from sit.
Hello. Thank you very much for your support. I am a newbie learner of R and I am amazed by your job (All of them and your codes)
Well, The tools that you suggested seem to work because I pass this step, but now I have the following errors that I don't know if there are related or not but always stack I am.
I run this:
find prices in December
dates = index(prices)
years = date.year(dates)
index = which(date.month(dates) == 12)
rearrange data in trading days
trading.days = sapply(tapply(ret[index,], years[index], function(x) coredata(x)), function(x) x[1:22])
and I returned this:
find prices in December
dates = index(prices)
years = date.year(dates)
Error in as.POSIXlt.numeric(dates) : 'origin' must be supplied
index = which(date.month(dates) == 12)
Error in as.POSIXlt.numeric(dates) : 'origin' must be suppliedrearrange data in trading days
trading.days = sapply(tapply(ret[index,], years[index], function(x) coredata(x)), function(x) x[1:22])
Error in tapply(ret[index, ], years[index], function(x) coredata(x)) :
object 'years' not found
Suggestions?
from sit.
Now work perfectly. Thank you for your help. You can close the Issue.
from sit.
Related Issues (20)
- Error in as.character: cannot coerce type 'closure' to vector of type 'character' HOT 1
- How to backtest buy today and sell tomorrow long strategy?
- Portfolio construction issue with irregular stock tickers
- getSymbol.intraday.google() for indian markets returns wrong time?
- Compute.cagr trows "out of bound" error when package tidyquant is loaded HOT 1
- Function SP500.components not working
- load(data.proxy.raw.Rdata) HOT 2
- Two executions on same day using EOD data
- Question on FTCA algorithm implementation
- install.packages error HOT 1
- DCF missing results HOT 3
- Broken link to ishares
- bt.prep/bt.merge causes downloaded price data to be off by one day
- Data not properly read from ADVFN HOT 8
- RStudioGD 2 after dev.off() code
- Code in python HOT 1
- Installation error on SIT HOT 7
- SIT is dead? Or is it me? HOT 17
- What are you guys using now that SIT is dead? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sit.