Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataframe vs xts #15

Open
miguellacerda opened this issue Oct 28, 2019 · 1 comment
Open

Dataframe vs xts #15

miguellacerda opened this issue Oct 28, 2019 · 1 comment

Comments

@miguellacerda
Copy link
Contributor

Would it be possible to add an optional parameter to return data (e.g. via a timeSeriesRequest) as a data frame, rather than an xts object? I find that I almost always wrap my requests in as.data.frame, because this format is more useful for subsequent manipulations (e.g. performing joins to other data). The data frame is also a standard format that most R users will be familiar with it, while xts is not as well known.

@CharlesCara
Copy link
Owner

Yes, that could be a useful enhancement. My thoughts are that there should be possible to set a default option for the return type. eg

mydsws <- dsws$new()
myData <- mydsws$snapshotRequest(instrument = c("ABF","RIO","WPP"),
                               datatype = "P",
                               requestDate = "0D",
                               returnType = getOption("DSWS.ReturnType"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants