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.
> if("fit$coef[[2]]" == "NA") {.cw = 1} See ?is.na
sjaffe wrote: > anything shorter than as.vector(as.matrix( df ) )? df[[1]]
Hint: "somebody let me know how to >>>>>>>>>>>get<<<<<<<<< the function from the name 'f'?"
> Another alternative is to use Geany [1]. It would save you the trouble > of learning Emacs, /s/save/deprive /s/trouble/thrill :)
See %% under ?Arithmetic tj wrote: > Hi, > > anyone here who knows how to determine if an integer is "odd" or "even" in > R? > Thanks. > > > tj
> > You could also replace "!duplicated" in my function with "unique" ... > It turns out you can't, of course :).
?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, >
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()
>> >> 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.
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.
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"
<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?
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?
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
> "[" 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.
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 "[]".
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.
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! >
> > 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
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 .