FAQ: What's a reproducible example (`reprex`) and how do I create one?

Why reprex?

Getting unstuck is hard. Your first step here is usually to create a reprex, or reproducible example. The goal of a reprex is to package your code, and information about your problem so that others can run it and feel your pain. Then, hopefully, folks can more easily provide a solution.

What's in a Reproducible Example?

Parts of a reproducible example:

  1. background information - Describe what you are trying to do. What have you already done?
  2. complete set up - include any library() calls and data to reproduce your issue.
    data for a reprex: Here's a discussion on setting up data for a reprex
  3. make it run - include the minimal code required to reproduce your error on the data provided.
    People should be able to copy and paste your code chunk and get the same error.
    How do I format my text so it has nice code chunks?
  4. minimal - strip away everything that is not directly related to your problem. This usually involves creating a much smaller and simpler set of code and data compared to that which created your issue.

Use the reprex-package to Build Your Reproducible Example

When creating a reprex by hand, it’s easy to accidentally miss something that means your code can’t be run on someone else’s computer. Avoid this problem by using the reprex-package.
The reprex package will save effort for you and others who want to help.

Personal and Private Information

Users should not share personal or protected information in topic threads or reprex data.
What if you need to share contact info or an ip, or discuss data for a reprex related to a protected dataset? What if you see a violation of this policy? Check out Personally Identifiable & Protected Information Guide guide and our Privacy Policy


Beginners - Step by Step Help

Help asking R-related questions (not specific to the reprex-package)

Background on the reprex-package

