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.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20140527/3ccfdf67/attachment.pl>
tmp <- function(s) { return(str(s)) } key <- "xxxx-yyyy" tmp(key) # chr "xxxx-yyyy" ... works for me. Reprex? Cheers, Boris
You are the domain expert, but it would seem to me that "-NEGRO" is a part of the ID because it uniquely specifies the product.
> sum(x, na.rm=!all(is.na(x))) That's the kind of idiom that brings the poor chap who has to maintain it to tears. ;-)
Ummm ... substr(x, 1, n) ? :-) > On 2019-05-06, at 18:03, Laurent Gatto <laurent.gatto at uclouvain.be> wrote: > > paste0(paste(strsplit(x, "")[[1]][1:n], collapse = "")
Playing with Roxygen features, but can't get @eval to work. E.g. ... #' @eval sprintf("%s", Sys.time()) ... does not do what I thought it would (i.e. substitute the tag and the expression with the string). Instead I see...
Q[j-2] gives you Q[0] in your first inner loop iteration. R arrays start at one. B. > On 2018-06-13, at 07:21, Maija Sirkj?rvi <maija.sirkjarvi at gmail.com> wrote: > > Amat[J-1+j-2...
Could someone kindly enlighten me whether there are currently advantages to use R Studio vs. the normal R GUI? On the Mac I can't seem to find anything compelling, on Windows (which I don't use myself) I noticed...
Or ... if you mean "simpler" as in "less to type", you can define your own binary operator by enclosing it in "%" signs, and the assign any of the previously proposed solutions, e.g. y = matrix(cbind(c(0, 0.5...
try: dput(mtcars) B. On Nov 28, 2014, at 8:24 AM, BRC <brc.khi at gmail.com> wrote: > I need r-code of data frame of "mtacrs". please advise how I can find it. > > regards > faisal > > [[alternative HTML version...
The help text for row+colnames {base} states: "For a data frame, rownames and colnames eventually call row.names and names respectively, but the latter are preferred." Why are they "preferred"? Why is it names(), not col.names()? I have...
Here you go: https://www.google.ca/search?q=r+partial+least+squares https://www.google.ca/search?q=r+ridge+regression > On Apr 18, 2017, at 3:45 PM, SAIRA SALEEM <sairasaleem550 at gmail.com> wrote: > > i required r...
olddata$first <- as.numeric(! duplicated(olddata$ID)) :-) > On Nov 30, 2024, at 22:27, Sorkin, John <jsorkin at som.umaryland.edu> wrote: > > ID <- c(rep(1,10),rep(2,6),rep(3,2)) > date <- c(rep(1,2),rep(2...
Cross Validated at http://stats.stackexchange.com/ B. On Apr 19, 2015, at 10:37 AM, CHIRIBOGA Xavier <xavier.chiriboga at unine.ch> wrote: > Dear members, > > > > Since this is not a Forum for Stats questions...does anyone can recomend me...
Wrong. B. On May 5, 2015, at 2:54 PM, lejeczek <peljasz at yahoo.co.uk> wrote: > hi eveybody > > I'm trying something simple (Biocunductor packages), so simple I believe it's example from docs but I get segfault. > I...
I've recently been getting freezes while editing a script file and noticed on this list that the current R version is 3.1.2 (I was on 3.1.1). "Check for updates" had reported R 3.1.1...
I was just surprised by very un-intuitive behaviour of paste(), which appears to collapse a one-column data frame or one-element list into a deparsed expression, rather than producing the expected string. Can someone kindly explain what's...
On Oct 4, 2015, at 7:39 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > You'll get what you want if you use as.matrix(datentabelle)[,1] > instead of datentabelle[,1]. This happens to work in this particular...
On Nov 26, 2014, at 1:27 AM, Frederic Ntirenganya <ntfredo at gmail.com> wrote: > The error seems to be starnge to me because i access the indices of NAs. No you don't. You access the contents of the...
You need a stemming algorithm. See here: https://cran.r-project.org/web/views/NaturalLanguageProcessing.html Myself, I've had good experience with Rstem. B. > On Jul 31, 2017, at 4:47 PM, Riaan Van Der Walt <Riaan.VanDerWalt at...
Can't find what you're looking for? Try searching with Google .