Does R travis work on large data packages?
I seem to be running into a memory allocation issue when using R travis-ci on an R package that depends on a 90 Mb data package (i.e., that's where it gets its data from):* installing *source* package...
View ArticleCalculating Delta sensitivity between two series in R
I have two series with the price of a bond and the price of the underlying stock. I am supposed to calculate a regressed delta. I so far plugged the series into R and managed to obtain the coefficients...
View ArticleRaw data discrepancies ggpredict plot (lmer models)
I am trying to add my raw data to a ggpredict plot. However, I get the warning message "Removed 398 rows containing missing values (geom_point)" and some of my data points seem to be missing....
View Articledata.table bug: lapply on .SD reorder columns when using get(). Possible...
I found a strange behavior of data.table. I would like to know if there is a way to avoid it, or a workaround. In my data management, I use often lapply with .SD, to assign new values to columns. To...
View ArticleExtract tuples with specified common values in another column in SQL
I have a dataset that look like: Col1 Col2 1 ABC 2 DEF 3 ABC 1 DEF Expected output:Col1 Col2 1 ABC 1 DEF I want to extract only those IDSs from Col1 which have both values ABC and DEF in the column.I...
View ArticleR - Problems with JAVA in Linux Mint
I am trying to install the GetDFPData package, but this error is appeared: checking Java support in R... present: interpreter : '/usr/bin/java' archiver : '/usr/bin/jar' compiler : '/usr/bin/javac'...
View ArticleHow do I change the size of calendar icon in airDatepicker from shinyWidget?
I use airDatepicker from shinyWidget on my dashboard:HereI have succesfully change the size of the input container as shown in the picture, but not the calendar icon (in red circle). How do I do it?...
View ArticleHow do I apply the same filter to 50+ data frames?
I have about 50 unique data frames with the same column names. Right now I have something like this:df1_cleaned <- df1$price df1_cleaned <- df1$date df2_cleaned <- df2$price df2_cleaned <-...
View Article"unused arguments" in R even though all of the arguments are being used?
I'm literally specifying all of the arguments explicitly for this function (https://rdrr.io/bioc/coRdon/man/codonUsage.html).What could be happening in R? The error is not very informative on what's...
View ArticleGiven date ranges and corresponding IDs, find groups of IDs with overlapping...
I have a table with dateRanges and corresponding IDs. I want to group the IDs based on whether their start/end range overlaps with the date range for another ID. If a date range for an ID is partially...
View ArticleHow do I run a for loop on multiple word files in R
I have 44 doc files. From each file, i need to extract the customer name and amount. I am able to this for one file using the read_document command and using the grep to extract the amount and customer...
View Article3D bar chart with colour as a fourth dimension
I'm trying to plot soil types of a sonic log against soil types of a Drillers log at 0.5m increments of depth down to however deep the whole is. Each Sonic Log Corresponds to multiple Driller logs. I...
View ArticleCommon axis labels arrange_ggsurvplot?
How can I add common axis labels to a multi-panel ggsurvplot? I have created four separate survival plots, see code and plots below. I can combine them together into a single multi-panel plot, see code...
View ArticleWeighted regression for multiple point patterns in R [closed]
I've been using the mppm function of the spatstat R package in order to estimate the intensity of a non-homogeneous Poisson process with multiple realizations.However, similarly to providing weights in...
View Articleggplot: grouped bar plot with column group ordering
I have the following data:benchmark <- data.frame( num_element = c(10000, 40000, 70000, 100000, 130000), a = c(4.4363, 70.913, 215.83, 440.84, 740.84), b = c(5.6356, 26.254, 48.570, 71.882, 95.455),...
View ArticleProblem with survival function in Shiny App
Recently I'm using the survival package in R, in order to be able to better measure the waiting time of patients in the Emergency Department of my Hospital, what I have achieved. However, it's complex...
View ArticleHow to keep list's element's names with lapply(seq_along())?
I would like to keep my dataframes' names after each lapply sequence with this code. The resulting list (list2) have all my dataframes names disappeared. How do I improve it? Thank...
View Articleconditional calculation within a function
I have a function where one of its parameters is a character variable called var. var is a dynamic character variable that takes on different combination of elements at different times. To give a...
View ArticleIn R, how do I create a bar graph using a categorical x and the average of a...
I am using R version 3.5.1.I started with this problem, and used the code suggested by the top comment on my own dataset, where time_len is a categorical variable telling how long it takes to play game...
View ArticleCreate a more aesthetically pleasing timeline in R and ggplot2? [closed]
I've been working on a timeline for my company that displays each new country that has had a business engagement for that year, basically the SQL queries fetch the information from the database and...
View Article