7 Likes
Kable message: multiple "over-long path length"
Frequently Asked Questions
First shiny app - error message - missing argument
Error saving file with garbled error message
Flashing/disappearing imageOutput
Logistic linear regression failed - wants to know other model which suits this
Help needed: non-numeric argument to binary operator
Reprex vs. reprex-package discussions
Track down error in R
Figure Caption in R markdown
Multiply matrix numeric with matrix no numeric
Plot() does only show Residuals vs. Fitted, but not other diagnostic plots; par(mfrow=c(2,2)) already applied
How to Read Large JSON file in R?
Forecasting - Combination of methods
Unable to import Excel workbook
How do i use the ranking function Row_number with multiple conditions in R
Ggplot troubleshoot: Error: Aesthetics must be either length 1 or the same as the data (24): x, y, fill
Plotting quantile regression coefficients
How can I plot data in a CSV file after uploading it using R shiny? I have used the code below and seems not working for me
Plot truncates on x-axis - advice to avoid this
I need help to add the title to a MCA factor map plot
Error in keras_model_sequential() : file name conversion problem -- name too long?
How to work on dataframes with different lengths
Problems with dcc function of the treeclim package
Degree of vertex
the dataset requirements using fable--Tidy forecasting in R
Geom_bar + facet_grid not behaving as expected
In R, how do I code "only show the first 2 words" of an output?
Converting a continuous variable to a discrete value for regression
Modeling bimodal curves with smsn.mix()
What is wrong with this tidy eval function?
A r code execution error about fuction "text"
StatBin requires a continuous x variable the x variable is discrete
Reproducing results from Cameroon & Trivadi book
Circle in ggplot2
Plotting over an existing plot with ggplot2
With monthly measurements points
Refresh query on every new entry in database and instant response on my plot
"closure" is not subsettable
Demeaning / Mean-Centering of certain values only
Wavelet Coherence
Selecting suitable supervised learning algorithm
Ggplot not showing all dates on x asis even when forced
Error in ANOVA contrast commands
Plot large data in R
gvisMotionChart From googleVis is not working any suggestion?
Problem with applying function to a dataframe
Data frame error - "replacement has 4 rows, data has...."
How to apply corrr::correlate by group?
GGMAP : Unable to create points on the map
Writing Greek in Rstudio
Single and double Quotes at SQLQuery connected to Presto
Empty spaces instead of wormplots (wp() function in GAMLSS module)
A cry for help with boot()
How do I make an ad hoc smoothing parameter in the Adehabitat HR package?
Recursive calcs on timeseries
Cex installation problem
Deploying Error, No problem a few days ago
Changing colour of bars in chart on ggplot
Error in UseMethod(TermDocumentMatrix, x), Mail Base
renderPlotly creates lines between points when combined with ggmap
(not so) stranger things
Finding all Universal Combinations in an Occurrence Matrix
Problem with Clustered SE's
Ifelse with mutiple actions
Need Help in Running the codes
Importing xml in R
Merging survey data with geographic data
Rstudio in Linux
BLAS/LAPACK routine 'DLASCL' gave error code -4
Programming Help
Tags$img problem with srcset
Importing Data with API
Rounding and piping
Aligning tables in the center?
Chunk of Python code continues to run after clicking on red square
Subsetting dataset to include numerical values in a column
Bookdown: Blank output files (basically the output in HTML is blank an no RMD data is shown)
Add a Zoom on my plot
Pink dots appear in files and unable to save files intermittently MacOS High Sierra
Roxygen2 does not work with R 3.5.0
Inconsistent digits beyond decimal when combined with scientific notation kableExtra table R markdown
Find the elements that sums closest to zero value
System call within R shiny
Matrices x Vector multiplication using R script
Creating a new column with breaks
Plotly plot showing in viewer pane instead of R notebook
How to customise colours to specific things
Rcpp can't find sugar functions
Problem with "bnlearn" package & string elements table by reading with excel (or readxl...)
Can't add images to R Markdown file
R HELP! PSO Package - "Error during wrapup: incorrect number of dimensions
Rstudio and Linux Ubuntu18.04
Debugger stops at incorrect line
Ggplot2: How to specify x labels in a datetime data and two segment lines
Beginner question
How to average/mean variables in R based on the level of another variable (and save this as a new variable)?
Installing readxl, tidyveerse and devtools
Get Google trends data - problem with output
Ggplot doesn't take an Empty dataset what to do?
A Durbin-Watson test question
Could not find svmRadial function
Problem with summarize in r
Dplyr summarise categorial variable that appears multiple times
Problem with "jitter"
Sqldf questions in R studio
Problem in 'matplot' function
Create Volcano Plot
Keras Input~Output dimensions
Error Preventing Knitting
Plot(table) in googleVis
Transforming daily data in wide format to long
In pearson correlation if the value comes in complex fromat (1.346045e-17) then what it means
Error: cannot allocate vector of size 196.1 Mb In addition: Warning message:
gganimate with lines.
Mixed GLMM Model - Issues with using weights argument
Transposing/Reshaping Data Frame
Error in gzfile(path.expand(tarfile), "rb") : cannot open the connection In addition: Warning message: In gzfile(path.expand(tarfile), "rb") : cannot open compressed file 'NA', probable reason 'Permission denied'
Rstudio to hadoop cluster connection to read hive database tables
Slowing of ggplot2 and plotly
Linking CRSP and Compustat in R
Convert pair(1L,2L) to pair(1,2)
Connecting R with Database | Large Query Result
Switch beetweeen tabItems
Autolayer() deleted from ggplot2 and forecast package - alternatives?
Read string from array
Facing problem while writing the R code
Need help to convert data to xml
An important bar in the graph
How to assign a letter grade to the marks while doing the results analysis for examination results of a class?
How to get percentage and then create a plot from a given output
Ggmap: how to highlight city limits?
Downloading CHIRPs rainfall data
Create Volcano Plot
Regarding adding bar labels at the top of each bar in ggplot() in Rstudio
Problems installing packages between CRAN and file location
Error: `by` can't contain join column `shopper_id` which is missing from LHS - But it is!
Helping with the code, it doesn't work without any error
Adding column based on other column
Loading ECG binary .dat files
Str_replace_all - how to use
I want to use ggplot2 and reshape to draw multiple densities on the same plot, tried this is my code and error,
Importing data from table using Shiny
Building Dendrogram using NormalizeMets
Shiny Tutorial Lesson 5: How to add counties name on the map
Problem with non-ASCII characters in DocumentTermMatrix
Error: no applicable method for 'mutate_' applied to an object of class "character"
Copy array & keep data formats
Collecting tweets based on csv file with point coordinates
Document term matrix in XGBoost classifier
How to Ignore one of the factors in a Column
Combine 3 CSV columns into a variable
Define a new column for genre of the movie
How to Create Textbox in Server
I have to insert 0 into NA and missing values in a csv file
hclust using your own results
How to use tidyverse to group columns
Advice for Improving Community Response to Modeling and Machine Learning Topics
Gmailr formatting
Error in $: object of type 'closure' is not subsettable
Generate a data frame from many xml files
Need Help : group_by and summarize_each
Data Frame: join a groupby with a new column as a new index
Tidyverse ggplot() help: How to segment each column in the geom_bar()
LEA Help Excel File Layout
R : dynamic plot value and x axis value for line chart
Selecting data in a range
Xml2 package installation issues - pkg-config PATH help
Problems with 'select' function, unknown column rlang error appears
Read.table with no header
RStudio GUI crash by use of manipulateWidget function
Multiple bounded dichotomous choice
Problem with titles and subplot
Arguments imply differing number of rows
Subsetting Data
I want to create a new variable with logical operators
Python TypeError
Error in eval(predvars, data, env) : object 'avg' not found
Effect size in forest plot using metafor
Flextable output in RMarkDown
background color in data table
R session aborted while running autoencoder
Support Vector Machine - Can't create an additional predicted value for my data set
Tukey-HSD results
Mutate_at() not ignoring NA values with janitor functions
How to track each unique customer's purchases over time
Which library to find the range of parameters with highest result?
Can R Studio show me which line number in my code was called last when an error occurs?
Data prediction for missing data
Passing ggplot2 options to a custom function
Exporting file in CSV gives junk rows using write.csv / write_csv
Unable to do a group_by
Creating a shiny app UI for R model
Geom_text - Math expression label annotation - color, parsing, and subgraph labeling problems
Load a retrained keras mobilenet model
How to anchor for the omic circos plot using a set of genes?
DPLYR not recognizing a column that is in my dataframe
Data wrangling and line graphs
Knit to HTML Error
Retrieving stored ARIMA model using REACTIVE function -- Error in as.vector: cannot coerce type 'closure' to vector of type 'character
Selecting rows from a data
Date format changes while using levels in R
Image classification error in Rstudio for keras
Go to a different Page in shiny by Clicking on the link on an image
'data' must be 2-dimensional (e.g. data frame or matrix) while using DT format R Shiny
Shiny app works fine locally, error when publishing to Shiny server
Beginners difficulties making graphs
Create character strings with a certain length from a data frame
Revamping string elements
Control chart in R
Code error while running with the dplyr
Create scatterplot with multiple variables
How can I generate a GG Diagram in R Studio?
Query Data from Snowflake Database
How to get a file downloaded from an .aspx website after completing a form
Filter from a dataframe and create another dataframe
Non-R code blocks not executable in Rmarkdown
Pascal triangle
Ignore this, I need to update the question
Convert variables to 1 and 0
How can I write 3 blocks of code to 3 files when the blocks of code and the file names are in different lists
Error subset data .txt
How to add a counter to each group in dplyr
How to add a counter to each group in dplyr
Changing Base R code to dplyr/sparklyr
Locator function getting stuck
Ignore regular expression in grep pattern
Viewing corrplot
R^2 of regressed line fitted through origin
Error: Columns `x`, `y` must be 1d atomic vectors or lists
Coming up with Example/Dummy Datasets for a REPREX
Error in .cbind.ts(list(...), .makeNamesTs(...), dframe = FALSE, union = TRUE) :
ggplot position dodge with position stack
!self$finished is not TRUE
2 groups - multiple variables
Data.Table method of doing the following:
Subject package
Rshiny throws error after publish the app
Import multiple shapefiles and export a .csv file
Error message popped up
ggplot choropleth map merging trouble
Using n_distinct
K Cluster Method
Ggplots appearing as default R plots
<!DOCTYPE html> in rendered Rmd document
Second order Response Surface
R script issues
Create column for T+0
Equivalent to switch in tidyverse running a list of commands
Error message popped up
I need a script to perform a regression in R
How to create a global attribute that is itself an array
Need to import data from a .csv file. Turn into time series and plot the time series as well as the linear regression
Does Merge work different within a created Function?
KNN imputation and error messages
Result of function into dataframe. R beginner, first post
Stringsasfactors doesn't work!
How may I add the amount of variables (e.g. n=5) of each data.frame on the x-axes to the ggplot?
Does Merge work different within a created Function?
Data frame not inserted the right value.
Ggsave aspect ratio / whitespace (use case: favicon for blogdown)
Separating columns containing descriptive and capture-recapture data
Improve the speed
Forest plot study labeling
Create vector from file names in folder?
RStudio crashes when doing lm
How to merge the two different data frame column with row matching?
Plots crash while exporting as .svg
<simpleError in is(obj, "ore.frame"): could not find function "is">
Filter bigram list from a dataframe
How to make a non-stacked bar plot with one column table?
Get column from table
Error with plotting graphs for regression models
Text concatenation
Problem with using optim
Warning messages: All formats failed to parse. No formats found - lubridate date interval
R does not find a variable
Error in vinecopula
Trying to create balanced train set with SMOTE
Line of best fit
web scrapping data from webpage and save in data frame
Prepping and importing time series data (for noobs)
Write to CSV, column of string values
R studio: Error in tabular
identifying exact or near duplicate names in a dataset
NAs introduced by coercionError in mutate_impl(.data, dots) : Column `XY` must be length 96 (the number of rows) or one, not 8
I am having trouble loading lm or the regression program onto R
How to change icon position using bsButton
Shiny multiplying graph whem click in textInput
Help with filter and select function
Is there someone who has used bnosac/image YOLO package
Ggplot legend error
I'm having trouble using lm function in my code. How can I debug this?
ActionButton with eventReactive
How to add two sub-columns in one (Concat) using datatable (DT) in R Markdown/Shiny?
Suggestions required
Permutation with two vectors
Writing code to do word counts for a large corpus
Performing GLMM using binomial data
ggplot :Error in as.Date.numeric(value) : 'origin' must be supplied
How to display non-English (Japanese/Chinese) characters/text in Shiny on Windows? (NOT ABLE TO ENCODE)
Merge Two Dataframes
Help with Rcode! (University work)
RStudio Server on Redhat issue with ggplot2 axis charts wrong
Remove dubliertes
R not recognizing first data point
the data points on the graph are not plotted, even though the header of the csv file can be shown, i think somewhere in my code its not able to read the data
I used clean data according a column number range isn't work correct.
the data points on the graph are not plotted, even though the header of the csv file can be shown, i think somewhere in my code its not able to read the data
twitter analysis
R Studio crashing with dplyr joins?
need help for tweet scraping
Evaluation error: Operation not allowed without an active reactive context
Forecasting plot -adding fitting and validation area
Remove duplicates based on a variable but ignoring NA's
Remove values Based on a criteria and re-run average, sd and sem
Compare each element in same column with other set of records
Downloading Data after Filteration
Automatic scale with ggplot
transforming coordinate system
How to include superscripts and subscripts on axis from hist3d plots? plot3D package
Matrix Multiplication
Limiting the range of colours in a featureplot
Pairwise alignment error message
New user- troubleloading my 3d data for analysis
Not understanding the reason for the error and solution to it
Error in missForest command
How to compute the value for factor variables?
R Shiny apps dashboard - making a PDF print
I can't use the plot function, am getting this error
3x3 FActorial Design with Repeated Measures
RStudio 1.2 `NA` show up as 0 in dataframe viewing tab
table in markdown
Linear regression with data from excel
Bookdown not acknowledging (finding) css and tex definitions
Convert values in alternate rows of first n columns to negative
Not understanding the reason for the error and solution to it
Character addition in column rows
Calculating the averages in bins
group_by then mutate not working
Error in UseMethod("predictLink") when trying to fit Lee-Carter using StMoMo
Shiny debugging error with if sentence
why R did not recognise month of "January" in my plot
About creating multi variable bar chart using ggplot
Rstudio crashing when trying to run xgboost model
Reprex FAQs: should we say more about when NOT to use `reprex()`?
problem with time rstudio
PSnonmem and GGPLOT
New to R - need any help that I can get
Graphing time Series
ggsave very slow
gganimate has problem of white space in plot area
any r tutors available here? I need someone to look at my code
numericInput - hint implies only integer values valid
WebScraping in page table
How to combine values within a variable
How to combine values within a variable
How to combine values within a variable
Create a command to compress the space in the description
Linear Mixed Model
Relevel function in R for GLM
confusion matrix - predict function
shiny plot based on window size
Missing interaction effect in 2-way anova result
How can i access list of list
LateX equations not porting with includeMarkdown
Problems with knitting to PDF
Need serious help - inherited an R script and I don't program or do this for a living
Common Error "all arguments must have the same length"
Stack Area Chart creating Holes/Gaps
Using solve() to find inverse of a matrix containing real and complex numbers
Hadley on reproducible examples: add to reprex FAQ?
Willingness to pay by gender
Rstudio and Linux Ubuntu18.04
Willingness to pay by gender
analysis help--choosing method of analysis
Bug of the plot generated by R code
superimposed geom_* with ggplot2
Violin plot: binary data
How to substring value from row in r
str_replace applying to more than one column with mutate_at
recode characters to values (clueless warning)
Specifying plotting settings plot(ACF(data))
add a legend to a ggplot2 plot
Error message: 'names' attribute must be the same length as the vector
Assign range of dates for each unique row in the dataframe.
Forecasting data of export Wh-with irregularly spaced time series
Knit as pdf not work
Interactivity in ggvis
Edx course problem - creating new column, applying function
Edx course problem - creating new column, applying function
Error when trying to use corrplot
Help with: Error in seq.default(1, nchr, by = ncycle) : invalid '(to - from)/by'
R-Studio - Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied only to factors with 2 or more levels
R Studio Package Installation Not Recognized - cannot remove prior installation of package ‘...’
[ solved ] RStudio IDE Viewer is not rendering the styled HTML output from ztable package
Date format conversion
RStudio - loop command for series of images and export without overwriting
Confidence Interval: getting "NA" as an answer. Why?
Problem with Variable?
invalid multibyte character
Smacof unfolding - package onboarding suggestions
failed to Biological Id Translator
Using list columns in data.table
how to save internal output in R studio?
What does nnet minimise
What does nnet minimise
Regarding glm.nb and the theta parametre.
Query related to R language to find percentage
Creating a time serie - help I am a beginner :) -
How to fit large amounts of data into Flexdashboard
How to replace x- axis values (log scale) with their respective untransformed linear values in base R histogram
Error in as.environment(pos) : invalid 'pos' argument
Restart Rstudio in order to have my code working
Making aggregated rate per 100 000
Extract time then save into a new dataframe
ggplot with reactive data input question
Help for graphical representation
Regarding Multiple Bar diagram
R Markdown is not knitting tables
Hybridizing "Basic DataTable" and Data Explorer in "SuperZip example"
OR operation on similar row items
OR operation on similar row items
How to plot categorical data in R?
R-Beginner: How to seperate to groups
Filter out empty elements from list col
google route optimizer
Saving factor scores from factor analysis
Develop web application using Gapminder(total population dataset)
You can help me! I have to Open a .RAR file
Janitor: remove_empty() or remove_empty_cols() not appearing
R presentation section headers look way fatter and more bold when viewed in browser vs. preview
Error in RMarkdown knit yaml
Problem with Linear mixed Model in Split-plot design
R Studio Mac axis not showing label
Knit to PDF only opens preview the first time
joining or merging two datasets
Error in creating recession bar with tis package
Help with a strange Error messsage
Change color text axis in barplot
Why am I getting the same output even if I use different input images?
How to subtract dates using dbplyr
Joining datasets using foverlaps
color the y axis variables with different colors
R crosstab with thousands delimiter
Creating server for Web applications
Barplot not in scale
Cannot get scatter plot right
what package do I have to download to get a Quantile-Quantile graph?
Student, looking for help with rStudio and the acs package.
Creating persistent data from within an R Markdown code chunk
Saving clean data into new data frame
Half year periods based on date
Cannot download plotly charts into png format or svg format.
Exporting tables to xls or ppt
Work with multiple .osm files [Open Street Map]
Is "create a reprex" becoming a bit too stackoverflow-esque?
Restructure data frame through aggregation
How to groupby values in R for the same value?
Two Regression Lines in single plot, shaded by year, and points indicating a different location
How to obtain individual slope coefficients for a growth curve model
how can I summarize survey answers from a data table in R shiny?
POSIXct Problem
how to make a graph with a list class variable?
Ggplot label - advanced background
Bayes Decision Boundary
Savewidget to default browser location not working directory
Bayes Decision Boundary
Stacked bar chart with continuous Y variables
Help with Function()
Column that is a list
What is the difference of occurrence and density for different types with in 4 different populations
Correlation problems in Rstudio
time series modelling
How to plot several categorical variables in r
using sqldf to join two data frame but result is converting from Int to Logical
How to plot several categorical variables in r
im looking for two codes
How to extract factors names from anova function
Conversion csv into time series ts R Studio
pa package in R - performance attribution
Problem finding missingness (wrangling data) using tidyverse. Getting Evaluation error.
box plots are overlapping in ggplot2
Adding a Legend to an Existing ggplot
graph issues with overlapping boundary
Remove the axis.y.text
data.table error: Error in is.finite(if (is.character(from)) from <- as.numeric(from) else from) : default method not implemented for type 'closure'
Non-allowable allele encodings in DH marker set
replacing NA with for loop vs dplyr
Same code, same data, different output.
Delete all rows with non-missing values in certain columns
Problems with inserting Data
Comparing Panel models after they have clustered SE R
Code works fine with R Script, but does not run with knitr
deidentify and duplicate data
landsatlinkr version 0.5.0 is not creating t.c file hence error during compositing
R gives error with the mean but not with median
Point shape in ggplot2 with distance matrix
Facet Wrap help
data frame not available outside observe event
2 graphs in one plot in shiny not showing lines on geom_line
Why am I receiving a map_lgl error using dplyr for filtering my data?
Animation Slider Date Order
RMarkdown knit fail when works in editor
Help on - Loop - argument is of length zero
Help on - Loop - argument is of length zero
Create a percentage stacked bar chart
How to change Pearson to Spearman rank correlation
str_replace_all problem
need help with Haversine function
total data is double
r equivalent of sas put statement
PCA plot mean point
Removing NA values from a specific column and row
Have a warning or prompt before closing the Rmarkdown
ggplot : Beginner question about string data.
ggplot2 error message for Hidden Markov Models
How to insert a new column in a forest plot - meta-analysis?
an error shows everytime
Error: Evaluation error: no applicable method
arguments imply differing number of rows in Data Frame Error
Implementation of Decision Tree in R
Error in gbm.fit
Linear Regression
Double loop to create a dataframe
Need to convert the Multiple Data frames with Array to single data frame
Add label to the Top or center of column chart
R studio can't find object
Calculating the hours minute secs and millseconds for few groups - Error on conversion
Both t.test ; why different p-values??t.test()&ggboxplot()
Help needed! Aggregated counts in R
Categorical data
Outliers in Box Plots.
Blogdown and Streamgraph
2D plot from a matrix
ggsurvplot() error
Can a mean line graph be plotted along with boxplot using highcharter.
String Splitting for file path (for entire data set) with one column not a single path given by the user
Using dummy variables for categorical data
Double X axis on R studio ?
Change node colours
return function
how to convert a data matrix into an array
Error with geom_sf()
Plot image() like an example in Python
Rmarkdown chart displays in editor but when knit misses labels from ggrepel
Static tabsetpanel
Error in contrasts<-(*tmp*, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied only to factors with 2 or more levels
Error in opening file saved under Mac OS X El Capitan
Knitting bash code
Isolating database query
Error in auk_filter
random generation any easier code
File Upload issue on chrome and firefox
Markov function error
Legend from continue to discrete values
How to control the interval and size of continuous legend bar
Date conversion gives NA
Weird result on selecting number of topics for LDA
I tried to plot a worldmap with my dataset combined but all I get is a grey worldmap or nothing at all.
Creation of a new object
Error in seq ...: wrong sign in "by" argument
Problems in importing xlsx, csv data into R
ggplot2 Viewport/Axis Issue
Formal parameters in geoms and stats: how to pass them from one to the other?
Error in ggplot
How to make a subset that isn't a list?
Prediction interval - Linear regrission
Numeric data is not numeric.
rmarkdown chart loses gridlines
Download reactive spplot
Cant knit rmarkdown document
Debugger does not stop after "if else" syntax
Json to Data Frame then Manipulating the data
Predicted probability values from Logistic regression are negative
Difficulty in specific order data
Error in data splitting with R
linear type plot in qqnorm
suppress low count values in tables
Cannot run python script in Rstudio
Adding rows in a variable to equal the number of observations with another variable
R function daisy() from package cluster
Mixed linear models with random intercept
Help with formatting axes labels?
problem extracting matching sentence from column in data frame
problem extracting matching sentence from column in data frame
K means cluster - R session aborted
question on how to re-order matrix
rstudio.cloud instance crashing after the following
Combining tables from multiple csv files (tables can start in any line of the files)
Trying to select rows of a df within pipes
jsonlite not working smoothly with tidyverse
y-axis shifted by 1
Legends of two ggplot in grid.arrange() are overlapping in R Markdown
temperature maps in R
Sections in R reports with rmarkdown
Mirt model problem
Plotting two differnt data frames in the same graph
Fill the max and min values with same x values
help adding annotation to ggplot
Unable to load most packages (issue with libc++.1.dylib)
Cannot Format My Dates
import names to fit ids in a dataframe
spatial classification clustering
How to use the system command on windows correctly
New and struggling
For demographic analysis of state I want to compare race and ethnicity and want to find out how many people are hispanic, non-hispanic and others
Error coming in Rmd file while all the chunks are running perfectly
Missing data with nlme
Partial least squares regression
ggplot2 not showing data points or plots
Confidence interval of median, R versus SPSS
I keep getting the following error in R when trying to export a query as an .xlsx file on the server
R markdown chunk's dpi option ignored on "Run current chunk"
GGPLOT confidence interval too narrow to see or not plotted at all
Reading data from a spreadsheet in RStudio
I am getting this error. Any suggestions to fix this *** caught segfault ***?
For loop takes long time for a monte carlo approache
Column `x` is of unsupported type quoted call
deleting null rows from specific columns
rmarkdown flexdashboard pandoc error
Converting date time to date
ggplot, geom_path, problem: some points have same coordinates
PCA - how to include categorical variables like countries
Using gsub (or stringr) to replace text with valid LaTeX in Rmd
Error running python's input function in RStudio
t-test appears to give wrong output
How to explain summary file?
Help using ggplot2: I can perfectly plot one variable but the other keeps returning an error
trying to mutate 2 possiblilities each of 2 conditions into a new column
Run Unix Shell Commands in R
Suppressing "# A Tibble <R> x <C>" and Column Datatypes
Warning message:
dplyr error - works fine with excell import but doesn't with db import
Unable to read SAS data
Labels missing on ggplot graph returned from function
binomial glm with bootstrap and weights
New in R, help with an exercise
R session aborted error
Converting dataframe into time series
Error in installing ggplot2 package, using with Library (Caret)
Problems with Analyzing Data with "qqplot"
Calculating new group variable based on timestamps
grouping partially multivariate data
How to display weights/frequency of each word in wordcloud?
Need help creating a function for character string creation in R
Warning messages : tidy.dgCMatrix' is deprecated,'tidy.dgTMatrix' is deprecated
Help With Parsing Failures
Integrating a Loop Around My Function for Testing
dplyr filter doesn't filter all names specified in my vector
Converting a Matrix into a List
Plotly bar chart dynamic labels are getting cut off
Original variable predictions from a gls model
Subtracting two columns with conditions
Filtering with Dates
why can not get the same web interface while running coding from Rstudio and open from browser
Problem removing the outlier from ggplot
Values from aggregate fuction implement as point in scatterplot
Plotting shapefiles with attributes using ggplot
Knit Rmarkdown to PDF, latex issues
Yaxis different than Ylim : Is it possible ?
Fatal error: creating temporary file for '-e' failed
Error of object not found when subsetting even though it's physically there?
How to run a simple 2x2x2 ANOVA in R?
Social networks in R
NA for string variables not always working?
Help Finding Differences Between Many Columns in a Dataframe
Examining data cluster contents.
Interpolation/approximation of quarterly data into weekly data
how can I solve "Error in lowest:highest : argument of length 0" for synthetic control method of basque ?
normality test for 7000 data
How to make smart bind work with do.call, I am getting error " argument "args" is missing, with no default"
How to clip out lat-long for individual participants to a corresponding area map in R?
Issues with writing a dataframe to a shapefile
multiple data subsets combined in to one variable.
I'm getting an error message of unused argument in R
Updating pandoc version + using webshot to render to PPT in RStudio Cloud
how to calculate distances on google map in R
R programming help to solve the problem
How to Save Predicted (or manually generated) Values into the Original Data?
Sensitivity analysis of an equation in R language
I can't get any html output after kintting
Error in Tukey HSD test when Im trying to assign significant difference letters
Anomoly detection
Using " instead of '
Knitr Rmarkdown error object not found (from a previous question)
Error when reading csv file
Need help recoding a varaible in R
Need Help With Recoding Items + Averaging
How to subset a data frame by a rowvalue
How to subset a data frame by a rowvalue
Multiple versions of same function
Linear regression (simple)
How to merge two datasets together when one set has multiple instances of something I want to merge
subset in a dataframe
R functions: how to return the results correctly
cdata to summarise confidence intervals?
Time Series Subsetting by NA and length
Plot only Q-Q from ANOVA
The ggplot function doesn't graph anything, but it doesn't throw errors either
Multinominal logistic regression - bad accuracy
Multinominal logistic regression - bad accuracy
Strange Error in tidyverse after tibble version updated?
How to write code for getting Start date and End Date
Dplyr: mutate_all & rowwise
panel unit root test with cross sectional dependence
How to include repeated measures in adonis function (vegan package)?
EventPointer problem
Residuals from stan_jm
Relationship between events and invoices
EventPointer problem
Tidy data: One standard or two?
Error with my plots
longer object length is not a multiple of shorter object length
Using distinct but ignoring case
identifying variable class with subsetting
Staggered adoptin - Diff-in-Diff approach in R
Creating groups based on arguments for a column
Why am I getting Error in ms[i, ] : subscript out of bounds ?
Error: \uxxxx sequences not supported inside backticks (line 1)*
Warning message: file_renderer failed to copy frames to the destination directory
RMarkdown table size
Help on Nash-Sutcliffe Efficiency (NSE) Computation
Loops - create a random string and add to a data frame
Handling a varying number of function arguments in dplyr::mutate
Loop over columns to generate multiple prop.table
How to check missing days in datasets in R
Problem with Installing ggplot2
Need to open H5 files
Error: Discrete value supplied to continuous scale on RSTUDIO
help with an anova error
Odd behavior in **Source** Window
How to extract columns from a row and save the output as a variable dplyr
Having trouble finding was test to run for significance
When knitting to word, document is opened with preview.app
sum of zeros equals NA not 0 in case_when statement
phtest error: Error in solve.default(dvcov)
Plotting t-statistic in R
anova analysis and conditions for microbiome analysis
blogdown serve_site(), Hugo execution failed with error code 1
Help with Homework
Density Plot from Data Frame
Error: object 'M' not found using Bibliometrix
Issue with If Else and Text
Complete a column using the last complete value and values from another column
How to change the colors on of my ggplot
Importing .txt file and sorting it. Easy 101 questions (I think)
Barplot column totals
Rdisop causes Rstudio fatal error!
How to convert Hexadecimal values to decimal in dataframe?
valueBox function not found
Error: Column name `tidyr::nesting(...)` must not be duplicated. when using complete
Issue repeating col_names when appending with write_csv
Calculating the daily sums for multiple columns in xts files
Reversal of cell values
Plotting Multiple IRFs using ggplot and gridExtra
convert csv into sav- haven problem
Error when importing species data from GBIF.org using "gbif" functon
Calculate how many times R has remplace data
Indexing in pdata.frame not working as it should be
partition a set of elements into subsets in such a way that the subsets are as similar as possible
Transposing an XTable in RMarkdown
Recoding variables
Adding a column to a data frame
Invalid Path Argument Error for print()
Multivariate time series
Multinomial Logistic Regression
ggplot using geom_line with multiple lines
Confusing dplyr::if_else error "`false` must be a `Date` object, not a `Date` object"
Calculating time lapse specific to another column variable.
Fulfill NA in data frame
I am trying to use selectInput to select through different ggplots entirely using renderPlotly
Calculating time lapse specific to another column variable.
Average over three values repeatedly in a column of a dataframe taking into account multiple spots
error when knitting to pdf in Rmarkdown
Vectors from while loop to matrix
Problem with lm adding variables
Mixed-effect models and ANOVA in the Tidyverse
Challenge: How can I calculate the time-lapse in this?
Making nice plots for terrorism global database
Bar of Pie Chart in R/ggplot?
How to use API created from PLUMBER for bulk data prediction
jomo imputation_error
Leverage Plots for regression diagnostics
How to read multiple cvs files at once & Calculate occurrence in each file
error in install packages
How can I put the percentage in the Barplot (ggplot2)
Intepreting Results from the Firth Logistic Regression Model
Extended descriptive stats
Link DT:datatable to a ggplot
Optimizing a regex of a long list pattern
How to project CRS correctly
How to extract data from pdf files using R
Arranging grouped observations to be the same count for two ID's
How to assign random integers to a matrix
Can single input of neural net consist of multiple data?
Resource/Graphics path
Reaching legit RandomForest results reproducible with set.seed
I have 200 isolate of Fungi and each isolate has 6 repetitions of different concentrations of fungicide. I want to calculate EC50 for all samples
Incossistent error message: "Error: `x` must be a vector, not a `rsplit/vfold_split` object"
How to create a bar chart by using R programming for given data sets?
Adding a line on histogram
Error in x[oo, ] : subscript out of bounds
Error in Pairs()
How can I modify yaml instructions outside of the document I am rendering
Can someone check my assignment please?
Comparing site and associated random site?
Unique legends in facet_grid()
Basic question related to Indexing from a newbie
Object Not Found? Newbie
left_join not working with docopt parameters
Iterating down a column HELP!
Trouble with time series dates
readRDS(url) error
How to import .dbf files perfectly
RStudio Installation on Mac OS X 10.15 is missing File toolbar (i.e., File, Edit, Code, View, Plot, etc.)
ggplot x axis dates out of order
Invariance measure between two groups
Error: Aesthetics must be either length 1 or the same as the data (891): x
Problem with calculating tangency portfolio
ylim = c(0,100), but need the (100,140) space on my plot.
How to solve an "atomic vector" problem when getting data through an API ?
yfit <- yfit*diff(h$mids[1:2])*length(x)
Is there an R package that easily identifies an observation that best "represents" the model?"
Shares Oustanding using edgar package
problems using DCchoice package with double-bounded CV
Sorting By Date -- New To R
R anesrake error: “Error in x + weights: non-numeric argument for binary operator” Ask Question
dplyr/merge-join one to many using two data frames
Convert Multiple Lists to dataframe
deployment issue
Problems with findAssocs and creating a association network
Energy Data - Multiple Regression Analysis
Counting occurrence on a single column
PCA interpretation
Error in table(data, reference, dnn = dnn, ...) : all arguments must have the same length error while making confusion matrix.
Problems with findAssocs and creating a association network
Counting profit / loss
R STUDIO NOT KNITTING TO PDF from rmd file.
How to change the quotation character(s) for glue_sql?
how to write excel vba formula into R
Join 2 dataframes but shows NA
Error with date format
TropFishR - Elefan fit3
stargazer, ols regression
Markdown html output no longer monospaced.
jsonl to dataframe
A suggestion for selecting a plot
Random Effect Estimation Error
Imputation to normalize variable got error of missing values
Latex language package installation not working
tidyverse-googlesheets authentication failed
Deploy reactive output as input into reactive plot
Creating a new variable under conditions of other two variables
How to replace null which is string in data3sixty
Checking the Assumptions of a Mixed Effects Model in R
I can´t install packages on R studio, "non-zero exit status"
Forecasting panel data
Boxplot Axis and Text
Conditional Date Labeling
How to calculate McLoone Index?
Texas is turning me mad - pls help
RDA PROBLEMS, type character??
sort data frame according to the order of variables in another data frame
Issue to undertand plot funtion
Using mutate to find the percentage of a variable
Hi I'm first here
convert data.table difftime to integer
Splitting strings help
Multiple logistic regression model + risk scores to calculate employee attrition
relative-phase two oscillators
Package suggestion
Extract All Rows in Dataframe with 0 and 0.00% values
Anti_join function not working
Help conditional length function
Extracting best models from a Mable
Factor analysis on a split data frame using lapply command
autolayer() error help
Getting Markdown to Output Multiple Plots?
pkgdown: some references showing 404 and image on readme doesn't show on home
The column `Condition` doesn't exist. Even though I can see the column is there!
Error in data.frame, please Help!
Input Data Must Be Numeric????
How to analyze logical variables?
Data Visualization Suggestions?
Implementing Fisher Scoring Recursively
Problem with Windows 10
R studio does not give results anymore
Running a Levenes tests using two Independent Variables.
writing the output file on shared drive over network
Trying to instal seurat package via github but get non-zero exit status
Predicting forecasting a regression
verification of adherence of the model to the statistical premises of the least squares method through diagnostic graphs'
RStudio keeps crashing while trying to initialise rJava library using .jinit command on Mac OS Catalina
Error in eval(predvars, data, env) : object 'charges' not found
Issues plotting in R
Inverse probability weighting
Trying to load rJava package and getting error. Using MacOS X Catalina
Contact form in my app not working
Styling waffle title
Error in readRDS(file)
Input Data Must Be Numeric????
Unable to install ggplot2 package ..please help.. Im new in R
Problem installing package "glue": Compilation failed/non-zero exit status
Oaxaca Blinder Decomposition
Modifying a column of appended datasets
panel plots not working
facing problem in installing some packages and update of package
Plotting bar graph for average rating of all movies in their respective genres? (ggplot - data-wrangling)
how can fit s curve to data?
gt function error
transform variables in dataframe using fuzzy logic
unable to understand code
Merging Data Frames
Linux - RStudio won't start
Merge columns with different values
Remove all text after the last instance of a specific word, in text analysis
New to Rstudio need help understanding loops and useing %%
Showing 3 best models of StepAIC in a Table
Adding y limit and x and y labels to ggplot/violin plot
Centring and Equally Spacing Jitter Points in a ggplot/violin plot
How can I calculate sample 90th percentile?
extract p value from coxph
Error loading tidyverse and other packages on my Mac
Change colors according to the coefficient calculated by the geom_smooth
cluster analysis
Providing estimates and estimating difference btwn those probabilities
Panel regression
Repeated Measures ANOVA help
Error using the function lme() in R
group_by function- dplyr
'Error in readRDS(ffile) : error reading from connection' ggplot only
Pandoc-related Rmarkdown error when knitting:
Creating Convex Hulls
Cannot Install Package tidypaleo
Formatting output to tabel format
Compilation problem installing R Packages
Issue installing car package
Can't use autolayer in timeseries
Unable to loop over variable names
Extracting two types of data from variable, splitting it in two other variables and choosing one given condition.
Creating a plot with 3 variables
The following object is masked from myData (pos =4):
Creating a Categorical Variable from a quantitative one
Inverse Distance Weighing
Help with some R code
Correlation matrix within a data.table
Difficulty with IV regression
Error in converting Na values into 0 for raster.
how to create an rds file
How to fix "configure: error: libproj not found in standard or given locations." when installing {{sf}} on macOS?
Error in eigen(delta1)
Problem in correlation plot
University simple research assignment issues /noobie to Rstudio
how to compare diversity within and between groups? (comparison alpha x beta diversity)
For loop for columns in R
Student having issues with p-value and t-value for relationship between two variables
Excluding segments of time that last less than x
How to predict future time series points from a set of available values in R
travel demand prediction
Issues with package installation and CRAN Mirrors - unable to access repository and SSL error
Create a function
Problem with geom_point and geom_errorbar functions
Categorical data disproportionality
Help with creating dummy variable
Error: Tibble columns must have consistent lengths, only values of length one are recycled: * Length 61: Column `y` * Length 10358: Column `x`
RStudio quits unexpectedly under macOS Catalina
RStudio crashing when saving
Add Dunn test's p.adj values on ggplot
How to fix "configure: error: libproj not found in standard or given locations." when installing {{sf}} on macOS?
How to get "live" PDF view of markdown file? (MacOS)
Unable to open Project in studio
Console with results not showing up in primer Programming Basics after running code
dplyr installation issues
Error in dev.off()
Cannot load libraries!
CSV file from excel
How to fix "configure: error: libproj not found in standard or given locations." when installing {{sf}} on macOS?
How to get number of new items when given daily running totals
Please Help I am new to R initial model-implied matrix (Sigma) is not positive definite; check your model and/or starting parameters in group 2.
Error when I try to install package glue
How do you make two columns or parallel text in pdf?
Hanging on Project Open, File Open, Status code 504
Multidimensional scaling - form of data
Default assignment operator in R Notebook
Problems installing devtool package
function evaluation of Shapiro-Wilk test
Error- Logical Subscript too long
BDEsize package
How to incorporate the maximum number of change points to search for to the function named cpt.np?
Cannot Install RSQLite
Cannot load "car" package on Latest Rstudio and R
Naives Bayes and decision tree model, need help!
Is there a CHIME mode for COVID-19 by R-Studio?
Beginners question
Error when load Recipes to Caret:: Train
how to make cluster
unused argument error
Add recatangles in a loop in plotly
Confusing script - Beginner
How to use the Holt winters function() correctly
Source sink prediction
Keeping background colour when adding stripes (bargraph)
Help me get my project back - froze then wiped everything
Annotated Text Extraction: extracting paragraphs from a large annotated plain text document
Googlesheets4 to read cells with Arabic content
Error while making prediction using GBM model and mrsdeploy package
Dcasting Error in R data frame
Could not Calibrate
How to create two indicator variables using two specific observations in a dataset in RStudio
error: abline only using first 2 of six regression coefficients in R
Help with bar graph in ggplot
Using rmarkdown with TeX Live 2019: the directory /usr/local/texlive/2019/tlpkg/ is not writable.
data analysis with pathway database recorded in coordinate X and Y
Join levels of a category
#dummyCodingUsingRstudio
Student Issue with Loading Projects
PoweR library, pvalueMC function, null.law.index parameter
problem installing exactextract package
Adding data from predict() to plot that contains data from CSV
Unable to install Tidyverse package with Ubuntu 16.4 - 'non-zero exit status'
Package Installation failure....
bring 2 datasets together
I need help with a code I'm trying to run for sports analytics API.
"lidR" package - Error in projection of las files as catalog
Fiscal Year Quarters ( not aligned to calendar Quarters)
Arithmetic With Huge Numbers / Hexdeicmal
Create a loop to transform several images to vectors and join them into a dataframe
Windows 10 64 bit minimal requirements for Rstudio Desktop(free)
ShinyAppsIO - cannot open an Rdata file
Cluster validation
RStudio v1.2.5033 Mac – Indentation not abiding by settings in Global / Code
How to plotting POSIXct time in R?
Error in shiny app deployment
Issues using varcomp
Emoji problem : replace_emoji function problem
Can someone demonstrate on a video tutorial how this is done?
Summary of anova with bargraph
Can't control legend in ggplot
Removed 330 rows containing non-finite values (stat_boxplot).
geom_contour from ggplot2
R Studio can't find y
rmarkdown (uiskudes) not making slides
Collect comments youtube
asnumeric for all the content of my function in R
Error while knitting: Column ____ is unknown
Clinical trial Randomization
Problem with correlog() function in
How to use R to determine if a value is statistically LARGER than an average?
Arguments imply differing number of rows: 15, 12
no applicable method for 'group_by' applied to an object of class "function"
How to upload a map on Leaftlet? Error in addPolygons and object cannot be found
Fatal Error Occured R Session Aborted: Create a factor vector of predictions on test data
Getting started with non-metric multidimensional scaling in R
openxlsx::write.xlsx generates a broken file
How to put two figures in the same page in r markdown or r markdown with papaja?
How to automate flooded area calculation and make report using R?
NEW Having a problem with geom_label
Adding a Legend to an Overlay Bar and Line Plot!
How to write the item name in a function (instead of the item's numeric value) ?
to add the significative comparison
How to create a US heat map for 1, selected States 2. Selected counties
In .gd_SetProject(object, ...) : NOT UPDATED FOR PROJ >= 6
Loading MASS in Markdown
Changing the value of a duplicated column
Colour analysis
How to make neat, interpretable time series plot with multiple dataframes?
recoding multiple Likert variables to numeric values at once without mutate_at
unable to resolve error -
Error R encountered a fatal error. The session was terminanted
Error showing infinite times.
Interpreting outputs of calc.relimp
Melt Function in Reshape 2
How to add months to the follow-up missing dates
need help creating maps with data retrieved from GADM
R: MICE. How to obtain standardized coefficients of a mediation analysis after multiple imputation
stacked barplot
How to have space between x axis labels in plots
Split.train.test got a Join columns must be unique error in win 10 but working at win 7
Barplot error non-numeric argument to binary operator
Object not found for column
How do I approach a linear mixed effects model with a 2-level group?
Visulazing hyper spectra with ggplot2
Rmarkdown insert image with latex_engine:xelatax
How to keep the removed rows in separate group using group_by() & filter() in dplyr
Error: Aesthetics must be either length 1 or the same as the data (1020)
Find mean and sd of 0/1 variable belonging to a numerical variable
"mainPanel" is missing, with no default Shiny error
compact list object in a tidy dataframe
Knitting to Word - Getting errors due to CARET "preProcess()" function
mutate error in code
Error: no more error handlers available (recursive errors?); invoking 'abort' restart
How do we select a range of dates in a column?
Rstudio creating problem in color development
Change point detection
rvest URL Table
Help with error, not sure why
Problem constructiing nc file from workspace variables
How to plot this
as.numeric function bug problem
How to incresase igraph distance for each edge in R?
My geom_curve function does not work
Rstudio plots-Cannot see labels
extract_fit_engine extracts coefficients
Tuning Baguette models with tidymodels
Error message regarding main memory - redux
R Markdown hard question...
Running my data
Growth Increase, Groupby over time in R
visualize a correlation over time
RStudio Community - Find Help - Guide
help!! I can’t do the iteration
How to rename labels in dendrogram (dendextend)
Problem to fit ensemble models
Can't convert character to numeric
creating 5 year date scales on the x-axis (date Axis)
Normality Test Problem in RStudio
Styling Legend in ggplot2
How can I read a EPW file?
Summation of row based on different id and same date
Summation of row based on different id and same date
the help to generate a basic allele score using your independently associated SNPs.
Creating Data Set
R wont recognize numeric columns as numeric
NA_Real Values in For Loop
Code for increase/decrease by a value using lag and lead function
Serious problems with filter and dplyr
Weighted Data with Survey Package
how to add tool tips in R shiny?
How to change the scatter plot as I required?
3dscatter Problems
Nested list dataframe
"the function mle failed to estimate the parameters with the error code 100"
select column from data frame followed by dot
function scope behaves differently on local job
draw a chart ggplot2
mean and SD in parenthese
Using a for loop in R to loop through the name of dataframes
Stacked Bar Chart ggplot2
Use %in$% operator when column name contains an apostrope
ANnual Buy and hold monthly return and standard deviation.
Conditional Replacement
Builtin type problem with program.
Loading and preprocessing DICOM images-kaggle
Help with simple for loop
fileInput upload data can't be used at renderplot
R event study experience
Tiebreaker function
Plot multiple colums from datatable
Leaflet - add multipe Polylines to map
Knitr Not Recognizing Calculated Variable
GAabbreviate function issue
Long whitespace after a string? How to detect it?
Function "funcit" not work
Help with multiple sample t-tests
Need help calculating percent of production by source by 2018 for each continent
Error: Fehler: Mapping should be created with `aes()` or `aes_()`
HELP needed: arguments imply differing number of rows
ggplot - setting coordonates size/remove them + messy y axe
R code not running on Mac
Error: no documentation of type ‘A’ and topic ‘O’ (or error in processing help)
Drop missing values from table1
Test Post: BRM Lab 2021 (Please do not reply)
the function pivot_wider()
Unable to change size on axis in ggplot
the function pivot_wider()
ggplot_error: incomplete expression
Data wrangling: conditional mutate using multiple variables in tidyverse
Loop creation does not work
Changes to plot not appearing
A Question on Percentages
extract numeric variables of a data.frame
REndo on RStudio
Summarizing time series data
Hours on Y-axis ggplot2
Import multiple .dta files, remove haven labelled fomat, create a dataframe from all imported dta files
Multiple column with multiple values
Error - lasso reg.
Date format and graph
Hello friends I have a errors in my r script please help me
dateInput prevent scrolling with flexdashboard
Replace words in a tweet with numeric value of their frequency
Problems with ggstatsplot package
New variable - date
Error: missing values are not allowed in subscripted assignments of dataframes
Using solve() to find inverse of a matrix containing real and complex numbers
Change header text to spanish
error after updating tidyverse - Error: package or namespace load failed for ‘tidyverse’ in loadNamespace
Index for one line -> same index for several lines
how to identify similar variables between data frames
Hours on Y-axis ggplot2
Merging multiple data frames by specific column names
Hi! I'm having troubles trying to open csv and excel files
facet_wrap problem
Inserting plot objects into the axis
how to pivot longer without adding a new column or modifying data ? the table has 182 columns !
Filter in dplyr HELP
unequal length combining data
Using writexl to export a dataframe containing real and complex numbers
Make a prediction after using pglm function
Changing Character data in csv file to factors__stringsasFactors !!!NOt Worky!
Add common legend for geom_hline in facet_grid
Could not find function "train"
converting character column to date
Getting character Z values instead of numerical z values
Bar Chart, ggplot
Creating Map from coordinates in data frame
R Session Aborted and R encountered a fatal error | anyone can help me?
How to filter column with percent data?
Error in plot.window(...) : se necesitan valores finitos de 'ylim'
Help creating a basic function
Error trying to plot histogram
Create a time interval for y axis
Make a loop with dates
filtering dates
Select a variable in data frame
weighted mean with NA in weight vector
plot the frequency with multiple groups
problem with mass package/control+enter
Horizontal line with individual Mean value in GGplot
New to R - Timeline
Nested if function: the condition has length > 1 and only the first element will be used
How to use ggplot2 to draw a stem plot?
removing stopwords
Create subset of a dataset
adding deff to sryvyr
Package for pivot table
Trying to plot GO in ggplot
Possibility to put two variables into one
In R notebooks or rmarkdown using structural times series adding lines to basic plots
New Error when Using tidyr::spread function in R
how stop content from print time on console
Svyby proportion summary tables
How can I add a new column with values from the previous with a unique link?
New Variable in Dataframe with pre-conditions
Dotplot with 3 variables help
One Sample, one sided T-test
Tablehead of dataframe - overline letters
bf.test function
Cannot get na.locf to work
Multiple time series regression: non-stationary variables
How to get proportion in R by comparing columns?
why are my headers not working?
converting a dataset from a long to wide format.
dim function problem
Splitting data into training and test data
Combining values to use in graph
how to program R language for singleplot analysis?
what is the problem ?????????
R studio environment is not populating, help
How to display flags on points created by geom_quasirandom with the use of geom_flag
Can't unite columns in R
need a help for accept and ignore some days
Breaks in a gradient colour scale
Widen and Space Boxplots
Having trouble saving pdf files from Posit Cloud
error in rstudio
What are the default ggplot2 size, linewidth and width values?
Wrong position of outliers
calculate the number of Kmer
Help to modify forest plot
How to resolve the following error in obtainedgelist ?
Rstudio isn’t showing unique values. How do I fix it
Error message when running R
Last R STudio upgrade.
Comparing Values within a column
How to add labels and frequencies to the ggplot geom_bar?
Is there any alternative loop
Fehler in row_means... unbenutzte Argumente... / Error in row_means... unused Arguments
Double to date conversion
How to rename Conditions
No applicable method for "accuracy" applied to an object of class "forecast" while knitting R
Correlation heatmap
Why does only "Strength" appear when I try to compute stability of centrality indices in my network analysis?
Shiny app is unable to deploy
Extract keywords from a description column
dplyr::case_when() + lag to iterate through a column
Can't publish plumber application: content_category` error: Input should be 'document', 'site' or 'plot'
How to pairwise delete with tetrachoric correlations
NAs introduced by coercion
Visualizing interaction terms
Error message: use of NULL environment is defunct
Create Function
Going long to wide with multiple variables based on
Cannot see the complete plot for all values of variable
Code chunk wont stop executing
Getting monthly data into daily/weekly data
FactomineR - MFA error
Cannot plot plot a tobit model--getting error message(what do I do)?
Plot multiple line graph over time
Prediction from knn model
I want to create a matrix with rows and columns
ggplot with conditions
Filter-function help please
Compare each record value from two different data sets
How to check Outlier after imputing the missing value by Hmisc Package
Wordcloud and plotting sentiment score error
Turning non-military time to military time
Filter bigram list from a dataframe
geom_ribbon working well in time series data
Non linear equation how add confidence intervals
Calculate Anomaly in Temperature
Set.seed() with simulations
Seeking help for using filter and mutate command to break down a current variable into separate variables
Rstudio crashs on macOS with the X11 cairo type window
Principal Components Analysis (PCA)
Error: Long vectors not supported yet
Understanding window sizes when using kNN
Problem with changing the language in Rstudio
Dplyr filter from another dataframe
Using a Variable Where Quotes Are Needed in Function Argument
EasyMARK and Maker.CH problems
Area weighted seasonal cummulative precipitation extraction based on crop yeild area file
R does not display output
Error in the predict function
RStudio breaks on FreeBSD: "TypeError: undefined is not an object (evaluating 'window.desktopHooks.notifyRCrashed')"
How to use crawler with Rcrawler for automatic download in r?
Relabel and merge the fasta files
How to deal with character(0) in R
R version 3.5.0 Beta
Histograms with loops
String match in R
Stranger things
Determining peak of normal distributed data
How to make function which can read an argument without any gap or comma?
Reading RDS file format from HDFS using SparklyR package using Microsoft R Open
Calculating a mean from a specific population within a data set
How to separate title from desc (scraping data IMDB-Coming Soon Movie)
R is Arranging My Numbers Funky
Invalid input: date_trans works with objects of class Date only
SEIR model not working
Rmarkdown can't knit ur.df function
How to insert rows at a specific place in a data frame?
ggsurvplot:Error in parse(text = paste0("list(", paste(varnames, collapse = ","), : <text>:1:25: unexpected symbol
Graphic Pie Problem
Can't sort data frame by column name with a "-" in it
geom_tile empty plot
Need an algorithm to take data from 5 columns in a specific order to create a new variable
geom_path error from zoo library
Help me! Error in rep(" ", buff/2) : invalid 'times' argument
Multiple values for one column
non parametric ANCOVA with 2 factors and 2 covariates (npsm package)
Unsure of what test to use next
Machine Learning Help
ltm theta estimation
Eval function trouble when avoiding attach into package
Invariance measure between two groups
social network analysis, tergm
can't run "spCCA" package on my computer
How do I add the values of a Table
Error in seasonal_naive model
Editing an XML file in R and saving back to XML
macro momentum analysis (need help with r code)
grid_random function errors out: 'object' should be a 'quant_param' object
Working with action sequence data (persons with varying action numbers ==> no dataframe possible)
Help with categorical value cleaning!
How to include NA in new dichotomous variable
How to make a new tibble from an existing dataframe by searching within a column for contained words
Help with Error
Chain Rule in R
Remove one regression line but not the other using geom_smooth in ggplot2
it's been a while...trying ANOVA
function(x) { ifelse(abs(x) <= 1, 0, sign(x) * log10(abs(x))) }
error while printing chart for list of data frames
Weight variable _ Corrplot
Forecasting monthly data using random forest
fixing a java heap error?
Gov 1005 pset 4 - subscript out of of bounds
How to create a column with the sum ggplot
Using fancyRpartPlot with model that has no splits
Predicting forecasting a regression
Modelling change over time in mediation model
Receiving an Error when Using the Uncount and Row_Number() functions
plz help with svyciprop and NHANES data
Connecting to AWS Athena using RStudio
Creating own boxcox code
Regression with plm
Mac: Failing to install any packages (i.e. Rcpp) after downloading RStudio: error: installation of package 'Rcpp' had non-zero exit status
Pass fail test by group
Error in minimize solution (complex, parsimonious and intermediate) and in XYplot
Error in 1:nrow(SM) : argument of length 0
Construct a dichotomous variable + calculate YOY growth with a dataset with multiple companies and multiple years.
RStudio cannot find make: 'make' is not recognized as an internal or external command, operable program or batch file.
Rolling window forecast
View Matrix contents
Packages for formatting correlation test results for scientific paper
relevel characteristics
how to use function for filter tibble
Issues with seeing data points in ggplot as a .pdf
Import image directories for Keras and Tensorflow
how do i remove the error?
Rstudio package Hmisc
Summing and Taking average of elements in different vectors, which are part of different matrices, which are part of a vector of matrices.
How to use arguments as character in a function?
My interaction.plot is missing a data point
how to define global matrix in R
dplyr row added with add_row disappears
Condense / Aggregate / Summarise
RStudio freezing since upgrade to macOS Catalina
Issue with Opening RStudio - Opens Infinite Windows
Extract Raster Pixels Values Using Vector Polygons in R
Trying to plot a time series using ggplot, forecast, dpylr and dt
Difficulty in organizing a plot
Custom conda package not available in R after installing from conda
Help needed with Levene Test
RStudio Desktop Issue with Catalina
Margins() with lmer: R equivalent to Stata's at((mean) _all var = (10_percentile, 90_percentile))?
My data doesn't appear to be giving me accurate results
Why R-studio does not recognize XML query and tries to parse it as a JSON?
dtermining the significance in heterogeniety in effect sizes when conducting a three-level meta-analytics models
Data not saving
Syntax to Use Character Variable in Search
Error while using SEATS decomposition in the seasonal package
Write a ggtitle & facet_wrap based on variable
Feature\variable selection using RStudio
Scatterplot with more than two lines as the results
Add a new Column in Result Table with economic return
Dictionary function error
Too many values in an argument?
Google Trends sub regions over time
Creating shiny app for spatial disease modelling through time
How to change class to get correct date shown
Removing only Y-Axis in a boxplot
ANCOVA graphic?
I am new to R studio
recoding a range of numeric values
Error: $ operator is invalid for atomic vectors
Help in write down the model
Problem with Knitr to PDF
how do i plot many variables in one plot?
write.table output
Sorting columns and counting
Graphing Issue - Making Y-axis represent the values of X-axis labels
How to add text to error bar using geom_text
Trying to use selectInput and other widgets inside form. Using vapply for validation on this form.Getting following error.
"Replacement has 1 row, data has 0" when creating a function, that returns values from data frame.
Issue with numeric variables
Indian Equity Backtesting in R
Regarding executing function in RMD file
invisible(dev.off())
Dividing Composite Score By Demographic Variables
error in parse(text = x, keep.source = FALSE) : <text>:1:80: unexpected input
Ajout d'étiquette de données sur un graphique
How to change a character variable into vector within a DataFrame
Error (Issue 385) Knitting Document with Markdown
Beginning Question
Error w/ mice()
ERROR: failed to lock directory ‘C:\Users\User\Documents\R\win-library\4.0’ for modifying Try removing ‘C:\Users\User\Documents\R\win-library\4.0/00LOCK’
Mu is rendered as just an "m" in pdf
Plotting values from a function
RasterBrick with 4078 daily chirps rainfall.
R Markdown randomly doesn't compile into pdf
Problem generating HTML with R Markdown
Colorised LaTEX formula
set up maximum value for histogram y axis
questions about how to make ggplot with multiple varaince
Changing font colors for syntax and a plotting question
loop output saving
Adding data labels to a plot
Help with Collapsing and Reshaping Data Frame
R shiny data comparison help
Converting date string (fiscal month and year) to date
I am new to R and having problems with undertaking analyses with imported data from csv file
concatenating / pasting words in a corpus before text mining
Error in UseMethod("fit")
Trying to pass R Shiny input as variable name
histogram help please
library car error
Need to create function to add 5 to randomly generated numbers
Error running Sift software in R Studio
plotly text to utf-8 encoding
Adding Survey Weights and Bootstrapping
Multiple Linear Regression with Antecedents
Creating a calculated Average / Ratio to plot on a Geom_line comparing yearly data
Aesthetics must be either length 1 or the same as the data (21): y
Trying to find the proportion of a variable in sorting by a different variable
packages problem
How to add repeated measures in lm(e) ?
Error in mapply(FUN = f, ..., SIMPLIFY = FALSE) : zero-length inputs cannot be mixed with those of non-zero length
R Error: (all(xi <= xj) && any(xi < xj)) { : missing value where TRUE/FALSE needed
Need help with making scatterplots based on two variables in relation to another column
Error: "Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : NA/NaN/Inf in 'y'"
Problem using `list_to_matrix` function for UpsetR package
Ready to publish regression table in WORD using miceadds::glm.cluster
Filter by a specific name
how to find twin prime less than 100 in R using search.prime(), loop and cat
How to delete rows with empty cells
How can I accurately convert the remote sensing image into a matrix in Rstudio?
Filter data based on lowest value
Problem in visualizing values in ggplot
dgof Cramer-von-Mises test
having issue with coordinates function
Regression Iteration
Using sqldf to Delete Values from A dataset
Association rules in R
select two or more countries from one row.
How to include all this data in a single graph? Please help..
Filter turning characters into numeric
GGplot, plot multible variables on one column
Unable to get a prediction result in shiny app
error code appearing in mutate function
Svyby proportion summary tables
How to find top and bottom decile
R Error: Can't subset columns that don't exist
Barplot - error bars calculated from SD
The text we overlapping
Best way to graph a regression??
How to rescale value in a loop based
Looping through a vector within the select function
Combining values to use in graph
Colored ind PCA
Difference in Difference in R studio
trying to make a bar plot with ggplot and recieving errors
Subsetting from multiple dataframes
Problems with the abundance table by group
Trying to knit in r studio and getting this error
Module 2 Pratice Quiz
Creating RMSE Plot out of Cumulative Elastic Net Models
Hi, I am trying to run script on rstudio but it shows Error: `path` does not exist: ‘NA’
Plots are not displaying in Plot pane
trun ifelse() function into a for loop
I am having issues creating a barplot with unique value
Predict function with glmer
Error in is.data.frame(x) : 'list' object cannot be coerced to type 'double'
ggplot of lda seems inverted
No applicable method for "accuracy" applied to an object of class "forecast" while knitting R
How to deal with weighted survey data?
Suffix doesn´t work in left join
Having trouble converting dates to weekday
Problem using srvyr package
How to deal with hourly data in r
gt() package error
how to run social network analysis
phtest error: Error in solve.default(dvcov)
Inclusion of survival function in mob in partykit
hclust error related to NA/NaN/Inf in foreign function call
Transform just one row to column
Purrr and Mutate not working together?

A post was split to a new topic: Best Practices: how to prepare your own data for use in a reprex if you can’t, or don’t know how to reproduce a problem with a built-in dataset?

Thanks, Miles, this is great!

A few more resources to add:


Not reprex-specific, but helpful for asking R-related questions

2 Likes

17 posts were split to a new topic: Reprex vs. reprex-package discussions

For sharing simple data.frames (those containing only basic types, no dates, no factors, and no row names) I suggest using wrapr::draw_frame() to build sharable examples.

For example suppose our example was the following data.

d <- head(ggplot2::diamonds) 

wrapr::draw_frame can share this data in a very legible form:

library("wrapr")
cat(draw_frame(d))

This outputs the following (older versions of wrapr do not add the "::" qualifier).

wrapr::build_frame(
   "carat", "cut"      , "color", "clarity", "depth", "table", "price", "x" , "y" , "z"  |
   0.23   , "Ideal"    , "E"    , "SI2"    , 61.5   , 55     , 326L   , 3.95, 3.98, 2.43 |
   0.21   , "Premium"  , "E"    , "SI1"    , 59.8   , 61     , 326L   , 3.89, 3.84, 2.31 |
   0.23   , "Good"     , "E"    , "VS1"    , 56.9   , 65     , 327L   , 4.05, 4.07, 2.31 |
   0.29   , "Premium"  , "I"    , "VS2"    , 62.4   , 58     , 334L   , 4.2 , 4.23, 2.63 |
   0.31   , "Good"     , "J"    , "SI2"    , 63.3   , 58     , 335L   , 4.34, 4.35, 2.75 |
   0.24   , "Very Good", "J"    , "VVS2"   , 62.8   , 57     , 336L   , 3.94, 3.96, 2.48 )

The point is, with the wrapr package loaded the above output is actually executable code that produces the same data.frame. One can then copy and paste the above code to start a fresh example from this data (and not need to include steps that took one to this point).

(Was asked to post this to this thread here.)

4 Likes

It is now out (and yes, it is great!)

1 Like