Gang Of Coders
Home
About Us
Contact Us
All R Solutions on Gang of Coders
Total of 1531 R Solutions
case_when in mutate pipe
R
Dplyr
Persistent warnings from earlier commands with RStudio
R
Rstudio
Essential skills of a Data Scientist
R
How to send an email with attachment from R in windows
R
Email
Sendmailr
Initializing data.frames()
R
Replace specific characters within strings
R
Regex
Replace
Gsub
String Substitution
How do you create a progress bar when using the "foreach()" function in R?
R
Foreach
Progress Bar
ggplot: remove lines at ribbon edges
R
Ggplot2
Assigning NULL to a list element in R?
R
List
Null
How do you convert POSIX date to day of year?
R
Datetime
Get specific object from Rdata file
R
Object
Rdata
Passing list of named parameters to function?
R
How can I make a list of lists in R?
R
Is there a way to output text to the R console in color
R
Colors
Console
Output Formatting
ggplot2: Is there a fix for jagged, poor-quality text produced by geom_text()?
R
Ggplot2
Consistent width for geom_bar in the event of missing data
R
Ggplot2
rank and order in R
R
Sorting
R Faq
Avoid wasting space when placing multiple aligned plots onto one page
R
Plot
How to control number of decimal digits in write.table() output?
R
Excel
Number Formatting
Decimal Point
Output Formatting
Why TRUE == "TRUE" is TRUE in R?
R
Boolean
Comparison
Boolean Logic
Insert rows for missing dates/times
R
Time Series
Missing Data
R shiny: display "loading..." message while function is running
R
Shiny
How to replace NaN value with zero in a huge data frame?
R
Replace
Add empty columns to a dataframe with specified names from a vector
R
Dataframe
Running R script from python
Python
R
Make Frequency Histogram for Factor Variables
R
Histogram
Categorical Data
Error: unexpected symbol/input/string constant/numeric constant/SPECIAL in my code
R
R Faq
Create a ranking variable with dplyr?
R
Dplyr
Reorder rows using custom order
R
Dplyr
Creating Classes in R: S3, S4, R5 (RC), or R6?
R
Oop
Simultaneously merge multiple data.frames in a list
R
List
Merge
Dataframe
R Faq
How and when should I use on.exit?
R
R Faq
Raise to power in R
R
Mathematical Expressions
R dplyr: rename variables using string functions
Regex
R
Rename
Dplyr
How to send R markdown report in body of email?
R
Email
Knitr
R Markdown
Column alignment in DT datatable
R
Shiny
Dt
Cannot log-in to rstudio-server
R
Macos
Rstudio Server
Rotate switched facet labels in ggplot2 facet_grid
R
Plot
Ggplot2
Facet Grid
dev.hold, dev.flush and resizing windows
R
Device
Window Resize
Avoiding type conflicts with dplyr::case_when
R
Dplyr
Data Cleaning
add commas into number for output
R
Xtable
How to stop emacs from replacing underbar with <- in ess-mode
R
Emacs
Ess
How to properly document S4 class slots using Roxygen2?
Class
R
S4
Slot
Roxygen2
What is R's multidimensional equivalent of rbind and cbind?
R
Multidimensional Array
Matrix Multiplication
How to source() .R file saved using UTF-8 encoding?
R
File Io
Encoding
Utf 8
Internationalization
Aggregate a dataframe on a given column and display another column
R
Aggregate
Plyr
Greatest N-per-Group
Plot 3D data in R
R
Plot
3d
R inconsistency: why add=T sometimes works and sometimes not in the plot() function?
R
Plot
Add
Java-R integration?
Java
R
Machine Learning
Regression
When documenting in Roxygen: How do I make an itemized list in @details?
R
Documentation
Roxygen
Implementing standard software design patterns (focus on MVC) in R
R
Design Patterns
Pass by-Reference
Reference Class
Make the background of a graph different colours in different regions
R
Ggplot2
Normalizing y-axis in histograms in R ggplot to proportion
R
Plot
Ggplot2
Histogram
remove the last element of a vector
R
Vector
Is there a difference between the R functions fitted() and predict()?
R
How can I label points in this scatterplot?
R
Label
Point
Scatter Plot
Specifying row names when reading in a file
R
Csv
Dataframe
Rowname
Adding a new column to each element in a list of tables or data frames
R
How does one change the levels of a factor column in a data.table
R
data.table
changing title in multiplot ggplot2 using grid.arrange
R
Ggplot2
Gridextra
Create dataframe from a matrix
R
Matrix
Dataframe
Creating a named list from two vectors (names, values)
R
List
Constructor
Lapply
Named
Error in contrasts when defining a linear model in R
Database
R
Statistics
Adjust plot title (main) position
R
Plot
Using .I to return row numbers with data.table package
R
data.table
Is it a good practice to call functions in a package via ::
R
Scope
Namespaces
Scoping
Qualified Name
Read Stata 13 file in R
R
Stata
DocumentTermMatrix error on Corpus argument
R
Tm
Corpus
Get the mean across multiple Pandas DataFrames
Python
R
Numpy
Pandas
Code chunk font size in Rmarkdown with knitr and latex
R
Latex
Knitr
R Markdown
Get a list of the data sets in a particular package
R
best way to transpose data.table
R
data.table
Removing NA observations with dplyr::filter()
R
Dplyr
Conditionally Count in dplyr
R
Dplyr
How do I suppress row names when using DT::renderDataTable in R shiny?
R
Shiny
Dt
Installing rgl on Ubuntu and Mac: X11 not found
R
Linux
Macos
Rgl
Split violin plot with ggplot2
R
Ggplot2
Violin Plot
Ggproto
Emacs ESS Mode - Tabbing for Comment Region
R
Emacs
Ess
Dealing with timestamps in R
R
Time
Timestamp
Remove legend ggplot 2.2
R
Ggplot2
Legend
Update R using RStudio
R
Rstudio
R:how to get grep to return the match, rather than the whole string
R
Regex
Adding a column to a dataframe in R
R
Dataframe
Converting a data frame to xts
R
Dataframe
Coerce
Xts
Time Series
How to subtract months from a date in R?
R
Practical limits of R data frame
R
Performance
Dataframe
Rcpp
Roxygen2 - how to properly document S3 methods
R
Roxygen
Roxygen2
lambda-like functions in R?
R
Lambda
Select the first and last row by group in a data frame
R
Dataframe
Aggregate
How to round a data.frame in R that contains some character variables?
R
Pass a vector of variables into lm() formula
R
Paste
Lm
Colour points in a plot differently depending on a vector of values
R
Colors
Plot
Gradient
ggplot2 pdf import in Adobe Illustrator missing font AdobePiStd
R
Ggplot2
Adobe Illustrator
Why do I get "warning longer object length is not a multiple of shorter object length"?
R
Change timezone in a POSIXct object
R
Datetime
How do I change a single value in a data.frame?
R
Dataframe
Cell
How to calculate the 95% confidence interval for the slope in a linear regression model in R
R
Statistics
Linear Regression
Confidence Interval
Multiple functions in one .Rd file
R
Documentation
Package
Roxygen
Roxygen2
How to convert a data frame column to numeric type?
R
Dataframe
Type Conversion
Split data frame string column into multiple columns
R
String
Dataframe
Split
R Faq
How can I know if R is running on 64 bits versus 32?
R
64 Bit
32bit 64bit
Grouped bar plot in ggplot
R
Ggplot2
Bar Chart
Reshape
Reshape2
Inverse of ggplotGrob?
R
Ggplot2
Grob
Export a list into a CSV or TXT file in R
R
dplyr: lead() and lag() wrong when used with group_by()
R
Dplyr
Non-numeric Argument to Binary Operator Error in R
R
Setting document title in Rmarkdown from parameters
R
R Markdown
Pandoc
Deploying R shiny app as a standalone application
R
Shiny
SparkR vs sparklyr
R
Apache Spark
Sparkr
Sparklyr
R markdown link is not formatted blue when knitted to pdf
R
Pdf
Markdown
R Markdown
Get the path of current script
R
Rstudio
ld: warning: text-based stub file are out of sync. Falling back to library file for linking
R
Xcode
Macos
Rcpp
Linker Warning
How to print R graphics to multiple pages of a PDF and multiple PDFs?
Graphics
R
Plot
Is there an R equivalent of the pythonic "if __name__ == "__main__": main()"?
Python
R
R: removing the last elements of a vector
R
Vector
Elements
controlling the output with RApacheOutputErrors
R
Rapache
How do I save warnings and errors as output from a function?
R
Error Handling
Try Catch
How to install dependencies when using "R CMD INSTALL" to install R packages?
R
Dependencies
Package
plot.new has not been called yet
R
Plot
How to flatten a list to a list without coercion?
List
R
Standard Library
Flatten
Type Coercion
Grouping 2 levels of a factor in R
R
Number formatting axis labels in ggplot2?
R
Ggplot2
Selecting columns in R data frame based on those *not* in a vector
R
Dataframe
Subset
inst and extdata folders in R Packaging
R
Package
How to Reverse a string in R
R
Producing subscripts in R markdown
R
Markdown
Knitr
Subscript
R Markdown
How can I use Emacs ESS mode with R markdown?
R
Emacs
Ess
R Markdown
What is the difference between <NA> and NA?
R
Na
Missing Data
Create an ID (row number) column
R
Dataframe
R Faq
Unable to install rJava in R 3.0 in Ubuntu 13.04
Java
R
Ubuntu
Java Native-Interface
Rjava
How can you read a CSV file in R with different number of columns
R
Csv
Import
read.table
Sparse Columns
Extract rows for the first occurrence of a variable in a data frame
R
Return row number(s) for a particular value in a column in a dataframe
R
Numbers
Dataframe
Row
dplyr issues when using group_by(multiple variables)
R
Group By
Dplyr
Compound Key
How to extract Month from date in R
R
Lubridate
Weird characters added to first column name after reading a toad-exported csv file
R
Csv
Toad
Unable to load rJava on R
R
Rjava
How can I force a line break in rmarkdown's title?
R
R Markdown
select columns based on multiple strings with dplyr contains()
R
Regex
Dplyr
Matching
Multiple Matches
How can I add freehand red circles to a ggplot2 graph?
R
Ggplot2
What exactly is a connection in R?
R
Connection
Replace values in a dataframe based on lookup table
R
Dataframe
Lookup
How to group by all but one columns?
R
Dplyr
Remove an entire column from a data.frame in R
R
Dataframe
When should I use setDT() instead of data.table() to create a data.table?
R
data.table
Correct syntax for mutate_if
R
Dplyr
Na
Creating a Movie from a Series of Plots in R
Graphics
Video
R
Movieclip
Movies
How to do a data.table merge operation
R
Merge
data.table
Row names & column names in R
R
Columnname
Rowname
Organizing R Source Code
R
What ways are there to edit a function in R?
R
Function
Editing
Calculate correlation with cor(), only for numerical columns
R
Correlation
YAML current date in rmarkdown
R
Yaml
Knitr
R Markdown
Combine two data frames by rows (rbind) when they have different sets of columns
R
Dataframe
R Faq
Euclidean distance of two vectors
R
Range standardization (0 to 1) in R
R
Merge or combine by rownames
R
Merge
Dataframe
How to order a data frame by one descending and one ascending column?
R
Sorting
Dataframe
Proposing feature requests to the R Core Team
R
Open Source
Use superscripts in R axis labels
R
Python interface for R Programming Language
Python
R
Rpy2
Pyrserve
Pyper
How to annotate() ggplot with latex
R
Ggplot2
Is there a better alternative than string manipulation to programmatically build formulas?
R
Linear Regression
How to connect R with Access database in 64-bit Window?
R
Ms Access
Rodbc
heatmap with values (ggplot2)
R
Ggplot2
How to solve the error " missing required header GL/gl.h" while installing the Package mvoutlier in R?
R
How to drop columns by name pattern in R?
R
Which version of R is running in my computer?
R
Version
Built In
Getting imported json data into a data frame
Json
R
Import
Dataframe
Sum all values in every column of a data.frame in R
R
Write a data frame to csv file without column header in R
R
Col
Simplest way to get rbind to ignore column names
R
Rbind
Export data from R to Excel
R
Excel
R Faq
Adjust Transparency (alpha) of stat_smooth lines, not just transparency of Confidence Interval
R
Ggplot2
Transparency
Alpha
Function not found in R doParallel 'foreach' - Error in { : task 1 failed - "could not find function "raster""
R
How to combine 2 plots (ggplot) into one plot?
R
Graph
Plot
Ggplot2
Visualization
Loading .RData files into Python
Python
R
Rdata
How to add a cumulative column to an R dataframe using dplyr?
R
Dataframe
Dplyr
Remove rows conditionally from a data.table in R
R
data.table
Extract R-square value with R in linear models
R
Lm
Boolean operators && and ||
R
Logical Operators
Boolean Operations
Or Operator
And Operator
Save multiple ggplots using a for loop
R
For Loop
Ggplot2
list output truncated - How to expand listed variables with str() in R
R
Dataframe
Output
Truncated
How to hold figure position with figure caption in pdf output of knitr?
R
Knitr
R Markdown
use first row data as column names in r
R
Names
How to select columns in data.table using a character vector of certain column names?
R
data.table
How to control ordering of stacked bar chart using identity on ggplot2
R
Ggplot2
What is the difference between mode and class in R?
R
Specify widths and heights of plots with grid.arrange
R
Plot
Ggplot2
Gridextra
customize ggplot2 axis labels with different colors
R
Ggplot2
Geom Bar
ggmap Error: GeomRasterAnn was built with an incompatible version of ggproto
R
Ggplot2
Ggmap
Ggproto
Remove all of x axis labels in ggplot
R
Ggplot2
R: Print list to a text file
List
R
Unpacking argument lists for ellipsis in R
List
R
Ellipsis
Iterable Unpacking
Plotting time-series with Date labels on x-axis
R
Plot
Calculate AUC in R?
R
Machine Learning
Data Mining
Auc
Extract matrix column values by matrix column name
R
Matrix
Subset
Remove rows in R matrix where all data is NA
R
ggplot2 avoid boxes around legend symbols
R
Ggplot2
Replace contents of factor column in R dataframe
R
How to plot just the legends in ggplot2?
R
Ggplot2
Igraph
Reshaping multiple sets of measurement columns (wide format) into single columns (long format)
R
Reshape
Tidyr
Reshape2
R Faq
ggplot with 2 y axes on each side and different scales
R
Ggplot2
R Faq
Merging multiple data.tables
R
Join
Merge
data.table
Remove numbers from alphanumeric characters
Regex
R
suppress NAs in paste()
R
Paste
Na
Subset rows in a data frame based on a vector of values
R
Subset
R Faq
Fill and border colour in geom_point (scale_colour_manual) in ggplot
R
Colors
Ggplot2
Cut() error - 'breaks' are not unique
R
How do I change the NA color from gray to white in a ggplot choropleth map?
R
Ggplot2
Maps
Choropleth
Calculate cumulative sum (cumsum) by group
R
Cumsum
ggplot2 - The unit of size
R
Ggplot2
Unlist a list of dataframes
R
mean() warning: argument is not numeric or logical: returning NA
R
How can I take pairwise parallel maximum between two vectors?
R
Max
R - test if first occurrence of string1 is followed by string2
R
Contains
Replace characters from a column of a data frame R
R
Replace
Dataframe
dplyr: How to use group_by inside a function?
R
Dplyr
Tidyeval
Nse
Error: XML Content does not seem to be XML | R 3.1.0
Xml
R
Parsing
How do I open a script file in RStudio using an R command?
R
Rstudio
extracting standardized coefficients from lm in R
R
Regression
Lm
Beta
Standardized
Unimplemented type list when trying to write.table
R
Dataframe
write.table
Install a local R package with dependencies from CRAN mirror
R
Dependencies
Repository
Packages
Cran
Finding percentage in a sub-group using group_by and summarise
R
Group By
Dplyr
In R base plot, move axis label closer to axis
R
Plot
Axis Labels
What is the difference between cat and print?
R
Negation of %in% in R
R
Match
Negation
"Adding missing grouping variables" message in dplyr in R
R
Dplyr
How can I read command line parameters from an R script?
Command Line
R
Parameters
How to make R's 'raster' package distinguish between positive and negative rotation matrices in GeoTIFFs?
R
Raster
Image Rotation
R Raster
Geotiff
How to insert elements into a vector?
R
How to use an image as a point in ggplot?
R
Ggplot2
Ggproto
Numeric comparison difficulty in R
R
Floating Point
Comparison
Comparison Operators
R Faq
Learning R. Where does one Start?
R
Parsing command line arguments in R scripts
Parsing
R
Command Line-Arguments
Why are these numbers not equal?
R
Floating Point
Floating Accuracy
R Faq
Use of ggplot() within another function in R
R
Ggplot2
Ordering of bars in ggplot
R
Ggplot2
Bar Chart
Escaped Periods In R Regular Expressions
Regex
R
Find the index position of the first non-NA value in an R vector?
R
How to check if entire vector has no values other than NA (or NAN) in R?
R
What are Replacement Functions in R?
R
Possible to print more than 100 rows of a data.table?
R
Printing
data.table
Options
Output Formatting
preallocate list in R
Performance
R
List
Memory
How to control number of minor grid lines in ggplot2?
R
Ggplot2
Put whisker ends on boxplot
R
Ggplot2
Boxplot
Sort matrix according to first column in R
R
Invalid multibyte string in read.csv
R
read.csv
How to output text in the R console without creating new lines?
R
Newline
Rstudio
Output Formatting
How do you order the fill-colours within ggplot2 geom_bar
R
Graphics
Ggplot2
Get date difference in years (floating point)
R
Date
How to get the name of the calling function inside the called routine?
R
Date conversion from POSIXct to Date in R
R
Datetime
Figure position in markdown when converting to PDF with knitr and pandoc
R
Markdown
Knitr
Pandoc
What is the practical difference between data.frame and data.table in R
R
data.table
How to implement coalesce efficiently in R
R
Coalesce
Confusing error in R: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 1 did not have 42 elements)
R
Find closest value in a vector with binary search
R
Replace missing values (NA) with most recent non-NA by group
R
Dplyr
How to add whitespace to an RMarkdown document?
R
Markdown
R Markdown
Conditionally replacing column values with data.table
R
data.table
the difference between doMC and doParallel in R
R
Parallel Processing
Domc
Doparallel
Error - replacement has [x] rows, data has [y]
R
Dataframe
subtract value from previous row by group
R
Dataframe
Lag
Installing of SparkR
R
Apache Spark
Sparkr
ggplot2 increase space between legend keys
R
Ggplot2
How do I get a list of built-in data sets in R?
R
Dataset
R Faq
How to draw a nice arrow in ggplot2
R
Ggplot2
Arrows
What is the pandas equivalent of dplyr summarize/aggregate by multiple functions?
Python
R
Pandas
Pandas Groupby
Summarize
How to debug "contrasts can be applied only to factors with 2 or more levels" error?
R
Regression
Lm
Glm
R Faq
Is there a string formatting operator in R similar to Python's %?
Python
R
String
Format
How do I delete rows in a data frame?
R
Dataframe
Row
Determine path of the executing script
R
File
Path
Rscript
R Faq
How do you convert dates/times from one time zone to another in R?
R
How can I count runs in a sequence?
R
Count
Set R plots x axis to show at y=0
R
Plot
Include files R?
R
How to adjust the size of y axis labels only in R?
R
Plot
Labels
Convert integer to class Date
R
Date
R Faq
Looping over variables in ggplot
R
For Loop
Ggplot2
Tidyeval
Nse
Fast vectorized merge of list of data.frames by row
R
Performance
List
Merge
Dataframe
R: Find the last dot in a string
Regex
R
State name to abbreviation
R
Looping over a Date or POSIXct object results in a numeric iterator
R
Date
For Loop
Attributes
Posixct
Techniques for finding near duplicate records
R
Duplicate Data
Duplicate Removal
Fuzzy Comparison
ggplot2: histogram with normal curve
R
Ggplot2
Curve
Concatenating Matrices in R
R
Matrix
Concatenation
cbind a dataframe with an empty dataframe - cbind.fill?
R
Dataframe
Cbind
Reading data from PDF files into R
Linux
R
Pdf
Scrape
Pdf Scraping
Find which season a particular date belongs to
R
Date
How to add different lines for facets
R
Ggplot2
Facet
R knitr: Possible to programmatically modify chunk labels?
R
Knitr
reshape vs. reshape2 in R
R
Reshape
Reshape2
How to slice data from a middle index until the end without using `length` in R (like you can in python)?
R
How do you create vectors with specific intervals in R?
R
Vector
Intervals
Insert a row in a data.table
R
data.table
How can I `print` or `cat` when using parallel
R
Io
Parallel Processing
Plot data in descending order as appears in data frame
R
Ggplot2
How can I drop unused levels from a data frame?
R
Levels
Is there a way to run R code from JavaScript?
Javascript
R
Solution. How to install_github when there is a proxy
R
Github
Proxy
In RStudio/RMarkdown, how to setwd?
R
Rstudio
R Markdown
assign headers based on existing row in dataframe in R
R
Dataframe
Names
How to install R package from private repo using devtools install_github?
R
Github
Devtools
No non-missing arguments warning when using min or max in reshape2
R
Aggregate Functions
Reshape2
R Shiny set DataTable column width
R
Shiny
Dt
preventing a chunk run in rmarkdown
R
Knitr
R Markdown
Count number of rows matching a criteria
R
rJava install error "JAVA_HOME cannot be determined from the Registry"
Java
R
Error Handling
Rjava
How to import multiple .csv files at once?
R
R Faq
Network chord diagram woes in R
R
Data Visualization
Igraph
Graph Visualization
Circos
rCharts nvd3 lineWithFocusChart Customization
Javascript
R
nvd3.js
Rcharts
Override column types when importing data using readr::read_csv() when there are many columns
R
Csv
File Io
Dataframe
Dplyr
R summary() equivalent in numpy
Python
R
Numpy
Aggregate multiple columns at once
R
Aggregate
Variance Inflation Factor in Python
Python
R
Numpy
Statistics
Statsmodels
Difference between rbind() and bind_rows() in R
R
Rbind
Code folding in bookdown
Javascript
Html
R
Code Folding
Bookdown
Expert R users, what's in your .Rprofile?
R
Terminal
Customization
Rprofile
Add regression line equation and R^2 on graph
R
Ggplot2
Linear Regression
R Faq
How to change facet labels?
R
Ggplot2
Symbols
Facet
Plotmath
Force R not to use exponential notation (e.g. e+10)?
R
Number Formatting
Options
Scientific Notation
Defaults
Turning off some legends in a ggplot
R
Ggplot2
Split a vector into chunks
R
Vector
How can I remove all objects but one from the workspace in R?
R
Tools for making latex tables in R
R
Latex
Grouping functions (tapply, by, aggregate) and the *apply family
R
Lapply
Sapply
Tapply
R Faq
Filter rows which contain a certain string
R
Filter
Dplyr
How to assign from a function which returns more than one value?
R
Return Value
Variable Assignment
Assign
Multiple Results
What are the main differences between R data files?
R
R Faq
Rdata
Rda
Change R default library path using .libPaths in Rprofile.site fails to work
R
Rstudio
R Faq
Library Path
Append an object to a list in R in amortized constant time, O(1)?
R
Performance
List
Append
Big O
Find the day of a week
R
Date
R Faq
Where does R store packages?
R
Packages
How to plot two histograms together in R?
R
Plot
Histogram
Standardize data columns in R
R
Normalization
Emulate ggplot2 default color palette
R
Ggplot2
Increase number of axis ticks
R
Ggplot2
Changing font size and direction of axes text in ggplot2
R
Ggplot2
Display / print all rows of a tibble (tbl_df)
R
Dplyr
Options
Display
How do I make a list of data frames?
R
List
Dataframe
R Faq
Import text file as single character string
R
Use dynamic name for new column/variable in `dplyr`
R
Dplyr
R Faq
Print string and variable contents on the same line in R
R
Printing
ggplot2 line chart gives "geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic?"
R
Ggplot2
R Faq
Remove rows with all or some NAs (missing values) in data.frame
R
Dataframe
Filter
Missing Data
R Faq
Drop data frame columns by name
R
Dataframe
R Faq
Set margin size when converting from Markdown to PDF with pandoc
R
Latex
Markdown
Knitr
Pandoc
R - Markdown avoiding package loading messages
R
Markdown
Knitr
Rstudio
R Markdown
Extract a dplyr tbl column as a vector
R
Dplyr
Lazy Evaluation
Collect
Calculating moving average
R
Moving Average
Selecting only numeric columns from a data frame
R
How do you delete a column by name in data.table?
R
data.table
Installing R on Mac - Warning messages: Setting LC_CTYPE failed, using "C"
Macos
R
Installation
pull out p-values and r-squared from a linear regression
R
Use of ~ (tilde) in R programming Language
R
R Faq
R Formula
Label points in geom_point
R
Plot
Ggplot2
Labeling
Ggrepel
remove kernel on jupyter notebook
R
Jupyter Notebook
Reshaping data.frame from wide to long format
R
Dataframe
Reshape
R Faq
Remove NA values from a vector
R
Explicitly calling return in a function or not
R
Why use purrr::map instead of lapply?
R
Purrr
Numbering rows within groups in a data frame
R
Dataframe
R Faq
Can dplyr package be used for conditional mutating?
R
If Statement
Case When
Dplyr
Understanding exactly when a data.table is a reference to (vs a copy of) another data.table
R
Reference
Copy
data.table
Assignment Operator
Change size of axes title and labels in ggplot2
R
Ggplot2
Plot a legend outside of the plotting area in base graphics?
R
Plot
Legend
How to select a CRAN mirror in R
R
Package
Installation
Cran
Load multiple packages at once
R
Packages
How to assign colors to categorical variables in ggplot2 that have stable mapping?
R
Ggplot2
Mean per group in a data.frame
R
Aggregate
Relative frequencies / proportions with dplyr
R
Group By
Dplyr
Frequency
"Correct" way to specifiy optional arguments in R functions
R
Function
How do I replace NA values with zeros in an R dataframe?
R
Dataframe
What are the differences between "=" and "<-" assignment operators in R?
R
Assignment Operator
R Faq
How can I handle R CMD check "no visible binding for global variable" notes when my ggplot2 syntax is sensible?
R
Ggplot2
How to suppress warnings globally in an R Script
R
Warnings
Speed up the loop operation in R
Performance
R
Loops
Rcpp
R Faq
How to prevent ifelse() from turning Date objects into numeric objects
R
Date
Datetime
If Statement
Determine the data types of a data frame's columns
R
Dataframe
Types
How to use R's ellipsis feature when writing your own function?
R
Function
Parameters
Ellipsis
Variadic
Error: could not find function ... in R
R
Function
Error Handling
R Faq
Convert data.frame column to a vector?
R
Dataframe
Vector
Type Conversion
Reasons for using the set.seed function
R
Random
Access lapply index names inside FUN
R
Lapply
Names
Indices
Show percent % instead of counts in charts of categorical variables
R
Ggplot2
Does the ternary operator exist in R?
R
Operators
data.table vs dplyr: can one do something well the other can't or does poorly?
R
data.table
Dplyr
Fixing a multiple warning "unknown column"
R
Dplyr
Annotating text on individual facet in ggplot2
R
Ggplot2
Facet
Facet Wrap
Facet Grid
How to convert a table to a data frame
R
Dataframe
Convert row names into first column
R
Dataframe
Col
Rowname
Difference between R MarkDown and R NoteBook
R
Rstudio
Knitr
R Markdown
Rnotebook
session not created: This version of ChromeDriver only supports Chrome version 74 error with ChromeDriver Chrome using Selenium
R
Selenium
Google Chrome
Selenium Chromedriver
Rselenium
Remove duplicated rows
R
Duplicates
R Faq
For each row in an R dataframe
R
Dataframe
Rows
Order data frame rows according to vector with specific order
R
Sorting
Dataframe
How to find common elements from multiple vectors?
R
Vector
R Faq
How to combine multiple conditions to subset a data-frame using "OR"?
R
Conditional
Dataframe
Capitalize the first letter of both words in a two word string
R
String
Title Case
Compare two data.frames to find the rows in data.frame 1 that are not present in data.frame 2
R
Merge
Compare
Rows
Dataframe
How to split data into training/testing sets using sample function
R
Split
Sample
Append value to empty vector in R?
R
List
Vector
Append
Workflow for statistical analysis and report writing
R
Statistics
Data Visualization
What do hjust and vjust do when making a plot using ggplot?
R
Plot
Ggplot2
Repeat each row of data.frame the number of times specified in a column
R
Dataframe
Replicate
Prevent row names to be written to file when using write.csv
R
Csv
What does .SD stand for in data.table in R
R
data.table
Call apply-like function on each row of dataframe with multiple arguments from each row
R
Dataframe
How to interpret dplyr message `summarise()` regrouping output by 'x' (override with `.groups` argument)?
R
Dplyr
Summarize
Force the origin to start at 0
R
Plot
Ggplot2
Axes
R: += (plus equals) and ++ (plus plus) equivalent from c++/c#/java, etc.?
R
Operators
Variable Assignment
Increment
How to remove all whitespace from a string?
R
Regex
String
R Faq
Replace all 0 values to NA
R
R Faq
Rotating and spacing axis labels in ggplot2
R
Ggplot2
Label
Find file name from full file path
File
R
Path
Fastest way to find second (third...) highest/lowest value in vector or column
R
Vector
What's the difference between `1L` and `1`?
R
Types
Replacing NAs with latest non-NA value
R
data.table
Zoo
R Faq
Problems installing the devtools package
R
Package
Devtools
Determine the number of NA values in a column
R
Dataframe
How to add a row to a data frame in R?
R
Dataframe
What does %>% mean in R
R
Magrittr
How to count TRUE values in a logical vector
R
Importing data from a JSON file into R
Json
R
How to increase font size in a plot in R?
R
Plot
R memory management / cannot allocate vector of size n Mb
R
Matrix
Vector
Memory Management
R Faq
Convert data.frame column format from character to factor
R
Dataframe
Character
R Faq
Remove columns from dataframe where ALL values are NA
R
Apply
Dataframe
Error in if/while (condition) {: missing Value where TRUE/FALSE needed
R
R Faq
Aggregate / summarize multiple variables per group (e.g. sum, mean)
R
Dataframe
data.table
Aggregate
R Faq
Filter data.frame rows by a logical condition
R
Dataframe
Subset
R Faq
Most underused data visualization
Graphics
R
Visualization
Plot
Ggplot2
Count number of occurences for each unique value
R
Count
Unique
How do I clear only a few specific objects from the workspace?
R
What does %>% function mean in R?
R
Syntax
Dplyr
Magrittr
R Faq
Select first and last row from grouped data
R
Dplyr
Rotating axis labels in R
R
Label
Axis
Plot
How to generate a number of most distinctive colors in R?
R
Colors
Palette
Color Palette
Colorbrewer
What's the difference between lapply and do.call?
R
Functional Programming
Group by multiple columns in dplyr, using string vector input
R
Dplyr
R Faq
Summarizing multiple columns with dplyr?
R
Dplyr
Aggregate
Determining memory usage of objects?
Memory
R
promise already under evaluation: recursive default argument reference or earlier problems?
R
Check for installed packages before running install.packages()
R
Packages
Add a common Legend for combined ggplots
R
Ggplot2
Legend
Gridextra
Select rows of a matrix that meet a condition
R
Select
Matrix
Submatrix
Fastest way to replace NAs in a large data.table
R
Performance
Dataframe
data.table
Add new row to dataframe, at specific row-index, not appended?
R
Dataframe
Insert
Remove plot axis values
R
Plot
Axis Labels
Is there a way to make R beep/play a sound at the end of a script?
R
How to format a number as percentage in R?
R
Formatting
How to set size for local image using knitr for markdown?
Image
R
Markdown
Knitr
Pandoc
Installing R with Homebrew
R
Homebrew
Ignore outliers in ggplot2 boxplot
R
Ggplot2
Remove 'a' from legend when using aesthetics and geom_text
R
Ggplot2
Legend
Aesthetics
Remove duplicated rows using dplyr
R
Dplyr
ggplot2 plot without axes, legends, etc
R
Ggplot2
Returning multiple objects in an R function
R
Function
Insert picture/table in R Markdown
R
R Markdown
Global variables in R
R
Global Variables
Variable Assignment
Painless way to install a new version of R?
R
Upgrade
Packages
Better explanation of when to use Imports/Depends
R
Add legend to ggplot2 line plot
R
Ggplot2
Legend
R Faq
Installing older version of R package
R
Installation
Version
R Faq
increase legend font size ggplot2
R
Ggplot2
How do you use "<<-" (scoping assignment) in R?
R
Scoping
Lexical Scope
R Faq
How can we make xkcd style graphs?
R
Ggplot2
Plot
How to wait for a keypress in R?
R
Keypress
Wait
Readline
Readkey
Why were pandas merges in python faster than data.table merges in R in 2012?
Python
R
Join
data.table
Pandas
In R, how to get an object's name after it is sent to a function?
R
How to delete a row by reference in data.table?
R
data.table
Extract a substring according to a pattern
Regex
R
Substr
How to organize large R programs?
R
Package
Conventions
Code Organization
Project Organization
Editing legend (text) labels in ggplot
R
Text
Ggplot2
Label
Equivalent of "throw" in R
R
Error Handling
Is R's apply family more than syntactic sugar?
R
Apply
R and version control for the solo data analyst
Git
Version Control
R
data.frame rows to a list
List
R
Dataframe
How to use a variable to specify column name in ggplot
R
Ggplot2
Tidyeval
R Faq
Nse
How to make execution pause, sleep, wait for X seconds in R?
R
Animation
Statistics
Using R to list all files with a specified extension
R
How to catch integer(0)?
R
Error Handling
Integer
Try Catch
Assign multiple columns using := in data.table, by group
R
Dataframe
data.table
Variable Assignment
Colon Equals
Saving grid.arrange() plot to file
R
Ggplot2
Gridextra
Dynamically select data frame columns using $ and a character value
R
Dataframe
R Faq
Should I use a data.frame or a matrix?
R
Matrix
Dataframe
R Faq
R command for setting working directory to source file location in Rstudio
R
Automation
Working Directory
Scraping html tables into R data frames using the XML package
Html
R
Xml
Parsing
Web Scraping
grep using a character vector with multiple patterns
R
Regex
Adding a regression line on a ggplot
R
Ggplot2
Regression
Linear Regression
Only read selected columns
R
Import
R Faq
Omit rows containing specific column of NA
R
Dataframe
Na
How to change line width in ggplot?
R
Ggplot2
Line Plot
R apply function with multiple parameters
R
Using the rJava package on Win7 64 bit with R
R
Rjava
Linking R and Julia?
R
Julia
R - Concatenate two dataframes?
R
Dataframe
Concatenation
How to save a data.frame in R?
R
Dataframe
How do I change the formatting of numbers on an axis with ggplot?
R
Ggplot2
Scatterplot with marginal histograms in ggplot2
R
Ggplot2
Histogram
Scatter Plot
Is there a way to change the spacing between legend items in ggplot2?
R
Ggplot2
Legend
ggplot does not work if it is inside a for loop although it works outside of it
R
For Loop
Ggplot2
Increasing (or decreasing) the memory available to R processes
R
Memory Management
Memory Leaks
Split code over multiple lines in an R script
R
Multiline
Remove all special characters from a string in R?
Regex
String
R
Character
Reorder bars in geom_bar ggplot2 by value
R
Ggplot2
Pass a data.frame column name to a function
R
Dataframe
R Faq
facet label font size
R
Ggplot2
Subset data frame based on multiple conditions
R
Dataframe
Subset
How to combine two lists in R
R
List
Select multiple columns in data.table by their numeric indices
R
data.table
Sum across multiple columns with dplyr
R
Dplyr
Format number as fixed width, with leading zeros
R
How to select the rows with maximum values in each group with dplyr?
R
Dplyr
Plyr
Greatest N-per-Group
Order discrete x scale by frequency/value
R
Ggplot2
R Faq
ggplot: How to increase spacing between faceted plots?
R
Ggplot2
Apply a function to every row of a matrix or a data frame
R
Function
Matrix
Apply
Sapply
Error in plot.new() : figure margins too large, Scatter plot
R
Plot
Figure
Margins
How to make graphics with transparent background in R using ggplot2?
R
Graphics
Transparency
Ggplot2
How to convert variable (object) name into String
String
R
Object
Remove space between plotted data and the axes
R
Plot
Ggplot2
How to create a density plot in matplotlib?
Python
R
Numpy
Matplotlib
Scipy
Replace a value in a data frame based on a conditional (`if`) statement
R
Recode
Force R to stop plotting abbreviated axis labels - e.g. 1e+00 in ggplot2
R
Graph
Ggplot2
Axes
Persistent invalid graphics state error when using ggplot2
R
Ggplot2
Reorder levels of a factor without changing order of values
R
Sorting
Levels
R Faq
How to succinctly write a formula with many variables from a data frame?
R
Dataframe
Glm
Lm
Setting individual axis limits with facet_wrap and scales = "free" in ggplot2
R
Ggplot2
Facet
How to convert a factor to integer\numeric without loss of information?
R
Casting
R Faq
Plot two graphs in same plot in R
R
Plot
Ggplot2
R Faq
Global and local variables in R
R
How to create empty data frame with column names specified in R?
R
Dataframe
Convert the values in a column into row names in an existing data frame
R
Why is rbindlist "better" than rbind?
R
data.table
Rbind
Rbindlist
Can dplyr join on multiple columns or composite key?
R
Dplyr
Is the "*apply" family really not vectorized?
R
Performance
Loops
Vectorization
Apply
Extract every nth element of a vector
R
Vector
Overlaying histograms with ggplot2 in R
R
Ggplot2
Reshape three column data frame to matrix ("long" to "wide" format)
R
Matrix
Dataframe
Plyr
Reshape
Count number of rows within each group
R
Dataframe
Aggregate
R Faq
Using R to download zipped data file, extract, and import data
R
Connection
Zip
R Faq
How should I deal with "package 'xxx' is not available (for R version x.y.z)" warning?
R
Installation
Repository
Package
R Faq
Convert UNIX epoch to Date object
R
Time
R Faq
How to change language settings in R
R
Warning message: In `...` : invalid factor level, NA generated
R
Warnings
R Faq
How to add elements to a list in R (loop)
R
How can I change the Y-axis figures into percentages in a barplot?
R
Ggplot2
Bar Chart
Convert a matrix to a 1 dimensional array
Arrays
R
Matrix
Finding ALL duplicate rows, including "elements with smaller subscripts"
R
Duplicates
R Faq
What are the differences between vector and list data types in R?
List
R
Vector
Convert a row of a data frame to vector
R
Vector
Dataframe
read.csv warning 'EOF within quoted string' prevents complete reading of file
R
Csv
Eof
read.table
Why can't R's ifelse statements return vectors?
R
If Statement
Vectorization
R Faq
How to read data when some numbers contain commas as thousand separator?
R
Csv
R Faq
How to force R to use a specified factor level as reference in a regression?
R
Regression
Linear Regression
Categorical Data
Dummy Variable
Scatterplot with too many points
R
Scatter Plot
How to delete multiple values from a vector?
R
How to reorder data.table columns (without copying)
R
data.table
Why does X[Y] join of data.tables not allow a full outer join, or a left join?
R
Join
data.table
Split comma-separated strings in a column into separate rows
R
String
Split
R Faq
Split delimited strings in a column and insert as new rows
R
Dataframe
Reshape
Data Manipulation
Strsplit
Combine two or more columns in a dataframe into a new column with a new name
R
Dataframe
Multiple Columns
R Faq
Getting LaTeX into R Plots
R
Latex
Plot
How can I view the source code for a function?
R
Function
R Faq
What is the difference between require() and library()?
R
Package
R Faq
Extracting numbers from vectors of strings
Regex
R
How to avoid warning when introducing NAs by coercion
R
Parsing
Casting
Na
Sort rows in data.table in decreasing order on string key `order(-x,v)` gives error on data.table 1.9.4 or earlier
R
String
Sorting
data.table
Key
Controlling number of decimal digits in print output in R
R
Precision
Digits
R Faq
Output Formatting
Selecting data frame rows based on partial string match in a column
R
Regex
String
Match
Subset
Applying a function to every row of a table using dplyr?
R
Plyr
Dplyr
Change value of variable with dplyr
R
Dataframe
Plyr
Dplyr
What can MATLAB do that R cannot do?
Matlab
R
Scientific Computing
What does "S3 methods" mean in R?
R
Oop
R Faq
R S3
R S4
How to unload a package without restarting R
R
Package
R Faq
remove legend title in ggplot
R
Ggplot2
How to use Greek symbols in ggplot2?
R
Graphics
Unicode
Utf 8
Ggplot2
To find whether a column exists in data frame or not
R
Select the row with the maximum value in each group
R
Dataframe
R Faq
Limit ggplot2 axes without removing data (outside limits): zoom
R
Ggplot2
Zooming
Limits
Printing newlines with print() in R
R
Filtering a data frame by values in a column
R
Filter
Dataframe
How to add \newpage in Rmarkdown in a smart way?
R
R Markdown
How to search for "R" materials?
R
Search
R Faq
The difference between bracket [ ] and double bracket [[ ]] for accessing the elements of a list or dataframe
R
List
Dataframe
Extract
R Faq
Unable to install R package in Ubuntu 11.04
Xml
R
Ubuntu
Installation
How to remove last n characters from every element in the R vector
R
String
Create empty data frame with column names by assigning a string vector?
R
Dataframe
Control the size of points in an R scatterplot?
R
Plot
Scatter Plot
Create a matrix of scatterplots (pairs() equivalent) in ggplot2
R
Ggplot2
Visualization
'Incomplete final line' warning when trying to read a .csv file into R
R
Line Endings
read.csv
How can I plot with 2 different y-axes?
R
Plot
Yaxis
Showing data values on stacked bar chart in ggplot2
R
Graphics
Ggplot2
adding x and y axis labels in ggplot2
R
Label
Ggplot2
Fixing the order of facets in ggplot
R
Ggplot2
Sequence
Facet
What's the best way to use R scripts on the command line (terminal)?
R
Bash
Command Line
Scripting
Check if the number is integer
R
Integer
Rounding
remove all variables except functions
R
Caching
Get type of all variables
R
Typeof
For each row return the column name of the largest value
R
Convert a list to a data frame
R
List
Dataframe
Test if a vector contains a given element
R
Vector
R Faq
How do I combine two data-frames based on two columns?
R
Merge
Dataframe
Convert column classes in data.table
R
data.table
Finding row index containing maximum value using R
R
Matrix
Select first 4 rows of a data.frame in R
R
Dataframe
How to test if list element exists?
R
How to calculate the number of occurrence of a given character in each row of a column of strings?
Regex
R
Dataframe
Increase distance between text and title on the y-axis
R
Layout
Plot
Ggplot2
R object identification
R
Object
Unique combination of all elements from two (or more) vectors
R
R Faq
passing several arguments to FUN of lapply (and others *apply)
R
Lapply
Run R script from command line
R
Command Line
How to get a vertical geom_vline to an x-axis of class date?
R
Date
Ggplot2
Time Series
Split column at delimiter in data frame
R
Dataframe
Error in <my code> : object of type 'closure' is not subsettable
R
R Faq
How to append rows to an R data frame
R
Merge
Append
Dataframe
Rows
Changing fonts in ggplot2
R
Ggplot2
Fonts
Extrafont
Showtext
Extract a regular expression match
Regex
R
Scheduling R Script
R
Windows
Schedule
R Faq
Drop unused factor levels in a subsetted data frame
R
Dataframe
R Factor
R Faq
Position geom_text on dodged barplot
R
Plot
Ggplot2
Bar Chart
Rolling median algorithm in C
C
Algorithm
R
Statistics
Median
What does "not run" mean in R help pages?
R
R: rJava package install failing
R
Rjava
How to draw an empty plot?
R
Ggplot2
Plot
Remove data.frame row names when using xtable
R
Latex
Report
Transpose a data frame
R
Dataframe
Create a group number for each consecutive sequence
R
Dataframe
Sequence
Remove grid, background color, and top and right borders from ggplot2
R
Ggplot2
ggplot geom_text font size control
R
Ggplot2
rJava load error in RStudio/R after "upgrading" to OSX Yosemite
Java
R
Rstudio
Rjava
Macos High-Sierra
How do I sort one vector based on values of another
Sorting
R
General suggestions for debugging in R
R
Debugging
R Faq
Getting and removing the first character of a string
String
R
Error in plot.new() : figure margins too large in R
R
Plot
Replacement for "rename" in dplyr
R
Rename
Dplyr
R: use magrittr pipe operator in self written package
R
Namespaces
Magrittr
Linear Regression and group by in R
R
Regression
Linear Regression
Lm
detach all packages while working in R
R
Workspace
Set default CRAN mirror permanent in R
R
Cran
R Faq
ggplot2 legend to bottom and horizontal
R
Ggplot2
Gradient of n colors ranging from color 1 and color 2
R
Gradient
Convert string to a variable name
String
R
What's the difference between `=` and `<-` in R?
R
Assignment Operator
Variable Assignment
Is it possible to have a multi-line comments in R?
R
Comments
Test for equality among all elements of a single numeric vector
R
Vector
Equality
How to make a great R reproducible example
R
R Faq
Create an empty data.frame
R
Dataframe
R Faq
R.exe, Rcmd.exe, Rscript.exe and Rterm.exe: what's the difference?
R
Executable
Rgui
Rterm
How to include (source) R script in other scripts
R
ggplot2 keep unused levels barplot
R
Ggplot2
Legend
Levels
How to combine two RMarkdown (.Rmd) files into a single output?
R
Knitr
Pandoc
R Markdown
Error: could not find function "%>%"
R
Dplyr
Magrittr
How to get R script line numbers at error?
Debugging
R
Creating an R dataframe row-by-row
List
R
Dataframe
How to round up to the nearest 10 (or 100 or X)?
R
Rounding
`levels<-`( What sorcery is this?
R
Types
Levels
How do I import a CSV file in R?
R
Csv
Import
What is the purpose of setting a key in data.table?
R
data.table
R Conditional evaluation when using the pipe operator %>%
R
Dplyr
Ggvis
Magrittr
Multiline Comment Workarounds?
R
Comments
R Faq
What is your preferred style for naming variables in R?
R
Coding Style
Naming Conventions
Geometric Mean: is there a built-in?
R
Statistics
Built In
Geometric Mean
Specifying colClasses in the read.csv
R
Csv
read.csv
Where can I learn how to write C code to speed up slow R functions?
R
Rcpp
Confusion between factor levels and factor labels
R
R Factor
R Faq
Disable messages upon loading a package
R
Message
Libraries
Suppress Warnings
Verbosity
Error: gdal-config not found while installing R dependent packages whereas gdal is installed
Linux
R
Installation
Gdal
Export a graph to .eps file with R
R
Graph
Eps
Breaking loop when "warnings()" appear in R
R
Loops
Warnings
Break
Rotating x axis labels in R for barplot
R
Graph
Plot
Bar Chart
Axis Labels
How to not run an example using roxygen2?
R
Roxygen2
Passing command line arguments to R CMD BATCH
R
Rscript
Paste multiple columns together
R
Paste
R Faq
How to get row from R data.frame
R
Indexing
Dataframe
How to use the 'sweep' function
R
Statistics
Replace X-axis with own values
R
Plot
Axis Labels
Extract month and year from a zoo::yearmon object
R
Date
Zoo
Cleaning `Inf` values from an R dataframe
R
Dataframe
data.table
filter for complete cases in data.frame using dplyr (case-wise deletion)
R
Dplyr
Magrittr
R dplyr: Drop multiple columns
R
Dplyr
Relationship between R Markdown, Knitr, Pandoc, and Bookdown
R
Knitr
R Markdown
Pandoc
Bookdown
How to put labels over geom_bar for each bar in R with ggplot2
R
Ggplot2
Bar Chart
Define all functions in one .R file, call them from another .R file. How, if possible?
R
File
Scope
Namespaces
User Defined-Functions
rgdal package installation
R
Maps
What's the difference between integer class and numeric class in R
R
Class
Object
Integer
Numeric
Quickly reading very large tables as dataframes
R
Import
Dataframe
R Faq
Gather multiple sets of columns
R
Reshape
Dplyr
Qualtrics
Tidyr
R for loop skip to next iteration ifelse
R
For Loop
How do I make a matrix from a list of vectors in R?
R
Matrix
Vector
Automatically expanding an R factor into a collection of 1/0 indicator variables for every factor level
R
How do I change the background color of a plot made with ggplot2
R
Ggplot2
R: Comment out block of code
R
Comments
How to upgrade R in ubuntu?
R
Ubuntu
Repeat rows of a data.frame
R
Dataframe
Rows
Repeat
Remove extra legends in ggplot2
R
Ggplot2
Legend
Pass column name in data.table using variable
R
data.table
knitr Markdown highlighting in Emacs?
R
Emacs
Syntax Highlighting
Knitr
How to change 'Maximum upload size exceeded' restriction in Shiny and save user file inputs?
R
Shiny
dplyr summarise: Equivalent of ".drop=FALSE" to keep groups with zero length in output
R
Dplyr
Plyr
Tidyr
How to add texture to fill colors in ggplot2
R
Ggplot2
Subscripts in plots in R
R
Plot
Subscript
Add (insert) a column between two columns in a data.frame
R
Dataframe
Insert
R: Count number of objects in list
List
R
Count
Subset of rows containing NA (missing) values in a chosen column of a data frame
R
Csv
Dataframe
Subset
Na
group by two columns in ggplot2
R
Ggplot2
How do I arrange a variable list of plots using grid.arrange?
R
Ggplot2
How to change the default font size in ggplot2
R
Ggplot2
Default
Font Size
The cause of "bad magic number" error when loading a workspace and how to avoid it?
R
Workspace
Magic Numbers
Count number of rows by group using dplyr
R
Dplyr
Count
Plyr
Hosting and setting up own shiny apps without shiny server
R
Web Hosting
Shiny
Shiny Server
Converting string to numeric
String
R
How can I load an object into a variable name that I specify from an R data file?
R
Variable Names
Rdata
List distinct values in a vector in R
R
Vector
Distinct Values
R Faq
Tricks to manage the available memory in an R session
Memory Management
R
How to parse XML to R data frame
Xml
R
Getting the top values by group
R
data.table
Dplyr
How can I manipulate the strip text of facet_grid plots?
R
Ggplot2
Comma separator for numbers in R?
R
How to randomize (or permute) a dataframe rowwise and columnwise?
R
Random
Permutation
R programming: How do I get Euler's number?
R
Eulers Number
How do you specifically order ggplot2 x axis instead of alphabetical order?
R
Ggplot2
R Faq
Specify custom Date format for colClasses argument in read.table/read.csv
R
Date
read.table
read.csv
How to remove outliers from a dataset
R
Sort columns of a dataframe by column name
R
Sorting
Dataset
Left align two graph edges (ggplot)
R
Ggplot2
Gridextra
Gtable
What are the "standard unambiguous date" formats for string-to-date conversion in R?
R
Date
Date Formatting
Strptime
as.date
Rename multiple columns by names
R
Dataframe
Rename
R Faq
Add an index (numeric ID) column to large data frame
R
Dataframe
How to add table of contents in Rmarkdown?
R
Rstudio
R Markdown
Easy way to export multiple data.frame to multiple Excel worksheets
R
Excel
Xlsx
switch() statement usage
R
Switch Statement
ggplot2 plot area margins?
R
Ggplot2
Data Visualization
How do I extract just the number from a named number (without the name)?
R
Vector
Named
Lm
How to specify names of columns for x and y when joining in dplyr?
R
Join
Left Join
Dplyr
dplyr mutate with conditional values
R
Dplyr
How to disable "Save workspace image?" prompt in R?
R
Read Eval-Print-Loop
Converting year and month ("yyyy-mm" format) to a date?
R
Date
Posix
Zoo
R Faq
Difference between as.POSIXct/as.POSIXlt and strptime for converting character vectors to POSIXct/POSIXlt
R
Date
Time
Benchmarking
Programmatically creating Markdown tables in R with KnitR
R
Markdown
Knitr
R Markdown
How to display only integer values on an axis using ggplot2
R
Ggplot2
How to left align text in annotate from ggplot2
R
Ggplot2
Text Alignment
Annotate
How to convert Excel date format to proper date in R
R
Excel
Date
Datetime
Lubridate
How to learn R as a programming language
R
Does R have an assert statement as in python?
R
Assert
Language Design
Assertions
How to name variables on the fly?
R
Assign
R Faq
Gantt charts with R
R
Charts
Gantt Chart
How can I extract plot axes' ranges for a ggplot2 object?
R
Ggplot2
How to setup workers for parallel processing in R using snowfall and multiple Windows nodes?
R
Windows
Parallel Processing
Cluster Computing
Snowfall
How to find out which package version is loaded in R?
R
Package
Version
can I change the position of the strip label in ggplot from the top to the bottom?
R
Ggplot2
Strip
Facet
How to create an empty R vector to add new items
Python
R
Vector
Rpy2
What's the fastest way to merge/join data.frames in R?
Performance
R
Join
Merge
data.table
Case Statement Equivalent in R
R
Case
Read all files in a folder and apply a function to each data frame
R
List
Lapply
Summary
Select the first row by group
R
Dataframe
Sqldf
Skipping error in for-loop
R
For Loop
Convert Named Character Vector to data.frame
R
Dataframe
Vector
Type Conversion
Replace all particular values in a data frame
R
Dataframe
Replace
Rstudio rmarkdown: both portrait and landscape layout in a single PDF
R
Pdf
Rstudio
Knitr
R Markdown
Plot labels at ends of lines
R
Ggplot2
Legend
R: removing NULL elements from a list
R
Suppress output of a function
R
Create a variable name with "paste" in R?
R
Remove part of a string
R
Regex
String
Error: C stack usage is too close to the limit
R
Why does unlist() kill dates in R?
R
Explain ggplot2 warning: "Removed k rows containing missing values"
R
Ggplot2
Parse JSON with R
Json
R
How to find the standard error of the mean?
R
Statistics
Standard Error
Quit and restart a clean R session from within R?
R
Alias
Intelligent point label placement in R
R
Plot
Label
Select multiple elements from a list
R
List
Subset
R spreading multiple columns with tidyr
R
Dataframe
Dplyr
Tidyr
Pass a string as variable name in dplyr::filter
R
Dplyr
Remove facet_wrap labels completely
R
Graphics
Ggplot2
Extract the first (or last) n characters of a string
String
R
Convert a vector into a list, each element in the vector as an element in the list
R
R Faq
How to deal with "data of class uneval" error from ggplot2?
R
Ggplot2
Problems when trying to load a package in R due to rJava
R
Rjava
R Xlsx
Change the Blank Cells to "NA"
R
Fitting a density curve to a histogram in R
R
Histogram
Curve Fitting
R Faq
write.table writes unwanted leading empty column to header when has rownames
R
Export to-Csv
write.table
Exception handling in R
R
Exception Handling
Working with dictionaries/lists to get list of keys
R
List
Hashmap
Lookup
Apply several summary functions on several variables by group in one call
R
Aggregate
R Faq
Split a large dataframe into a list of data frames based on common value in column
R
Performance
Matrix
Split
Dataframe
Select first element of nested list
R
List
Extract row corresponding to minimum value of a variable by group
R
Dplyr
data.table
Aggregate
Find duplicated elements with dplyr
R
Dplyr
Get filename without extension in R
R
R Faq
Shading a kernel density plot between two points.
R
Plot
how to increase the limit for max.print in R
R
Assign multiple new variables on LHS in a single line
R
Variables
Tuples
Variable Assignment
Assign
How to source R Markdown file like `source('myfile.r')`?
R
Markdown
Knitr
How to add a ggplot2 subtitle with different size and colour?
R
Ggplot2
Subtitle
Select / assign to data.table when variable names are stored in a character vector
R
data.table
How to increase the size of points in legend of ggplot2?
R
Ggplot2
Move a column to first position in a data frame
R
Dataframe
Regex group capture in R with multiple capture-groups
Regex
R
Capture
Capture Group
Sum rows in data.frame or matrix
R
Dataframe
Matrix
Rowsum
Choosing between qplot() and ggplot() in ggplot2
R
Ggplot2
Creating a comma separated vector
R
Importing Excel files into R, xlsx or xls
R
Xlsx
Xls
How to save all console output to file in R?
File
R
Console
Logging
How to subset matrix to one column, maintain matrix data type, maintain row/column names?
R
Matrix
Subset
R Faq
Pandas version of rbind
Python
R
Dataframe
Pandas
Collapse / concatenate / aggregate a column to a single comma separated string within each group
R
Aggregate
R Faq
Apply a function to every specified column in a data.table and update by reference
R
data.table
dplyr: "Error in n(): function should not be called directly"
R
Function
Plyr
Dplyr
Conflicting Libraries
Save a plot in an object
R
Plot
Extract year from date
R
Why is message() a better choice than print() in R for writing a package?
R
Inverse of matrix in R
R
Matrix Inverse
What are 'user' and 'system' times measuring in R system.time(exp) output?
R
Time
How to fix the aspect ratio in ggplot?
R
Ggplot2
Repeat rows of a data.frame N times
R
Dataframe
Count the number of all words in a string
R
String
Word Count
Compile R script into standalone .exe file?
R
How to delete columns that contain ONLY NAs?
R
Dataframe
Na
break/exit script
R
Exit
Break
Select columns based on string match - dplyr::select
R
Regex
Dplyr
dplyr mutate/replace several columns on a subset of rows
R
data.table
Dplyr
Check existence of directory and create if doesn't exist
R
Factors in R: more than an annoyance?
R
Language Design
Internals
R Factor
Plot correlation matrix into a graph
R
Ggplot2
Plot
Correlation
geom_smooth() what are the methods available?
R
Ggplot2
Split text string in a data.table columns
R
data.table
R ggplot2: stat_count() must not be used with a y aesthetic error in Bar graph
R
Ggplot2
Bar Chart
How to show code but hide output in RMarkdown?
R
Knitr
R Markdown
How to tell what is in one vector and not another?
R
Vector
How to fit a smooth curve to my data in R?
R
Plot
Curve Fitting
Get column index from label in a data frame
R
Arbitrary sections in roxygen docs
R
Roxygen
Read an Excel file directly from a R script
Excel
R
R Faq
Create sequence of repeated values, in sequence?
R
Repeat
Seq
Replicate
Remove part of string after "."
R
Combine legends for color and shape into a single legend
R
Ggplot2
Read all worksheets in an Excel workbook into an R list with data.frames
R
Excel
Xlconnect
Read fixed width text file
R
Fixed Width
How to save plots that are made in a shiny app
R
Ggplot2
Shiny
How to do vlookup and fill down (like in Excel) in R?
R
Lookup
How to replace NA values in a table for selected columns
R
Replace
Dataframe
data.table
Na
ggplot plots in scripts do not display in Rstudio
R
Ggplot2
Rstudio
How to use R with Google Colaboratory?
R
Jupyter Notebook
Google Colaboratory
Understanding the order() function
R
Sorting
R Faq
Getting the last n elements of a vector. Is there a better way than using the length() function?
R
Indexing
unique() for more than one variable
R
Unique
How can I obtain an 'unbalanced' grid of ggplots?
R
Ggplot2
R Grid
Do I need to normalize (or scale) data for randomForest (R package)?
R
Random Forest
How to get summary statistics by group
R
Dplyr
Stat
Summarize
S
equivalent of a python dict in R
Python
R
Dictionary
Remove multiple objects with rm()
R
Filtering out duplicated/non-unique rows in data.table
R
Duplicates
data.table
How to create a numeric vector of zero length in R
R
Vector
Numeric
Zero
How to randomize a vector
R
Vector
Random
Shuffle
Filter multiple values on a string column in dplyr
R
Dplyr
String Matching
Multiple Conditions
Legend on bottom, two rows wrapped in ggplot2 in r
R
Ggplot2
Legend
dplyr on data.table, am I really using data.table?
R
data.table
Dplyr
How to find the statistical mode?
R
Statistics
R Faq
Counting the number of elements with the values of x in a vector
R
Vector
Count
R Faq
How can I suppress the vertical gridlines in a ggplot2 plot?
R
Ggplot2
How can I arrange an arbitrary number of ggplots using grid.arrange?
R
Ggplot2
Why are loops slow in R?
Performance
R
Apply
How to delete the first row of a dataframe in R?
R
Dataset
Unique on a dataframe with only selected columns
R
Unique
Generate a dummy-variable
R
R Faq
Find the location of a character in string
Regex
String
R
R Error in x$ed : $ operator is invalid for atomic vectors
R
How to listen for more than one event expression within a Shiny eventReactive handler
R
Shiny
How to sum a variable by group
R
Dataframe
Aggregate
R Faq
Changing column names of a data frame
R
Dataframe
Rename
How to write trycatch in R
R
Exception
Exception Handling
Try Catch
R Faq
Removing empty rows of a data file in R
R
Extracting time from POSIXct
R
Date
Time
Posixct
How do I get the classes of all columns in a data frame?
R
set only lower bound of a limit for ggplot
R
Ggplot2
Select rows from a data frame based on values in a vector
R
Subset
R Faq
Get all Parameters as List
R
R install.packages returns "failed to create lock directory"
R
Package
Rcpp
R sequence of dates with lubridate
R
Lubridate
What does "The following object is masked from 'package:xxx'" mean?
R
R Faq
Fitting polynomial model to data in R
R
Curve Fitting
Data Analysis
Polynomial Math
Is there a built-in way to do a logarithmic color scale in ggplot2?
R
Ggplot2
ggplot combining two plots from different data.frames
R
Ggplot2
Zip or enumerate in R?
R
Indexing
Enumerate
Select random element in a list of R?
R
Create a data.frame where a column is a list
R
List
Dataframe
Cluster analysis in R: determine the optimal number of clusters
R
Cluster Analysis
K Means
Sankey Diagrams in R?
R
Visualization
Diagram
Flowchart
Sankey Diagram
How do you add a general label to facets in ggplot2?
R
Label
Facet
Ggplot2
Use a value from the previous row in an R data.table calculation
R
data.table
Find duplicate values in R
R
R Apply() function on specific dataframe columns
R
Dataframe
Apply
Using roxygen2 and doxygen on the same package?
C
R
Documentation
Doxygen
Roxygen2
R - How to test for character(0) in IF statement
R
If Statement
How to prevent scientific notation in R?
R
Use pipe operator %>% with replacement functions like colnames()<-
R
Dplyr
Magrittr
Coerce multiple columns to factors at once
R
Dataframe
R Factor
How to obtain a list of directories within a directory, like list.files(), but instead "list.dirs()"
R
Directory
How can I create a correlation matrix in R?
R
Matrix
Visualization
Correlation
How to coerce a list object to type 'double'
R
Auto-format R code in RStudio
R
Rstudio
Autoformatting
Control point border thickness in ggplot
R
Ggplot2
Border
Point
Thickness
What's the difference between facet_wrap() and facet_grid() in ggplot2?
R
Ggplot2
Facet Wrap
Error in fetch(key) : lazy-load database
R
Roxygen2
Saving a high resolution image in R
R
Ggplot2
Publish
Tiff
How to parse milliseconds?
R
Datetime
Time Series
Strptime
Changing line colors with ggplot()
R
Ggplot2
How to convert a matrix to a list of column-vectors in R?
List
R
Matrix
When should I use the := operator in data.table?
R
data.table
Colon Equals
How can I interrupt a running code in R with a keyboard command?
R
File path issues in R using Windows ("Hex digits in character string" error)
R
Filepath
Backslash
Path Separator
R - do I need to add explicit new line character with print()?
R
Printing
Newline
Return index of the smallest value in a vector?
R
What are the differences between community detection algorithms in igraph?
R
Igraph
How to use the switch statement in R functions?
R
Switch Statement
Creating a Prompt/Answer system to input data into R
R
Counting unique / distinct values by group in a data frame
R
Dataframe
Distinct Values
R Faq
Get the difference between dates in terms of weeks, months, quarters, and years
R
Date
Pasting two vectors with combinations of all vectors' elements
R
R Faq
Handling java.lang.OutOfMemoryError when writing to Excel from R
R
Xlsx
Removing NA in dplyr pipe
R
Dplyr
Na
How do I deal with special characters like \^$.?*|+()[{ in my regex?
Regex
R
R Faq
How can two strings be concatenated?
R
String Concatenation
R Faq
What is the most useful R trick?
R
Trimming a huge (3.5 GB) csv file to read into R
R
Csv
How to assign the result of the previous expression to a variable?
R
Return Value
Interactive
Built In
How to plot all the columns of a data frame in R
R
Dataframe
Plot
R Faq
Usage of `...` (three-dots or dot-dot-dot) in functions
R
Ellipsis
Types and classes of variables
Class
R
Types
What is the difference between parent.frame() and parent.env() in R; how do they differ in call by reference?
R
Environment
Function Call
Stack Frame
How to sum data.frame column values?
R
Dataframe
Sum
Aggregate Functions
Calculate the mean by group
R
Dataframe
R Faq
R shiny passing reactive to selectInput choices
R
Shiny
Shiny Reactivity
Removing display of row names from data frame
R
Printing
Dataframe
Output Formatting
Rowname
How do I install an R package from source?
R
Combine a list of data frames into one data frame by row
R
List
Dataframe
R Faq
Is there a way to use read.csv to read from a string value rather than a file in R?
R
Csv
File Io
read.csv
Formula with dynamic number of variables
R
Formula
R Formula
How to set legend alpha with ggplot2
R
Ggplot2
How to overlay density plots in R?
R
Plot
Density Plot
What does the dot mean in R – personal preference, naming convention or more?
R
Coding Style
Naming Conventions
Plyr
Using data.table package inside my own package
R
data.table
Function to concatenate paths?
R
Path
Concatenation
Create a Vector of All Days Between Two Dates
R
Lubridate
Plot multiple boxplot in one graph
R
Plot
Ggplot2
Boxplot
Convert all data frame character columns to factors
R
Dataframe
How to get week numbers from dates?
R
Date
data.table
Week Number
Linking to other packages in documentation in roxygen2 in R
R
Documentation
Roxygen2
Inconsistent behaviour with tm_map transformation functions when using multiple cores
R
Parallel Processing
Text Mining
Tm
Doparallel
How to add leading zeros?
R
Formatting
Number Formatting
R Faq
Position of the sun given time of day, latitude and longitude
R
Math
Geometry
Astronomy
Azimuth
Why is `vapply` safer than `sapply`?
R
Apply
R Faq
How to flatten a list of lists?
R
List
Tm
Remove multiple columns from data.table
R
data.table
Construct a manual legend for a complicated plot
R
Data Visualization
Ggplot2
How can I build a model to distinguish tweets about Apple (Inc.) from tweets about apple (fruit)?
Java
Python
R
Machine Learning
Classification
Extract a column from a data.table as a vector, by position
R
Vector
Indexing
data.table
Get coefficients estimated by maximum likelihood into a stargazer table
R
Optimization
Lm
Stargazer
python equivalent of R table
Python
R
Frequency
How exactly does R parse `->`, the right-assignment operator?
R
Yacc
R move column to last using dplyr
R
Dplyr
R on MacOS Error: vector memory exhausted (limit reached?)
R
Macos
Bioconductor
Select only rows if its value in a particular column is less than the value in the other column
Select
R
Rows
Why is `[` better than `subset`?
R
Filter
Subset
R Faq
Extracting specific columns from a data frame
R
Dataframe
R Faq
How to change legend title in ggplot
R
Plot
Ggplot2
How to quickly form groups (quartiles, deciles, etc) by ordering column(s) in a data frame
R
Sorting
Dataframe
R: what are Slots?
Oop
R
S4
Slot
R Faq
Extract regression coefficient values
R
Regression
Lm
Elegant way to report missing values in a data.frame
R
Dataframe
Missing Data
How to see the source code of R .Internal or .Primitive function?
R
Merging a lot of data.frames
R
Dataframe
Merge
ggplot2: Adjust the symbol size in legends
R
Ggplot2
Shift legend into empty facets of a faceted plot in ggplot2
R
Ggplot2
Convert a dataframe to a vector (by rows)
R
Dataframe
Vector
R Faq
How to move or position a legend in ggplot2
R
Ggplot2
Legend
Legend Properties
Change the class from factor to numeric of many columns in a data frame
R
Reusing a Model Built in R
R
Models
Elegant indexing up to end of vector/matrix
R
Matrix
Dataframe
Indexing
What is the difference between gc() and rm()
R
Memory Management
Garbage Collection
What are examples of when seq_along works, but seq produces unintended results?
R
Seq
Convert from lowercase to uppercase all values in all character variables in dataframe
R
String
Uppercase
Subscript letters in ggplot axis label
R
Ggplot2
Avoid ggplot sorting the x-axis while plotting geom_bar()
R
Ggplot2
Convert a data frame to a data.table without copy
R
Dataframe
Reference
data.table
Virtual environment in R?
R
Python
How to plot a function curve in R
R
Ggplot2
Plot
Lattice
R Faq
dplyr::select one column and output as vector
R
Select
Vector
Dataframe
Dplyr
R Shiny: reactiveValues vs reactive
R
Shiny
Advantages of reactive vs. observe vs. observeEvent
R
Shiny
Number of months between two dates
R
Date
Reset par to the default values at startup
R
Default
Par
Create a numeric vector with names in one statement?
R
Use tryCatch skip to next value of loop upon error?
R
Error Handling
Exception Handling
Try Catch
Converting two columns of a data frame to a named vector
R
Vector
Dataframe
Coercion
auto.arima() equivalent for python
Python
R
Time Series
Statsmodels
Forecasting
dplyr change many data types
R
Dataframe
Dplyr
Does R have function startswith or endswith like python?
Python
R
String
Startswith
Ends With
How can I play birthday music using R?
R
How to split a data frame?
R
Split
Dataframe
R Faq
Subset / filter rows in a data frame based on a condition in a column
R
Dataframe
Subset
R Faq
Change the spacing of tick marks on the axis of a plot?
R
Plot
Do not want scientific notation on plot axis
Math
R
Graphics
Elegant way to check for missing packages and install them?
R
Packages
R Faq
Write lines of text to a file in R
File Io
R
How to tell CRAN to install package dependencies automatically?
R
Cran
R Forge
Undefined columns selected when subsetting data frame
R
Dataframe
Subset
shiny 4 small textInput boxes side-by-side
R
Shiny
Include code that does not run in Rpresentation Markdown
R
Markdown
Presentation
Merge Multiple spaces to single space; remove trailing/leading spaces
R
Pattern Matching
Get dplyr count of distinct in a readable way
R
Dplyr
Replace all occurrences of a string in a data frame
R
Dataframe
Append data frames together in a for loop
R
gsub() in R is not replacing '.' (dot)
R
Regex
Gsub
Stringr
Create new variables with mutate_at while keeping the original ones
R
Dplyr
Is there any standard logging package for R?
Logging
R
Replacing character values with NA in a data frame
R
Dataframe
Na
R: losing column names when adding rows to an empty data frame
R
Dataframe
Names
Rbind
How to rename a single column in a data.frame?
R
Conditional replacement of values in a data.frame
R
Dataframe
R and object oriented programming
Oop
R
Installing R from CRAN Ubuntu repository: No Public Key Error
Linux
R
Apt
How to print (to paper) a nicely-formatted data frame
R
Dataframe
Formatting
What exactly is copy-on-modify semantics in R, and where is the canonical source?
R
Pass by-Reference
Pass by-Value
Efficiently convert backslash to forward slash in R
R
Escaping
Filepath
Why use as.factor() instead of just factor()
R
R Factor
Histogram with Logarithmic Scale and custom breaks
R
Histogram
Logarithm
Access a URL and read Data with R
Url
R
Side-by-side plots with ggplot2
R
Ggplot2
Visualization
R Faq
How to set limits for axes in ggplot2 R plots?
R
Plot
Ggplot2
Sample random rows in dataframe
R
Dataframe
Random
R Faq
Removing non-ASCII characters from data files
R
Unicode
Ascii
Non Ascii-Characters
Speeding up Julia's poorly written R examples
R
Optimization
Julia
ggplot2 - annotate outside of plot
R
Annotations
Ggplot2
R Reading in a zip data file without unzipping it
R
What is difference between dataframe and list in R?
R
List
Dataframe
Re-ordering factor levels in data frame
R
Dataframe
Levels
R Faq
How to check if two data frames are equal
Database
R
Dataset
Compare
Dataframe
Importing a big xlsx file into R?
R
Excel
Xlsx
How to declare a vector of zeros in R
R
What IDEs are available for R in Linux?
R
Ide
Finding local maxima and minima
R
Controlling ggplot2 legend display order
R
Ggplot2
How to group data.table by multiple columns?
R
Group By
data.table
How to leave the R browser() mode in the console window?
R
Debugging
Namespace dependencies not required
R
What you can do with a data.frame that you can't with a data.table?
R
Dataframe
data.table
Convert R vector to string vector of 1 element
String
R
Vector
Arguments
System
Plot multiple lines (data series) each with unique color in R
R
Colors
Plot
Unique
Lines
Add count of unique / distinct values by group to the original data
R
Count
Unique
Aggregate
Merge two data frames while keeping the original row order
R
Sorting
Dataframe
Merge
Understanding `scale` in R
R
Scale
Transformation
Heatmap
Getting Warning: " 'newdata' had 1 row but variables found have 32 rows" on predict.lm
R
Prediction
Lm
How to install multiple packages?
R
Packages
Error: package or namespace load failed for ggplot2 and for data.table
R
Ggplot2
data.table
Using ggplot2, can I insert a break in the axis?
R
Ggplot2
R Faq
How to use random forests in R with missing values?
R
Random Forest
Merge Two Lists in R
R
List
Dataframe
General guide for creating publication quality tables using R, Sweave, and LaTeX
R
Sweave
Xtable
Find indices of duplicated rows
R
Duplicates
Dataframe
Round up from .5
R
Rounding
R Faq
Simple way to subset SpatialPolygonsDataFrame (i.e. delete polygons) by attribute in R
R
Mapping
Spatial
Maptools
Combine base and ggplot graphics in R figure window
R
Plot
Ggplot2
Base
Biwavelet
Error: could not find function "unit"
R
Ggplot2
How to save data file into .RData?
R
Rdata
Can dplyr summarise over several variables without listing each one?
R
Dplyr
dplyr filter: Get rows with minimum of variable, but only the first if multiple minima
R
Dplyr
Code to clear all plots in RStudio
R
Plot
Rstudio
How to remove a directory in R?
R
Directory
RMarkdown: How to change the font color?
R
R Markdown
R cmd check note: unable to verify current time
R
How to subtract/add days from/to a date?
R
Date
R Faq
Multiply rows of matrix by vector?
R
Vector
Matrix
Multiplication
R: 2 functions with the same name in 2 different packages
Function
R
Packages
Conflict
Proxy setting for R
R
ggplot2 reverse order of scale_brewer
R
Ggplot2
How can I print when using %dopar%
R
Foreach
Parallel Processing
Add multiple columns to R data.table in one function call?
R
data.table
Any way to make plot points in scatterplot more transparent in R?
R
Plot
Ggplot2
Alpha
Reading text file with multiple space as delimiter in R
R
File
Space
Delimited
Boxplot show the value of mean
R
Ggplot2
Overlay normal curve to histogram in R
R
Plot
Histogram
Gaussian
Extract the maximum value within each group in a dataframe
R
Aggregate
Set certain values to NA with dplyr
R
Dplyr
How to get row index number in R?
R
Dataframe
Keeping trailing zeros
R
Math
Rounding
Windows 7, update.packages problem: "unable to move temporary installation"?
R
Windows 7
Permissions
Packages
File Permissions
Why use c() to define vector?
R
How do I copy and paste data into R from the clipboard?
R
Io
Clipboard
How to turn a vector into a matrix in R?
R
Vector
Matrix
Subscript out of bounds - general definition and solution?
R
Matrix
Sna
How do I extract a single column from a data.frame as a data.frame?
R
Dataframe
Subset
Outputting multiple lines of text with renderText() in R shiny
R
Shiny
How to create a lag variable within each group?
R
data.table
Plyr
Dplyr
R Markdown - changing font size and font type in html output
R
Knitr
R Markdown
Representing Parametric Survival Model in 'Counting Process' form in JAGS
R
Survival Analysis
Jags
Stan
Weibull
Explain the quantile() function in R
Math
R
Statistics
How to get the second sub element of every element in a list
R
When does it pay off to use S4 methods in R programming
Oop
R
Methods
S4
How to see data from .RData file?
R
Rdata
Access and preserve list names in lapply function
R
Names
Lapply
R adding days to a date
R
Datetime
Date
How do I check the existence of a downloaded file
R
Control ggplot2 legend look without affecting the plot
R
Plot
Ggplot2
Legend
How to reverse order a vector?
R
Sorting
Vector
Reverse
How to find the length of a string in R
R
String
Unicode
String Length
How can I trim leading and trailing white space?
R
Whitespace
Trim
Removing Whitespace
R Faq
.EACHI in data.table?
R
Performance
Group By
data.table
Changing factor levels with dplyr mutate
R
Dplyr
Split string based on alternating character in R
R
How to specify "does not contain" in dplyr filter
R
Filter
Dplyr
R + Shiny which hammer? straight Shiny, flexdashboard or shinydashboard?
R
Shiny
Shinydashboard
Flexdashboard
Cartesian product data frame
R
Dataframe
Imported a csv-dataset to R but the values becomes factors
R
R Factor
read.csv
Decompress gz file using R
R
Gzip
Test if an argument of a function is set or not in R
R
Function
Variables
Variable Assignment
Isset
Delete rows with blank values in one particular column
R
Dataframe
Missing Data
Create stacked barplot where each stack is scaled to sum to 100%
R
Ggplot2
How do I clean up R memory without restarting my PC?
R
Calculate difference between values in consecutive rows by group
R
Change variable name in for loop using R
R
Convert named list to vector with values only
R
List
How to create an empty matrix in R?
R
Matrix
Na
Fitting several regression models with dplyr
R
Dplyr
Using Caret Package but Getting Error in library(e1071)
R
R Caret
Adding custom image to geom_polygon fill in ggplot
R
Ggplot2
Understanding the contents of the Makevars file in R (macros, variables, ~/.R/Makevars and pkg/src/Makevars)
R
Rcpp
Creating a Plot Window of a Particular Size
R
Plot
Moving columns within a data.frame() without retyping
R
do-while loop in R
R
Loops
Repeat
Do While
R Faq
All Levels of a Factor in a Model Matrix in R
R
Matrix
Model
Indicator
Convert data.frame columns from factors to characters
R
Dataframe
Is there an R function for finding the index of an element in a vector?
R
Indexing
Match
Vectorization
Plot a function with ggplot, equivalent of curve()
R
Ggplot2
Plot
Merge unequal dataframes and replace missing rows with 0
R
Merge
Dataframe
Options for caching / memoization / hashing in R
R
Caching
Hash
Memoization
Memoise
duplicate 'row.names' are not allowed error
R
Csv
R Faq
Getting strings recognized as variable names in R
R
Variables
String Concatenation
Why am I getting X. in my column names when reading a data frame?
R
Dataframe
read.csv
Illegal Characters
How to save a plot made with ggplot2 as SVG
R
Svg
Ggplot2
Confidence intervals for predictions from logistic regression
R
Statistics
Glm
Confidence Interval
R pass variable column indices to ggplot2
R
Ggplot2
Dataframe
Compare two character vectors in R
R
Venn Diagram
"Non Zero Exit Status" R 3.0.1 'XML' and 'RCurl'
Xml
Linux
R
Rcurl
install.packages
dplyr mutate rowSums calculations or custom functions
R
Dplyr
Library is not writable
R
Ubuntu
Lattice: multiple plots in one window?
R
Lattice
How do you use multiple versions of the same R package?
R
Versioning
Packages
Getting path of an R script
R
Path
ggplot2, facet_grid, free scales?
R
Ggplot2
Combining paste() and expression() functions in plot labels
R
Plot
Fastest way to detect if vector has at least 1 NA?
R
Na
Automatically Delete Files/Folders
R
File
Path
Directory
Delete File
Legend placement, ggplot, relative to plotting region
R
Ggplot2
"%%" and "%/%" for the remainder and the quotient
R
R knitr Markdown: Output Plots within For Loop
R
Ggplot2
Knitr
Rstudio
Locate the ".Rprofile" file generating default options
R
Rprofile
Common main title of a figure panel compiled with par(mfrow)
R
Graph
Plot
Title
Par
Summarizing multiple columns with data.table
R
data.table
Creating multi column legend in ggplot
R
Plot
Ggplot2
ending "+" prompt in R
R
R Faq
Wrap long axis labels via labeller=label_wrap in ggplot2
R
Ggplot2
Plot
Axis Labels
Unable to install packages in latest version of RStudio and R Version.3.1.1
R
dplyr summarise_each with na.rm
R
Dplyr
Plotting with ggplot2: "Error: Discrete value supplied to continuous scale" on categorical y-axis
R
Ggplot2
Scale
Categorical Data
R Factor
Applying group_by and summarise on data while keeping all the columns' info
R
Dplyr
Function to calculate geospatial distance between two points (lat,long) using R
R
Package
Geospatial
Distance
Latitude Longitude
avoid string printed to console getting truncated (in RStudio)
R
Rstudio
Settings
Output Formatting
Can you pass-by-reference in R?
R
Oop
Parameter Passing
Pass by-Reference
How can I check whether a function call results in a warning?
R
R plot: size and resolution
R
Png
Plot
How to convert R Markdown to HTML? I.e., What does "Knit HTML" do in Rstudio 0.96?
R
Rstudio
Knitr
R Markdown
R expand.grid() function in Python
Python
R
Plot size and resolution with R markdown, knitr, pandoc, beamer
R
Knitr
Pandoc
Beamer
R Markdown
Custom legend for multiple layer ggplot
R
Ggplot2
Subset data to contain only columns whose names match a condition
R
Subset
ggplot2 bar plot, no space between bottom of geom and x axis keep space above
R
Ggplot2
How to divide each row of a matrix by elements of a vector in R
R
Matrix
Vector
Embedding Image in Shiny App
R
Embed
Shiny
Centering image and text in R Markdown for a PDF report
R
Markdown
R Markdown
Forcing garbage collection to run in R with the gc() command
R
Garbage Collection
Getting R plots into LaTeX?
Graphics
R
Latex
Vector Graphics
Prevent unlist to drop NULL values
List
R
Null
Extract p-value from aov
R
Anova
How to efficiently use Rprof in R?
R
Profiling
Profiler
Calculate the Area under a Curve
R
Numerical Integration
Append lines to a file
R
File
Large Data
Formatting dates with scale_x_date in ggplot2
R
Date
Formatting
Ggplot2
How do I rename files using R?
R
File Rename
Formatting dates on X axis in ggplot2
R
Ggplot2
ggplot2 two-line label with expression
R
Ggplot2
What specifically are the dangers of eval(parse(...))?
R
Parsing
Eval
Insert a character at a specific location in a string
String
R
R Plotting confidence bands with ggplot
R
Ggplot2
Add a prefix to column names
R
Dataframe
Replace multiple letters with accents with gsub
R
Regex
Gsub
Generate list of all possible combinations of elements of vector
R
Combinations
Permutation
ggplot2: facet_wrap strip color based on variable in data set
R
Ggplot2
Facet Wrap
Delete rows containing specific strings in R
R
String
Match
Rows
How to find the highest value of a column in a data frame in R?
R
Max
Comparing gather (tidyr) to melt (reshape2)
R
Reshape2
Tidyr
How to organize large Shiny apps?
R
Shiny
How to perform multiple left joins using dplyr in R
R
Dplyr
Get the list of installed packages by user in R
R
Packages
How do I change the number of decimal places on axis labels in ggplot2?
R
Ggplot2
Change bar plot colour in geom_bar with ggplot2 in r
R
Ggplot2
Colors
Geom Bar
Extracting a string between other two strings in R
Regex
R
Stringr
How to increase the number of columns using R in Linux
R
How does one reorder columns in a data frame?
R
Sorting
Dataframe
R Faq
Access variable value where the name of variable is stored in a string
R
Variables
R Faq
How to put labels over geom_bar in R with ggplot2
R
Ggplot2
Draw a circle with ggplot2
R
Ggplot2
Geometry
Calculate row means on subset of columns
R
Dataframe
rbind error: "names do not match previous names"
R
Sp
Subsetting R data frame results in mysterious NA rows
R
Subset
Reshape
Na
Controlling the order of points in ggplot2?
R
Ggplot2
Rpy2
knitr/Rmd: page break after n lines/n distance
R
Knitr
R Markdown
Restart mixed effect model estimation with previously estimated values
R
Lme4
Mixed Models
Lmer
How to repeat a String N times in R?
String
R
Repeat
if else condition in ggplot to add an extra layer
R
If Statement
Ggplot2
dplyr::select function clashes with MASS::select
R
Dplyr
How to crash R?
R
Crash
How to merge 2 vectors alternating indexes?
R
Vector
Merge
What are Python pandas equivalents for R functions like str(), summary(), and head()?
Python
R
Pandas
Reverse order of discrete y axis in ggplot2
R
Ggplot2
How can I spread repeated measures of multiple variables into wide format?
R
Tidyr
groupby weighted average and sum in pandas dataframe
Python
R
Pandas
Unseen factor levels when appending new records with unseen string values to a dataframe, cause Warning and result in NA
R
Dataframe
Append
R Factor
How to change the default time zone in R?
R
Timezone
Date Arithmetic
Proper/fastest way to reshape a data.table
R
data.table
How to reset par(mfrow) in R
R
Plot
Reset
R Base-Graphics
How to specify the actual x axis values to plot as x axis ticks in R
R
Plot
Global variables in packages in R
R
Global Variables
Read a text file in R line by line
R
Text
File Io
List all column except for one in R
R
Dataframe
Read a CSV from github into R
R
Data Manipulation
Data Management
Appending a list to a list of lists in R
R
List
Matrix
Append
Extend
Pre- or post-process roxygen snippets
R
Roxygen2
Subset rows corresponding to max value by group using data.table
R
data.table
Greatest N-per-Group
geom_rect and alpha - does this work with hard coded values?
R
Ggplot2
Alpha Transparency
Subset and ggplot2
R
Ggplot2
Subset
rmarkdown: pandoc: pdflatex not found
R
Macos
Pandoc
Pdflatex
R Markdown
Left join only selected columns in R with the merge() function
R
Merge
multiple authors and subtitles in Rmarkdown yaml
R
Yaml
Rstudio
R Markdown
How to use grep()/gsub() to find exact match
R
Regex
Word Boundary
How to install R packages that are not available in "R-essentials"?
Python
R
Anaconda
Conda
How to merge color, line style and shape legends in ggplot
R
Ggplot2
"long vectors not supported yet" error in Rmd but not in R Script
R
Rstudio
Knitr
R Markdown
List of ggplot2 theme options?
R
Ggplot2
How to increase the space between the bars in a bar plot in ggplot2?
R
Ggplot2
R package that automatically uses several cores?
R
Multicore
R: how to clear all warnings
R
Warnings
How to sort a data frame by date
R
Sorting
Date
Dataframe
Remove Rows From Data Frame where a Row matches a String
R
Dataframe
Make R exit with non-zero status code
R
Exit
Get the column number in R given the column name
R
R define dimensions of empty data frame
R
How to load packages in R automatically?
R
Loading
R Package
R Faq
Defaults
The R %in% operator
R
extract hours and seconds from POSIXct for plotting purposes in R
R
Datetime
Ggplot2
Lubridate
Understanding dates and plotting a histogram with ggplot2 in R
R
Datetime
Ggplot2
Histogram
How to automatically include all 2-way interactions in a glm model in R
R
Is there a table or catalog of aesthetics for ggplot2?
R
Ggplot2
R: sourcing files using a relative path
R
First letter to upper case
R
String
how do you send email from R
R
How to italicize part (one or two words) of an axis title
R
Ggplot2
Axis
knitr/rmarkdown/Latex: How to cross-reference figures and tables?
R
Latex
Knitr
R Markdown
Cross Reference
alternative to "!is.null()" in R
R
Chopping a string into a vector of fixed width character elements
R
Strsplit
ggplot's qplot does not execute on sourcing
R
Ggplot2
R Faq
Export CSV without col.names
Sqlite
R
Csv
Predict() - Maybe I'm not understanding it
R
Lm
Predict
How to drop columns by name in a data frame
R
Dataframe
Subset
Test if characters are in a string
R
Regex
String
R Faq
Diagnosing R package build warning: "LaTeX errors when creating PDF version"
R
Error Handling
Package
store output of system command into a variable in r
R
Variables
System
Controlling line color and line type in ggplot legend
R
Ggplot2
Adding time to POSIXct object in R
R
Datetime
Posixct
The R console is in my native language, how can I set R to English?
Windows
R
Localization
Settings
Rstudio
How to convert a huge list-of-vector to a matrix more efficiently?
R
List
Matrix
Performance
Add a month to a Date
R
Date
Date Arithmetic
controlling order of facet_grid/facet_wrap in ggplot2?
R
Ggplot2
Name columns within aggregate in R
R
Rename
Aggregate
Using `geom_line()` with X axis being factors
R
Ggplot2
Manually setting group colors for ggplot2
R
Colors
Ggplot2
Find row and column index of maximum value in a matrix
R
Matrix
Scale and size of plot in RStudio shiny
R
Size
Rstudio
Shiny
Why does NaN^0 == 1
R
Math
Na
Arithmetic Expressions
calculate the mean for each column of a matrix in R
R
Dataframe
Mean
checking CRAN incoming feasibility ... NOTE Maintainer
R
Cran
R Package
Putting x-axis at top of ggplot2 chart
R
Ggplot2
Create an R package that depends on another R package located on GitHub
R
Github
Package
install.packages fails in knitr document: "trying to use CRAN without setting a mirror"
R
Knitr
R and Python in one Jupyter notebook
Python
R
Python 2.7
Ipython
Jupyter Notebook
How to disable scientific notation?
R
Formatting
Scientific Notation
Order Bars in ggplot2 bar graph
R
Ggplot2
R Faq
Getting a function name as a string
R
Function
Screening (multi)collinearity in a regression model
R
Statistics
Regression
Modifying fonts in ggplot2
R
Ggplot2
Extract file extension from file path
R
File Extension
Built In
How to install development version of R packages github repository
R
Github
Ggplot2
Place a border around points
R
Ggplot2
Error in grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : Polygon edge not found
R
Ggplot2
How to fix spaces in column names of a data.frame (remove spaces, inject dots)?
R
Dataframe
Sum a list of matrices
R
List
Matrix
When using "geom_histogram" there is error "unit(tic_pos.c, "mm") : 'x' and 'units' must have length > 0". Why
R
Ggplot2
How do I name the "row names" column in r
R
Nested ifelse statement
R
If Statement
Nested
Sas
data.frame Group By column
R
Aggregate
Rtools not being detected by R
Windows
R
Rstudio
Multi-row x-axis labels in ggplot line chart
R
Ggplot2
How to read first 1000 lines of .csv file into R?
R
dplyr: nonstandard column names (white space, punctuation, starts with numbers)
R
Dataframe
Dplyr
Add panel border to ggplot2
R
Plot
Ggplot2
Why are my dplyr group_by & summarize not working properly? (name-collision with plyr)
R
Plyr
Dplyr
Shadowing
Name Collision
ggplot2, change title size
R
Data Visualization
Ggplot2
How does one stop using rowwise in dplyr?
R
Dplyr
Left join using data.table
R
Join
Merge
data.table
Emacs mode for R?
Emacs
R
R dates "origin" must be supplied
R
Date
Function to clear the console in R and RStudio
R
Plotting two variables as lines using ggplot2 on the same graph
R
Ggplot2
Graph
Time Series
R Faq
Why do R objects not print in a function or a "for" loop?
R
For Loop
Printing
R Faq
Convert factor to integer
R
Integer
Coercion
Adding greek character to axis title
R
Unicode
Labels
Plotmath
How R formats POSIXct with fractional seconds
R
Posixct
Merge data frames based on rownames in R
R
Merge
Dataframe
Rearrange dataframe to a table, the opposite of "melt"
R
Dataframe
Reshape
Split data.frame based on levels of a factor into new data.frames
R
Dataframe
R Faq
Replacing values from a column using a condition in R
R
Dataframe
Conditional Statements
how to delete a file with R?
R
File
File Manipulation
Combine column to remove NA's
R
Merge
Na
Why does gc() not free memory?
R
Garbage Collection
Select the top N values by group
R
Aggregate
How to convert a list consisting of vector of different lengths to a usable data frame in R?
R
Vector
Dataframe
Does ifelse really calculate both of its vectors every time? Is it slow?
R
Performance
If Statement
Vectorization
Adding vertical line in plot ggplot
R
Ggplot2
two-column layouts in RStudio presentations/slidify/pandoc
R
Knitr
Rstudio
R Markdown
Slidify
Summarize all group values and a conditional subset in the same call
R
Dplyr
Sqldf
How to get a regression summary in scikit-learn like R does?
Python
R
Scikit Learn
Linear Regression
Summary
Pass arguments to dplyr functions
R
Dplyr
Lazy Evaluation
Starting Shiny app after password input
R
Passwords
Shiny
Is there a command in R to view all the functions present in a package?
R
Extracting the last n characters from a string in R
R
String
Substring
How to check if object (variable) is defined in R?
R
How to access the last value in a vector?
R
Dataframe
Vector
How to get Leaflet for R use 100% of Shiny dashboard height
R
Shiny
Leaflet
Shinydashboard
Extract Month and Year From Date in R
R
Date
Install udunits2 package for R3.3
R
Add row to a data frame with total sum for each column
R
Dataframe
How do Rpy2, pyrserve and PypeR compare?
Python
R
Rpy2
Pyrserve
Pyper
Aggregate Daily Data to Month/Year intervals
Datetime
R
R: Break for loop
R
For Loop
Break
Splitting a continuous variable into equal sized groups
R
Variables
Split
Continuous
R round to nearest .5 or .1
R
Rounding
R Faq
How to join (merge) data frames (inner, outer, left, right)
R
R Faq
Sort (order) data frame rows by multiple columns
R
Sorting
Dataframe
R Faq
How to Correctly Use Lists in R?
R
List
Data Structures
Language Features
Abstract Data-Type
Center Plot title in ggplot2
R
Ggplot2
Center
Ggtitle
R Not in subset
R
Subset
multithreading with R?
R
R markdown: Accessing variable from code chunk (variable scope)
R
Knitr
R Markdown
How to return a error message in R?
R
Meaning of ~. (tilde dot) argument?
R
Syntax
How to convert R formula to text?
R
R Formula
Create dynamic number of input elements with R/Shiny
R
Dynamic
Input
Shiny
Cleaning up factor levels (collapsing multiple levels/labels)
R
R Factor
R Faq
Force character vector encoding from "unknown" to "UTF-8" in R
R
Utf 8
Character Encoding
data.table
How can one work fully generically in data.table in R with column names in variables
R
data.table
Calculated Columns
Programmatically Created
Is it possible to use spread on multiple columns in tidyr similar to dcast?
R
Reshape2
Tidyr
reshape2 melt warning message
R
Reshape2
Melt
Argument is of length zero in if statement
R
How do I change the default library path for R packages
R
Using functions of multiple columns in a dplyr mutate_at call
R
Dplyr
How to replace all NA in a dataframe using tidyr::replace_na?
R
Dplyr
Tidyr
Opposite of %in%: exclude rows with values specified in a vector
R
Dataframe
Subset
How to reshape data from long to wide format
R
Reshape
R Faq
How do you print to stderr in R?
R
Printing
Stderr
How can I document data sets with roxygen?
R
Documentation Generation
R Package
Roxygen
SQL Server RODBC Connection
R
Rodbc
How to paste a string on each element of a vector of strings using apply in R?
R
Paste
Apply
How do I generate a list with a specified increment step?
R
Seq
R + ggplot : Time series with events
R
Ggplot2
Visualization
Graphing
plot legends without border and with white background
R
Plot
Legend
Cannot install R-forge package using install.packages
R
Svn
Installation
Package
R Forge
How to extract the fill colours from a ggplot object?
R
Ggplot2
Remove all text before colon
R
Unix
Replace
Sed
Awk
How to suppress warnings when plotting with ggplot
R
Ggplot2
Is there any authoritative documentation on R release nicknames?
R
How to pass command-line arguments when calling source() on an R file within another R file
R
Unexpected 'else' in "else" error
R
If Statement
R + combine a list of vectors into a single vector
R
List
Vector
Append
Sapply
How to save a data frame as CSV to a user selected location using tcltk
R
Csv
Save
Dataframe
tooltip on shiny R?
R
Shiny
Aggregating by unique identifier and concatenating related values into a string
R
Concatenation
Aggregate
Issue when importing dataset: `Error in scan(...): line 1 did not have 145 elements`
R
Import
read.table
Remove empty elements from list with character(0)
R
List
What does the R function `poly` really do?
R
How to add new column to an dataframe (to the front not end)?
R
Dataframe
Remove last N rows in data frame with the arbitrary number of rows
R
Dataframe
Row
How to visualize a large network in R?
R
Graph
Visualization
Social Networking
Graph Visualization
Replace missing values with column mean
R
Missing Data
Imputation
Error in file(file, "rt") : cannot open the connection
R
Csv
Format number in R with both comma thousands separator and specified decimals
R
Format
run a for loop in parallel in R
R
Parallel Processing
Parallel Foreach
Forcing R output to be scientific notation with at most two decimals
R
Decimal
Scientific Notation
Include levels of zero count in result of table()
R
Count
Missing Data
Plotting a 3D surface plot with contour map overlay, using R
R
3d
Statistics
Plot
ggplot2: sorting a plot
R
Ggplot2
Customize axis labels
R
Ggplot2
Scale a series between two points
R
Scaling
Overlay histogram with density curve
R
Ggplot2
Histogram
How can I remove the legend title in ggplot2?
R
Ggplot2
Legend
class in R: S3 vs S4
Class
R
S4
Count number of rows per group and add result to original data frame
R
Count
Aggregate
R Faq
R: numeric 'envir' arg not of length one in predict()
R
Lm
Predict
How to collapse a list of characters into a single string in R
String
R
String Concatenation
Replace all values in a matrix <0.1 with 0
R
Replace
Putting mathematical symbols and subscripts mixed with regular letters
R
Ggplot2
Mathematical Typesetting
Using gsub to extract character string before white space in R
R
Explain a lazy evaluation quirk
R
Lazy Evaluation
How to sort a character vector where elements contain letters and numbers in R?
R
Sorting
R Faq
Simple manual RMarkdown tables that look good in HTML, PDF and DOCX
R
Knitr
Pandoc
R Markdown
How can I remove an element from a list?
R
List
Indexing
R Faq
standard evaluation in dplyr: summarise a variable given as a character string
R
Dplyr
mutate_each / summarise_each in dplyr: how do I select certain columns and give new names to mutated columns?
R
Dataframe
Dplyr
Select subset of columns in data.table R
R
data.table
How to export RMarkdown file to HTML document with two columns?
Html
R
R Markdown
dplyr: how to reference columns by column index rather than column name using mutate?
R
Dplyr
How to use objects from global environment in Rstudio Markdown
R
Rstudio
Knitr
Configuration failed because libcurl was not found
R
Ubuntu
Curl
Arranging rows in custom order using dplyr
R
Dplyr
Data Manipulation
Warning about UTF-8 with roxygen2
R
Utf 8
Package
Roxygen2
What techniques exists in R to visualize a "distance matrix"?
R
Matrix
Visualization
Data Visualization
How to cbind or rbind different lengths vectors without repeating the elements of the shorter vectors?
R
Vector
Evaluate expression given as a string
R
Eval
R Faq
How to save a plot as image on the disk?
R
Plot
Ggplot2
Lattice
R Faq
Measuring function execution time in R
R
Time
Profiling
qqnorm and qqline in ggplot2
R
Ggplot2
Ggproto
Namespaces in R packages
R
Function default arguments and named values
Function
R
Is there a way to paste together the elements of a vector in R without using a loop?
R
Paste
Memory Efficient
Method to extract stat_smooth line fit
R
Ggplot2
Stat
Inserting an image to ggplot2
R
Ggplot2
backtransform `scale()` for plotting
R
Offline install of R package and dependencies
R
Cran
Generating all distinct permutations of a list in R
R
Permutation
R tick data : merging date and time into a single object
R
Statistics
Time Series
Finance
ggplot legends - change labels, order and title
R
Ggplot2
making matplotlib graphs look like R by default?
Python
R
Matplotlib
Plot
Pandas
How can I make consistent-width plots in ggplot (with legends)?
R
Ggplot2
Find the n most common values in a vector
R
Count
Ranking
Convert a numeric month to a month abbreviation
R
Date
Formatting Decimal places in R
R
Formatting
Rounding
R Faq
Error in installation a R package
R
Installation
Package
Concatenate strings by group with dplyr
R
Dplyr
Extract the first 2 Characters in a string
R
Substr
Change facet label text and background colour
R
Ggplot2
Developing Geographic Thematic Maps with R
R
Map
Geolocation
Geospatial
How to subtract years?
R
Date
Date Arithmetic
R Faq
How to detect the right encoding for read.csv?
R
Character Encoding
read.csv
Remove quotes from a character vector in R
R
Quotes
Add a dotted vertical line on certain x-axis values using ggplot
R
Ggplot2
Apply function to each column in a data frame observing each columns existing data type
R
Apply
Sapply
How to properly document S4 methods using roxygen2
R
Generics
Methods
S4
Roxygen2
Seeing if data is normally distributed in R
R
Normal Distribution
"Out of Memory Error (Java)" when using R and XLConnect package
Excel
R
Memory
Transparent equivalent of given color
R
Colors
Alpha Transparency
In R formulas, why do I have to use the I() function on power terms, like y ~ I(x^3)
R
Formula
Polynomials
Tilde
Extract info inside all parenthesis in R
Regex
R
Get Object methods R
R
Venn diagram proportional and color shading with semi-transparency
R
Plot
Venn Diagram
Why is it not advisable to use attach() in R, and what should I use instead?
R
Dataframe
R Faq
Horizontal Barplot in ggplot2
R
Ggplot2
Why is plyr so slow?
R
Dataframe
Plyr
data.table
What does the function invisible() do?
R
import dat file into R
R
Import
calculating number of days between 2 columns of dates in data frame
R
Date
write.csv for large data.table
R
File Io
Csv
Dataframe
data.table
Warning: non-integer #successes in a binomial glm! (survey packages)
R
Statistics
Glm
Force ggplot2 scatter plot to be square shaped
R
Ggplot2
Scatter Plot
How to select R data.table rows based on substring match (a la SQL like)
R
data.table
String Matching
How to deal with hdf5 files in R?
R
Hdf5
How to change the locale of R?
R
Locale
Right way to convert data.frame to a numeric matrix, when df also contains strings?
R
If Statement
Matrix
Numeric
How to make geom_text plot within the canvas's bounds
R
Text
Plot
Ggplot2
Can I get.seed() somehow?
R
Count number of records and generate row number within each group in a data.table
R
data.table
remove all line breaks (enter symbols) from the string using R
R
Regex
Line Breaks
count number of rows in a data frame in R based on group
R
Dataframe
Rowcount
Select unique values with 'select' function in 'dplyr' library
R
Select
Unique
Dplyr
dply: order columns alphabetically in R
R
Dataframe
Dplyr
Difference: "Compile PDF" button in RStudio vs. knit() and knit2pdf()
R
Rstudio
Knitr
Rcpp package doesn't include Rcpp_precious_remove
R
Rcpp
How to add variable key/value pair to list object?
List
R
What's the biggest R-gotcha you've run across?
R
R Faq
Read SPSS file into R
R
Spss
detecting operating system in R (e.g. for adaptive .Rprofile files)
R
Operating System
Transform only one axis to log10 scale with ggplot2
R
Ggplot2
Boxplot
Scaletransform
Concatenate a vector of strings/character
R
String
R Faq
Rescaling the y axis in bar plot causes bars to disappear : R ggplot2
R
Ggplot2
Interpolate product attributes
R
Convert data frame with date column to timeseries
R
Xts
Reset the graphical parameters back to default values without use of dev.off()
R
Rstudio
Moving files between folders
R
File Io
File Copying
Compare if two dataframe objects in R are equal?
R
Dataframe
Compare
Equality
R strsplit with multiple unordered split arguments?
R
Split
What is the knitr equivalent of `R CMD Sweave myfile.rnw`?
R
Sweave
Knitr
R numbers from 1 to 100
R
How to exclude one column from data.table OR convert to data.table to MTS
R
data.table
Zoo
Adding table within the plotting region of a ggplot in r
R
Plot
Ggplot2
Scatter plot with error bars
R
Plot
How to draw a crystal ball with two-color particles inside
R
Matlab
Plot
Computer Vision
Rd file name conflict when extending a S4 method of some other package
R
Generics
Package
S4
Roxygen2
Select every other element from a vector
R
Vector
Seq
Test for numeric elements in a character string
Regex
R
Sort a data.table fast by Ascending/Descending order
R
Performance
data.table
Use D3 and Shiny to implement `identify()` in R
Javascript
R
d3.js
Shiny
Parallelism in Julia: Native Threading Support
Python
Multithreading
R
Parallel Processing
Julia
Rotate a Matrix in R by 90 degrees clockwise
R
Matrix
Transpose
R not finding package even after package installation
R
Installation
Package
Zoo
Importing data into R from google spreadsheet
R
Google Sheets
Difference between read.csv() and read.csv2() in R
R
Csv
read.csv
Animated rgl graphs with knitr
R
Animation
Knitr
Rgl
Rnw
Extract data from a ggplot
R
Ggplot2
Histogram
Using dplyr window functions to calculate percentiles
R
Dplyr
Tidyr