This "R code" works fine in Jupyter but not in lab: library(IRdisplay) display_html( ' <script> code_show=true; function code_toggle() { if (code_s
Is it possible to display a projected raster on a projected basemap in R/leaflet? The addRasterImage() functions says that the projection needs to be in EPSG:38
I am looking for a solution for a problem that has arisen when building a generic ANN for image classification in R. What I want to do is either: Design and com
I'm trying to count the number of NA values in each of 2 columns. The code below works. temp2 %>% select(c18basic, c18ipug) %>% summarise_all(funs(sum
What does it mean the asterisk next to some item names in the descriptive statistics table given by describe function (package psych) in R ?
I have a mixed dataset (comprising continuous, ordinal and nominal variables) that is high-dimensional (with more variables than rows). I want to perform a mixe
I am having problems plotting a 3D map in Rstudio. Here is the code I used; plot_ly(myLocalClean, x = ~date, y = ~median, z = ~sales, opacity=0.5) #3D my resul
I cannot use models in mlr3 other than random forest, part, knn, svm, gbm etc. I am using mlr3extralearners package but still it seems there a
I'm kind of ignorant on the topic so it might be a simple mistake, but I have used cutpoints and then i'm trying to print a table with the sum of elements in ea
I need to add a fileInputs to each row of a table. Unfortunately, this widget does not work correctly, unlike regular actionButtons and other elements. The wind
I am using the feols command from the fixest package in R to estimate fixed effect regressions, in most cases with weights. In order to output my results, I am
this dataframe is about Farmers Risk attitude. I want to classify Risk Attitude, using Risk drought in Artificial Neural Network model. x=data.frame(x$Riskdroug
I have data of drug concentrations (DV) that include a parent drug and its metabolite, coded DVID 1 and 2, respectively. They are provided to me as separate ro
I am trying to download stock prices from yahoo of several shares at once using R loops. I tried the following code, and it produces results but I would like th
I have the following rmarkdown document: --- title: "Untitled" output: pdf_document date: '2022-04-28' --- ```{r setup, include=FALSE} knitr::opts_chunk$set(ec
I need to reduce the number of rows in a data set. To do this my strategy is to the number of rows in a group exceeds X number of observations, randomly sample
I have several data frames that have the same columns names, and ID , the following to are the start from and end to of a range and group label from each of the
I am currently analyzing eye-tracking data using the Sequential Bayes Factor method, and I would like to plot how the resulting Bayes Factor (BF; calculated fro
I am planning to reproduce the attached figure, but I have no clue how to do so: Let´s say I would be using the CO2 example dataset, and I would like to
I want to rename multiple columns that starts with the same string. However, all the codes I tried did not change the columns. For example this: df %>% renam