python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Parsing one column with 5 didgits integers as date format while reading excel file
For an excel file (download from here):
df <- openxlsx::read.xlsx('sample_data.xlsx', sheet='Sheet1', colNames=TRUE)
df
Output:
date value
1 43861 5.70
2 43890 -13.89
3 43921 -49.68
4 43951...
ah bon
Votes: 0
Answers: 1
Why am I getting an error message when trying to plot an xts object in R?
I am trying to plot an xts object in R. Below is the code I am running that gives me the error message.
outcomes_xts <- xts(true_outcomes, as.yearqtr(end_dates))
plot(as.zoo("outcomes_xts&quo...
shineoballo
Votes: 0
Answers: 0
Grouping data by quarter but adding a cut off date to account for zero values
I have the following dataset that are being grouped by quarter. The issue is that after Q3 2021 i.e. in Q4 2021 and Q1 2022 there hasn't been any cases so no dates in original data to look at and grou...
Hank
Votes: 0
Answers: 1
rollapply fails to cover/roll the whole data set
I'm trying to run a function I created using rollapply, on a dataset that has 5706 data points. The function (basically calculates Rescaled Range), uses all the observations in the window (in this cas...
Mangoman
Votes: 0
Answers: 0