Skip to content

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.

794 results for “from:Erik Iverson”

Linear Model "NA" Value Test
Erik Iverson · Sep 21, 2009 · r-help

> if("fit$coef[[2]]" == "NA") {.cw = 1} See ?is.na

quickest way convert 1-col df to vector?
Erik Iverson · Mar 8, 2010 · r-help

sjaffe wrote: > anything shorter than as.vector(as.matrix( df ) )? df[[1]]

How to use a string to refer a function?
Erik Iverson · Feb 11, 2010 · r-help

Hint: "somebody let me know how to >>>>>>>>>>>get<<<<<<<<< the function from the name 'f'?"

R editor in ubuntu!
Erik Iverson · Oct 5, 2010 · r-help

> Another alternative is to use Geany [1]. It would save you the trouble > of learning Emacs, /s/save/deprive /s/trouble/thrill :)

ODD and EVEN numbers
Erik Iverson · Mar 31, 2010 · r-help

See %% under ?Arithmetic tj wrote: > Hi, > > anyone here who knows how to determine if an integer is "odd" or "even" in > R? > Thanks. > > > tj

More elegant way of excluding rows with equal values in any 2 columns?
Erik Iverson · Sep 21, 2009 · r-help

> > You could also replace "!duplicated" in my function with "unique" ... > It turns out you can't, of course :).

Rest of a division
Erik Iverson · Jun 13, 2008 · r-help

?Arithmetic Eric Ferreira wrote: > Dear useRs, > > How do I ask for the rest of a division? > > For instantce, in C is like: > > 4%2 = 0 > > Best regards, >

R statistical program 2.10.0
Erik Iverson · Jun 7, 2010 · r-help

Datta, Ronjon wrote: > Hi, > I just need to know where the R was developed, for a journal article citation. There's a function for that! citation()

/ Operator not meaningful for factors
Erik Iverson · May 3, 2010 · r-help

>> >> The stringAsFactors = False option did not work either. > > False <> FALSE > > in addition Vincent was getting an error since he used stringAsFactors, instead of stringsAsFactors as the argument name.

a question about "latex" in Hmisc
Erik Iverson · May 12, 2010 · r-help

Ista Zahn wrote: > Hi Tao, > I think you just need latex(x, file="") > I think I misunderstood the question, I believe that is what is needed here.

concatenate values in the vector
Erik Iverson · Aug 3, 2010 · r-help

Cristian Montes wrote: > Even shorter is > > x<-c("a","b","c","d") > paste(x, sep="+") > x<-c("a","b","c","d") > paste(x, sep="+") [1] "a" "b" "c" "d"

use logical in cor.test
Erik Iverson · Mar 29, 2010 · r-help

<snip> > cor.test(Both[,1],Both[,2]) What does > Both[,1] show you? > cor.test(Both[,1]>2.5,Both[,2]>2.5) What does > Both[,1] > 2.5 show you?

Problem with TLC/TK on Ubuntu
Erik Iverson · Jul 17, 2008 · r-help

Davide Massidda wrote: > Dear all, > I have installed R on Linux/Ubuntu 8.04. But you don't say how. Are you compiling R yourself or installing the Ubuntu package from CRAN?

Help with ANOVA
Erik Iverson · Aug 18, 2010 · r-help

On 08/18/2010 10:05 PM, Tal Galili wrote: > Hi Stephen, > > #first: > install.packages("reshape") > #Then try: > library(reshape) > #and then > ?melt > ?cast > This is also useful: http://www.jstatsoft.org/v21/i12/paper

Selecting first 7 elements
Erik Iverson · May 23, 2010 · r-help

> "[" is a function, and you want to use it on each element of the list, > so... > > lapply(x, "[", c(1:7)) and the call to c() is of course not necessary, since ":" will generate a vector.

problem with intToChar
Erik Iverson · Jun 1, 2010 · r-help

Changbin Du wrote: > It does not work. > > >> outcome.label<-LETTERS(outcome.predict) > Error: could not find function "LETTERS" That is not when Henrique typed. LETTERS is a vector, and must be indexed as such, i.e., with "[]".

Changing names of a string variable
Erik Iverson · Dec 7, 2010 · r-help

Phil Spector wrote: > Jahan - > Try > > dat$target = toupper(dat$target) Note that in this case, the above *will* coerce dat$target to a character vector, which may or may not be what is intended.

Row and Col length of a matrix?
Erik Iverson · Jun 17, 2008 · r-help

See ?dim, ?nrow, ?ncol. MeMooMeM wrote: > Hi, > > Is there a direct command to get the row and col length of a matrix? > > My ugly solution is: length(mtx[,1]) and length(bcf[1,]) > > Thanks! >

Why do data frame column types vary across apply, lapply?
Erik Iverson · Apr 30, 2010 · r-help

> > See ?apply. The apply function works on *matrices*. Actually arrays, and matrices are arrays with 2 dimensions. > characters. This is all explained in the first paragraph of ?apply. > Also see ?as.matrix

Pros and Cons of R
Erik Iverson · May 22, 2008 · r-help

Wensui Liu wrote: > agree, > i think R is more like a standard program language than SAS. however, > SAS programmer might not feel intuitive to pick up R. That says more about SAS programmers than it does about R.

Can't find what you're looking for? Try searching with Google .