Tag: r

2482 How to make a great R reproducible example 2011-05-11T11:12:02.357

1163 How to sort a dataframe by multiple column(s)? 2009-08-18T21:33:18.473

988 How to join (merge) data frames (inner, outer, left, right)? 2009-08-19T13:18:11.250

942 Grouping functions (tapply, by, aggregate) and the *apply family 2010-08-17T18:31:12.913

711 Drop data frame columns by name 2011-01-05T14:34:29.173

687 Remove rows with all or some NAs (missing values) in data.frame 2011-02-01T11:52:31.150

637 How can we make xkcd style graphs? 2012-10-01T14:22:51.340

605 data.table vs dplyr: can one do something well the other can't or does poorly? 2014-01-29T15:21:45.347

577 What are the differences between "=" and "<-" in R? 2009-11-16T12:14:51.313

560 How do I replace NA values with zeros in an R dataframe? 2011-11-17T03:45:44.920

506 Rotating and spacing axis labels in ggplot2 2009-08-25T21:05:24.947

490 How to convert a factor to integer\numeric without loss of information? 2010-08-05T18:53:32.587

473 Plot two graphs in same plot in R 2010-04-01T23:28:14.070

464 What is the difference between require() and library()? 2011-04-08T13:09:14.127

456 Tricks to manage the available memory in an R session 2009-08-31T15:26:13.070

455 Quickly reading very large tables as dataframes 2009-11-13T07:53:33.977

452 Drop factor levels in a subsetted data frame 2009-07-28T18:21:47.503

438 How can I view the source code for a function? 2013-10-07T13:58:00.650

434 The difference between bracket [] and double bracket [[]] for accessing the elements of a list or dataframe 2009-07-23T03:33:18.410

420 How should I deal with "package 'xxx' is not available (for R version x.y.z)" warning? 2014-09-08T10:11:07.390

414 Test if a vector contains a given element 2009-07-23T02:20:53.340

414 How to unload a package without restarting R? 2011-08-08T09:12:44.640

408 R - list to data frame 2010-11-19T16:40:52.897

395 Cluster analysis in R: determine the optimal number of clusters 2013-03-13T02:39:40.627

381 Create an empty data.frame 2012-05-21T16:35:18.950

375 Run R script from command line 2013-08-19T04:23:21.660

371 Why is `[` better than `subset`? 2012-03-25T12:27:32.367

334 Counting the number of elements with the values of x in a vector 2009-12-17T17:21:36.063

323 Is there a built-in function for finding the mode? 2010-03-30T17:55:07.803

321 How do I install an R package from source? 2009-09-24T20:51:30.880

320 How can two strings be concatenated? 2011-08-26T07:25:35.067

312 How to trim leading and trailing whitespace? 2010-02-14T12:44:02.787

308 How to find out which package version is loaded in R? 2012-06-19T14:30:29.473

307 Check existence of directory and create if doesn't exist 2010-11-18T15:53:45.480

307 Changing column names of a data frame 2011-05-21T11:31:23.873

297 How to properly document S4 class slots using Roxygen2? 2011-09-09T22:52:16.687

297 Extracting specific columns from a data frame 2012-04-10T02:24:04.437

294 How to find the length of a string in R? 2012-06-21T09:01:40.893

291 How to Correctly Use Lists in R? 2010-01-12T17:08:50.060

289 How to set limits for axes in ggplot2 R plots? 2010-08-31T07:03:24.510

286 Convert data.frame columns from factors to characters 2010-05-17T16:52:02.603

276 Write lines of text to a file in R 2010-03-18T13:51:59.077

276 How to add leading zeros? 2011-04-28T01:10:47.450

270 Tools for making latex tables in R 2011-03-28T21:31:11.697

266 Function to clear the console in R and RStudio 2013-01-10T14:37:49.790

264 How can I read command line parameters from an R script? 2010-01-27T23:40:22.733

263 How to save a plot as image on the disk? 2011-08-22T07:06:34.177

260 How to sum a variable by group? 2009-11-02T09:01:28.513

257 Side-by-side plots with ggplot2 2009-08-08T18:16:43.670

