R is a free, open-source programming language and software environment for statistical computing, bioinformatics, visualization and general computing. Provide minimal, reproducible, representative example(s) with your questions. Use dput() for data and specify all non-base packages with library calls. Do not embed pictures for data or code, use indented code blocks.
I often find myself writing R scripts that generate a lot of output. I find it cleaner to put this output into
In R, mean() and median() are standard functions which do what you'd expect. mode() tells you the intern
Being a newbie in R, I'm not very sure how to choose the best number of clusters to do a k-means analysis
I am in a process of figuring out how to use my university cluster. It has 2 versions of R installed. System w
What tricks do people use to manage the available memory of an interactive R session? I use the functions bel
I'm trying to initialize a data.frame without any rows. Basically, I want to specify the data types for e
I have a file, called a.r, it has a chmod of 755, sayHello <- function(){ print('hello') } s
I have a nested list of data. Its length is 132 and each item is a list of length 20. Is there a quick way to
I'd like to unload a package without having to restart R (mostly because restarting R as I try out differ
What is the difference between require() and library()?
I tried to install a package, using install.packages("foobarbaz") but received the warning Warning message
I want to look at the source code for a function to see how it works. I know I can print a function by typing
When I convert a factor to a numeric or integer, I get the underlying level codes, not the values as numbers.
Apparently, folk have figured out how to make xkcd style graphs in Mathematica and in LaTeX. Can we do it in R