Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
Dear Help, Suppose I have a character vector. x <- c("Bob", "loves", "Sally") I want to combine it into a single string: "Bob loves Sally" . paste(x) yields: paste(x) [1] "Bob" "loves" "Sally" The following function combines the character...
A student of mine wants to use R to do some nonmetric multidimensional scaling. According to the R FAQ, there's a package called pcurve that computes multidimensional scaling solutions, but I was not able to locate it the contrib...
Many people pointed out that the 'collapse' argument yields the solution to my query: > x <- c("Bob", "loves", "Sally") > paste(x, collapse=" ") [1] "Bob loves Sally" I had looked at the documentation for 'paste' within R and also in several...
On Sun, 22 Dec 2002 ripley at stats.ox.ac.uk wrote: > Why guess? It's in the R Language definition and in all good books on > S/R. > > `String constants are delimited by a pair of single (') or double...
Thanks for many prompt and useful comments. The question was: if x is the vector > x <- c( 2, NA, 1, 5, 3) > x [1] 2 NA 1 5 3 Then x == 5 yields > x == 5 [1] FALSE NA FALSE TRUE...
Dear R Help, Thanks to Spencer Graves and Yusuke Miyamoto for suggestions. The original question was how to extract the name of the data set and variable names from an lm or aov output object. The following function based on...
Dear R-users, I am learning to use R 1.3.1 on a Pentium running Windows '98. I'm puzzled that several statistical procedures, t.test and chisq.test, do not appear to be available on R version 1...
I sent a query to R-Help about the availability of nonmetric multidimensional scaling (MDS) algorithms in R. I would like to thank Tony Rossini, Jonathan Baron, Sundar Dorai-Raj, and Brian Ripley for helpful replies. The gist of the...
I have run into a general problem with subsetting of which the following is a simple example. Suppose that x <- c(5, NA, 7, 5, NA, 3) y <- c(1, 2, 3, 4, 5, 6) I want to extract the...
Dear R-Help, I'm using R version 1.6.0 on a Windows computer. I am trying to create a function that, among other things, constructs strings that refer to Windows files, e.g., I might want to construct...
Dear R Help, I am trying to create a boolean vector that is TRUE whenever a particular value occurs in a numeric vector, and FALSE otherwise. For example, suppose that > y <- c(5, 2, 4, 3, 1) > y [1] 5...
Dear R-News, I sent a query to r-help asking why t.test did not exist on my installation of R. Thanks to Douglas Bates, Michael Camann, Kjetil Halvorsen, Ko-Kang Kevin Wang, Peter Dalgaard, and Jonathan Baron who...
UNIVERSITY OF WASHINGTON FACULTY POSITION IN QUANTITATIVE PSYCHOLOGY The Department of Psychology seeks to fill a position in Quantitative Psychology at the tenure-track assistant professor level. In exceptional circumstances, appointment at the Associate Professor or Professor level may be...
Greetings, I have a question pertaining to the concept of "environment variables" that is mentioned in the R documentation for "Startup" and also in the discussion of the Windows configuration of R in the recent book "An Introduction to R...
Thank you, Professor Ripley, Your comment does indeed lead to the solution to my problem as stated. As you point out, this code > x <- paste("c:", "work", "part1.txt", sep="\\") > x [1] "c:\\work\\part1.txt" > cat(x, "\n") c...
Dear R Users, I want to write a function that applies to the dataframe and variables that were used in a previous call to lm or aov. In order to do this, I need to write a function that applies...
Dear R-Help, I have some questions relating to math notation in text functions. I have studied the help for plotmath but have not figured out how to solve two types of problems. PROBLEM 1: How can I create expressions...
Dear R-Help, I am using the studres function from the MASS package to compute studentized deleted residuals in a oneway anova. I'm having trouble interpreting the results in situations where a factor level has only one observation. Sometimes...
Can't find what you're looking for? Try searching with Google .