256 Expert R users, what's in your .Rprofile? 2009-07-27T18:17:42.067

254 Sample random rows in dataframe 2011-11-25T19:08:40.823

250 Elegant way to check for missing packages and install them? 2010-11-03T18:08:54.023

247 How to rename a single column in a data.frame? 2011-09-23T16:08:34.613

245 Convert a list of data frames into one data frame 2010-05-17T17:38:24.907

242 Plotting two variables as lines using ggplot2 on the same graph 2010-09-23T09:53:40.373

239 How to drop columns by name in a data frame 2011-03-08T14:56:26.070

239 How to write trycatch in R 2012-08-30T09:27:17.027

237 Order Bars in ggplot2 bar graph 2011-03-06T04:20:48.310

237 Is there an R function for finding the index of an element in a vector? 2011-04-07T07:55:57.677

232 Evaluate expression given as a string 2009-11-16T17:39:31.813

230 Update R using RStudio 2012-12-01T05:29:34.787

229 Why are these numbers not equal? 2012-02-29T23:46:46.600

228 Measuring function execution time in R 2011-06-07T07:55:52.563

227 How to access the last value in a vector? 2008-09-16T21:40:29.927

221 How to disable scientific notation? 2011-03-18T12:40:54.397

220 Concatenate a vector of strings/character 2010-01-20T01:00:37.587

219 Append an object to a list in R in amortized constant time, O(1)? 2010-03-13T00:14:09.813

217 Remove an entire column from a data.frame in R 2011-06-08T23:02:38.277

216 Extracting the last n characters from a string in R 2011-11-01T08:11:19.490

214 Replace specific characters within strings 2012-08-13T14:26:09.313

212 How to convert a data frame column to numeric type? 2010-02-18T12:17:58.107

212 How to check if object (variable) is defined in R? 2012-02-20T21:46:47.840

211 How can I remove an element from a list? 2009-03-16T20:59:36.223

211 How does one reorder columns in a data frame? 2011-04-11T11:55:13.707

205 Formatting Decimal places in R 2010-08-09T19:57:41.317

204 Rscript: Determine path of the executing script 2009-11-29T13:58:32.557

199 Boolean operators && and || 2011-07-02T18:48:35.357

198 Test if characters are in a string 2012-04-12T17:24:08.217

195 How to reshape data from long to wide format? 2011-05-04T22:27:50.230

192 Simultaneously merge multiple data.frames in a list 2011-11-11T08:16:54.697

189 How to assign from a function which returns more than one value? 2009-12-01T14:27:23.917

184 How to plot two histograms together in R? 2010-08-22T13:54:27.283

183 Adding Regression Line Equation and R2 on graph 2011-09-26T00:52:09.783

179 How to change legend title in ggplot 2013-01-31T09:31:10.450

178 Installing R on Mac - Warning messages: Setting LC_CTYPE failed, using "C" 2012-03-13T17:35:38.297

177 Workflow for statistical analysis and report writing 2009-09-15T22:14:26.740

176 Split a vector into chunks in R 2010-07-23T13:01:03.377

176 Find the day of a week 2012-02-09T17:54:53.597

175 Speed up the loop operation in R 2010-05-25T21:55:36.810

175 ggplot: How to change facet labels? 2010-08-13T00:05:40.117

175 Turning off some legends in a ggplot 2013-01-30T12:49:46.813

174 Split data frame string column into multiple columns 2010-12-03T22:29:15.370

173 Most underused data visualization 2010-01-16T06:03:53.103

172 R data formats: RData, Rda, Rds etc 2014-01-26T22:29:48.787

171 Force R not to use exponential notation (e.g. e+10)? 2012-02-22T15:24:33.947

171 Explicitly calling return in a function or not 2012-07-31T11:12:55.697

171 YAML current date in rmarkdown 2014-05-03T20:13:29.823

168 Plot with 2 y axes, one y axis on the left, and another y axis on the right 2010-06-23T05:52:19.900

167 Combine two data frames by rows (rbind) when they have different sets of columns 2010-08-04T03:25:45.477