I'm a newbie in R. Is there anyone who can help me? I import a CSV of extract of stackoverflow data from, s <- read_csv("https://www.ics.uci.edu/~duboisc/sta
I am attempting to take a fairly large dataframe of comments from a survey and use grep to identify comments that contain one of a list of keywords index <-
I have a dataframe with numbers that I need to format. How do I add leading zeroes to only numbers that starts with 6? All examples seen using str_pad() or spri
Up until now I find any problem I have has been had and posted here already, but this time I'm really at a loss. I am running grep in R to look for a list of re
The code is as follows; Supplier_List <- data.frame(companies = c("company1","company2","company3")) Streamed_Tweets <- purrr::map_df(Supplier_List$compa
I am trying to fit an xgboost model using the native pseudo-Huber loss reg:pseudohubererror. However, it doesn't seem to be working since nor the training nor t
this is not a very good title for the question. I want to sum across certain columns in a data frame for each group, excluding one column for each of my groups.
I have a data frame with multiple similar sequences in which column Z has a string pattern containing "VALUE1" and "VALUE2" (only these two patterns matter) and
I am trying to plot a path diagram of a Structural Equation Model(SEM) in R. I was able to plot it using semPlot::semPaths(). The output is similar to The SEM
I have a dataset that I need to track customers spending week by week based on the store. store <- c(1,2,3,4,5,6,1,2,3,4,5,6) week <- c(1,1,1,1,1,1,2,2,2,
I am exporting data from a CSV file that has two columns. One has time and the other has power. The time columns has the time in two different formats: mm-dd-yy
I am working with fixest package. Great results so far. My data could be set as a panel. Is there any way for fixest to run run panel data analysis. My model lo
I want to store non-rectangular data in a structure, e.g. in a list. Referencing previous data works using a tibble, e.g. like this: dat <- tibble(a = 2,
I have folder where many lidar(.las) files. It looks like library(rgdal) library(raster) library(tmaptools) library(tmap) library(lidR) library(RStoolbox) las=
I am attempting to put together a real estate dataset, however when I try and extract the text from the website, for example the names of the places, it returns
I am a beginner to R, I have a file like below. state population Alabama 4779736 Alaska 710231 Arizona 6392017
for (i in 1:25) { pid.means[,i] = apply(get(paste("pid.tf",i,sep="")), 1, mean, na.rm = TRUE) } I understand the function of this for loop, but i can't fin
I am creating a grouped bar plot using plotly. As level of my values differ I am using two y axes. I would like to split a legend (idea presented on a picture
I have a dataframe (df) in R and I want to create a new column (city1_n) that contains a line stored in the list key whenever there is a partial match between c
My code runs a model in R directly from Excel. I want to simplify installation so instead of: path = """C:\Program Files\R\R-4.1.1\bin\Rscript.exe"" C:\Users\di