I am having some troubles with leading and trailing white space in a data.frame. For example, I like to take a
I seem to be sharing a lot of code with coauthors these days. Many of them are novice/intermediate R users and
I have a set of data which looks something like this: anim <- c(25499,25500,25501,25502,25503,25504) sex
How can I concatenate (merge, combine) two values? For example I have: tmp = cbind("GAD", "AB") tmp # [,
A friend sent me along this great tutorial on webscraping NYtimes with R. I would really love to try it. Howev
I have an R data frame with 6 columns, and I want to create a new dataframe that only has three of the columns
I want to write trycatch code to deal with error in downloading from the web. url <- c( "http://stat.e
In R, mean() and median() are standard functions which do what you'd expect. mode() tells you the intern
I'm trying to initialize a data.frame without any rows. Basically, I want to specify the data types for e
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()?