I got this problem after installing the new version of Rstudio/R , I had R version 3.6 and Rstudio 1.2.xx and after update I got this .T hen I tried doing a cle
Each time after I open RStudio, the first line of code I enter will result in this warning: Warning message: Error in normalizePath(path.expand(path), winslash
I'm working on a Mac and trying to connect to my remote Postgres database in R Studio. Error First, the error: Error: nanodbc/nanodbc.cpp:1021: 00000: FATAL: d
I just noticed that terra::cellSize() produces cell area estimates that do not match those produced by raster::area(). First, why do these two methods not provi
I have an issue where I kind of know what it is but do not know the solution to it. When I fetch data from an external Snowflake DB, it limits the size of the d
For some reason, my code chunks work but when I try to knit the file, I have an "object not found" error. Here's the chunk which causes the error: library(ggplo
I have a dataframe in R. My goal is to create a new column with if_else statement. If the value in a row is equal to the string "company", then the value of thi
I have a tidy dataset for census sectors in sf format (setores_sp_ok.rda), which has polygons for two different territorial models, indicated by variable modelo
I have a nested list of coordinates in the following format: feature <- list(type = "Feature", properties = list(`_leaflet_id` = 125L, feature_type = "p
I am trying to write data I have created in R and stored in arrays to MySQL table. Currently this is how I am doing it, for(z in 1:60){ dbSendQuery( mydb,
penguins %>% map(~replace_na(list(.=0))) Why the code above didnt work to replace na in the dataset penguins? The result is below # A tibble: 8 x 1 .
I am trying to make a word document from R. I use the officer package. doc = docx(title = 'test') When I do this, the standard template is used. Is there a w
I have a dataset that contains the observations of 30 people and each of them had done 20 experiments. Suppose my data looks like this: ID trial reaction r
I am trying to make a vectorized function using ifelse in R, but my code is only taking the first element of the vector. For example, as shown in my code below
The R package MatchIT uses a caliper width on the standard deviation of the propensity score. Is there a way to use logit of the propensity score?
I was running this code on RStudio param <- list(colsample_bytree = 1, subsample = .6, booster = "gbtree", max_dept
I have a code that counts how many points there are for each quadrant of 10x10 and shows the result in each quadrant I have this Dataframe qx qy n
I am trying to add a math symbol (sum) to some texts in x-axis. For example, if this is my plot. data(iris) p1 <- ggplot(iris, aes(x=Species, y=Sepal.Length)
Given a list that contains N strings of lowercase English alphabets. Any number of contiguous strings can be found together to form a new string. The grouping f
I have a data frame containing only one row with named columns. The data frame looks somewhat like this: poms_tat1 poms_tat2 poms_tat3 tens1 tens2