FAQ

Search Discussions

868 discussions - 2,733 posts

  • Hello! I have the problem that in my function the passed variable is not used, but the variable name of the dataframe itself?- difficult to explain, but an easy example: TestFunc<-function(df, group) ...
    Karl KnoblickKarl Knoblick
    Nov 10, 2008 at 3:18 pm
    Nov 12, 2008 at 8:30 pm
  • I know the standard answer to this kind of question is "get legal advice from a lawyer", but I would like to hear the (hopefully informed) opinion of other people. I would say that, according to the ...
    Carlos UngilCarlos Ungil
    Nov 14, 2008 at 9:42 am
    Nov 15, 2008 at 8:05 am
  • Dear R-help, I am looking for ideas and presentations of new and advanced data visualization methods. As an example of what I am searching for, the 'Many Eyes' pages at ...
    Hans W. BorchersHans W. Borchers
    Nov 28, 2008 at 3:55 pm
    Dec 2, 2008 at 12:49 pm
  • Hi there, I rejoiced when I realized that you can use Perl regex from within R. However, as the FAQ states "Some functions, particularly those involving regular expression matching, themselves use ...
    John WiedenhoeftJohn Wiedenhoeft
    Nov 8, 2008 at 12:20 pm
    Nov 19, 2008 at 12:00 pm
  • Dear R-help, I first thought that the empty set (for a vector) would be NULL. x <- c() x However, the documentation seems to make clear that there _many_ empty sets depending on the vector's mode, ...
    G. Jay KernsG. Jay Kerns
    Nov 24, 2008 at 5:41 pm
    Nov 25, 2008 at 3:30 am
  • Dear R-Help, I need to convert a set of '.pdf' files into an equivalent set of '.txt' files. This is so that i can do some text mining on the content. In the latest R-News letter ...
    Tony BreyalTony Breyal
    Nov 13, 2008 at 3:10 pm
    Nov 17, 2008 at 10:17 pm
  • Sampling with and without replacement I seem unable to use "replace = F" when I want to sample without replacement. I would think that it comes down to "F is not a legitimate abbreviation for FALSE." ...
    David C. HowellDavid C. Howell
    Nov 17, 2008 at 12:56 am
    Nov 17, 2008 at 11:25 pm
  • Error: could not find function "read.xport" Not sure what I�m doing wrong. I�m running SAS 9.1.3 on an UNIX box. I ftp�d the file over to my C:\Program Files\R\R-2.8.0\ directory on my local machine ...
    B gB g
    Nov 10, 2008 at 6:28 pm
    Nov 13, 2008 at 11:50 pm
  • the following is a trivialized version of some functional code i tried to use in r: (funcs = lapply(1:5, function(i) function() i)) # a list of no-parameter functions, each with its own closure ...
    Wacek KusnierczykWacek Kusnierczyk
    Nov 17, 2008 at 9:28 pm
    Nov 18, 2008 at 10:22 am
  • greetings, i'm trying plot() from Owen's _The R Guide_ and having trouble with being able to view the result. the Graphics Device 2 draws an image i can only see the top part of and when i try to ...
    John poloJohn polo
    Nov 14, 2008 at 10:57 pm
    Nov 15, 2008 at 9:05 pm
  • hi there I have a vector with a set of data.I just wanna seperate them based on the first p and q values metioned within the data. [1] chr10p15.3 /// chr3q29 /// chr4q35 /// chr9q34.3 [2] chr1q22-q24 ...
    RajasekaramyaRajasekaramya
    Nov 7, 2008 at 6:09 pm
    Nov 8, 2008 at 10:58 pm
  • Dear list, hi ! I am a R beginner and I have a function to optimize . alpha = argmin{ f(x,alpha) } I want alpha to be in [0,1]. Is there any function that can work? I use nlm() but i can't fix the ...
    Jiang PengJiang Peng
    Nov 24, 2008 at 11:28 am
    Dec 2, 2008 at 9:20 pm
  • Hi all I was reading a paper recently in which I was surprised to see an R package of mine obviously used, without acknowledgement. Indeed, R itself was used without any acknowledgment. So I contact ...
    Peter DunnPeter Dunn
    Nov 11, 2008 at 10:26 pm
    Nov 14, 2008 at 1:49 pm
  • Dear list, Is there a way to do something like the following pseudo-code - without for loop? complexFn <- function(a,b){ ... return(c) } x[i] = complexFn(x[i-1], x[i-2]) I have found "filter" but ...
    KinokoKinoko
    Nov 12, 2008 at 2:30 am
    Nov 12, 2008 at 5:07 pm
  • Dear all, Is there a way to retrieve standard errors from nls models? The help page tells me that arguments such as se.fit are ignored... Many thanks and best wishes Christoph -- Dr. rer.nat ...
    Christoph ScherberChristoph Scherber
    Nov 3, 2008 at 1:39 pm
    Nov 12, 2008 at 2:18 pm
  • has anyone had problems with the upgrade to R 2.8 and chron date classes. I have a large zoo object that has a chron index, and it is taking 5x or so longer to do the same calculation as with 2.7 if ...
    Stephen sefickStephen sefick
    Nov 29, 2008 at 3:05 pm
    Dec 1, 2008 at 10:50 pm
  • Hi all If I have a string, say "ABCDA", and I want to convert this to the sum of the letter values, e.g. A - 1 B - 2 etc, so "ABCDA" = 1+2+3+4+1 = 11 Is there an elegant way to do this? Trying ...
    Rory WINSTONRory WINSTON
    Nov 24, 2008 at 2:57 pm
    Nov 24, 2008 at 7:06 pm
  • I have a number of (directed) graphs based on social groups, where the members have expresed likes and dislikes in respect to the other members. tkgraph makes it simple to draw the graphs in a very ...
    Tom Backer JohnsenTom Backer Johnsen
    Nov 14, 2008 at 11:40 am
    Nov 17, 2008 at 2:58 pm
  • I've read the back and forth this morning, and I have to side with Vince. 1. Functions that re-interpret their arguments are very dangerous. The original question involved a well formed call to a ...
    Terry TherneauTerry Therneau
    Nov 11, 2008 at 3:28 pm
    Nov 12, 2008 at 4:04 am
  • Dear All! Reading character strings containing an "umlaut" from a csv-file I find a (to me) surprising behaviour in R 2.8.0, that I did not notice in R 2.7.2. A comparison by "==" results in FALSE, ...
    Heinz TuechlerHeinz Tuechler
    Nov 6, 2008 at 8:39 pm
    Nov 9, 2008 at 9:53 am
  • [1] 2 As the above gave which placement in the g vector corresponded to 5 (the second place), I need this command to give me which column in a matrix matches to a vector. This is just a toy example ...
    Salas, Andria KaySalas, Andria Kay
    Nov 24, 2008 at 4:03 pm
    Nov 25, 2008 at 7:35 pm
  • Hi all, I hope it's not too trivial for the list - I'm trying to concatenate two factor arrays, and obtain the following: [1] a a b Levels: a b [1] b b a Levels: a b [1] 1 1 2 2 2 1 Instead of ...
    Udi cohenUdi cohen
    Nov 21, 2008 at 5:15 pm
    Nov 23, 2008 at 4:53 pm
  • Hi R users, Is there a way to simplify this instruction: ifelse(B=="0","A", ifelse(B=="1","A", ifelse(B=="2","A", ifelse(B=="3","A", ifelse(B=="4","A", ifelse(B=="5","A", ifelse(B=="6","A", ...
    CE.KACE.KA
    Nov 19, 2008 at 9:42 pm
    Nov 20, 2008 at 9:08 am
  • Hello, I got a hint to use the gmane-interface... ...nice tool. :) But the gmane-server which is mentioned ont he healp-pages of http://www.r-project.org/ ...
    Oliver BandelOliver Bandel
    Nov 16, 2008 at 4:30 pm
    Nov 19, 2008 at 10:39 pm
  • Given a data frame of a categorical variable and two continuous variables, I would like to display one continuous variable against the other for each value of the categorical variable, all ...
    Stavros MacrakisStavros Macrakis
    Nov 14, 2008 at 9:23 pm
    Nov 17, 2008 at 8:03 pm
  • Dear list Can anyone suggest a simple way to abort execution like stop(...) does, but without issuing an "Error: ..." message? I don't want to set 'options( show.error.messages=TRUE)' because I want ...
    Mark BravingtonMark Bravington
    Nov 10, 2008 at 10:42 pm
    Nov 11, 2008 at 7:50 am
  • Hello R-Users, I am trying to label points on an xYplot. I can label the points, but then I lose the error bars. I suspect that I should be using panel.xYplot rather than panel.xyplot, but that ...
    John PoulsenJohn Poulsen
    Nov 10, 2008 at 4:26 pm
    Nov 11, 2008 at 7:20 am
  • Dear R Users, I am trying to get plot.zoo to place monthy tickmarks/labels for a time series which spans daily data going back a bit over a year. Right now, I am getting only one tick mark on the ...
    Tolga I UzunerTolga I Uzuner
    Nov 4, 2008 at 1:10 pm
    Nov 5, 2008 at 4:21 pm
  • R version 2.8.0 (2008-10-20) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United ...
    Stephen sefickStephen sefick
    Nov 4, 2008 at 5:01 pm
    Nov 4, 2008 at 6:48 pm
  • Hello; I am a R newbie and would like to know correct and efficient method for doing string replacement. I have a large data set, where I want to replace character "M", "b", and "K" (currency in ...
    Krishna Dagli/Krushna DagliKrishna Dagli/Krushna Dagli
    Nov 2, 2008 at 8:43 am
    Mar 19, 2011 at 7:39 pm
  • Hello, I'm working with a very large dataset in R on a computer running 64-bit Windows Server 2008 Standard with 32GB of RAM. According to the R for Windows FAQ, the maximum value allowed for ...
    Michael StyerMichael Styer
    Nov 24, 2008 at 9:09 pm
    Dec 2, 2008 at 8:01 pm
  • Hi all I have the following regular expression problem: I want to find complete elements of a vector that end in a repeated character but where the repetition doesn't make up the whole word. That is, ...
    Stefan Th. GriesStefan Th. Gries
    Nov 30, 2008 at 7:33 pm
    Dec 1, 2008 at 11:31 am
  • *Hi all, I know this is probably basic, but I have proven to be a slow learner in any programming language. Anyhow, how can I calculate the SD for each person in my table? I have two patients in this ...
    Pufftissue pufftissuePufftissue pufftissue
    Nov 20, 2008 at 4:59 am
    Nov 20, 2008 at 4:20 pm
  • Hello, * I read in a server weblog with read.table. - OK. * I look for the downloaded-size-values (filesize of the download) - OK * I found "-" and wanted to substitute them with "0" and used ...
    Oliver BandelOliver Bandel
    Nov 16, 2008 at 1:00 pm
    Nov 16, 2008 at 4:37 pm
  • ##This is a function that I am trying to write to calculate sunrise and sunset and works "mostly", but returns nonsensical values. What am I #missing? Thanks in advance. ###remember to include ...
    Stephen sefickStephen sefick
    Nov 9, 2008 at 12:40 am
    Nov 10, 2008 at 11:04 pm
  • Hi, I am writing this in a wrong way, can someone please correct me? X Y [1,] NA NA [2,] NA NA [3,] NA NA Error in A$X : $ operator is invalid for atomic vectors Thanks, cruz
    CruzCruz
    Nov 6, 2008 at 4:22 pm
    Nov 6, 2008 at 7:43 pm
  • Hi there, I hope to use a string as an input in my function, however, I don't want to input the quotation mark. Is it possible? Thanks in advance. Regards, Jinsong
    Jinsong ZhaoJinsong Zhao
    Nov 29, 2008 at 2:36 pm
    Nov 27, 2012 at 12:09 pm
  • Dear all, let consider the following function: Fun1 <- function() { library(lattice) plot1 <- 1:10~1:10 pl1 <- xyplot(plot1) return(pl1$call$x) } In R 2.5.0 (or older version) we have plot1 but ...
    Vincenzo 2 Di-IorioVincenzo 2 Di-Iorio
    Nov 11, 2008 at 5:15 pm
    Aug 14, 2009 at 9:12 pm
  • Goal: Suppose you have a vector that is a discrete variable with values ranging from 1 to 3, and length of 10. We'll use this as the example: y <- c(1,2,3,1,2,3,1,2,3,1) ...and suppose you want your ...
    ZerfetzenZerfetzen
    Nov 22, 2008 at 6:00 pm
    Nov 24, 2008 at 2:00 am
  • I have written following codes, with intention to get a list with values 1,2,9,16 : fn <- function(i) return(i^2) lapply(1:4, fn, i) However I got following error : Error in FUN(1:4[[1L]], ...) ...
    MeghMegh
    Nov 20, 2008 at 4:31 pm
    Nov 22, 2008 at 10:16 am
  • Dear All, I have a correlation matrix of size 100 x 100 and would like to extract the diagonal matrix from it. I have used the for loop to store tha correlation values of the diagonal matrix. Is ...
    A EzhilA Ezhil
    Nov 21, 2008 at 12:28 pm
    Nov 21, 2008 at 5:05 pm
  • Dear All, I just read an announcement saying that Mathematica is launching a version working with Nvidia GPUs. It is claimed that it'd make it ~10-100x faster! ...
    Emmanuel LevyEmmanuel Levy
    Nov 18, 2008 at 11:03 pm
    Nov 21, 2008 at 12:51 am
  • Hi Everyone, I am pretty new to R and so far have mostly been using R interactively through the Windows console. I'm starting to write some scripts, and have been executing them using the source() ...
    Brigid MooneyBrigid Mooney
    Nov 17, 2008 at 1:57 pm
    Nov 18, 2008 at 2:49 pm
  • Is the matrix exponential available in some package? The cannonical reference is "Nineteen dubious ways to take the exponential of a matrix". (Love that title) Terry T.
    Terry TherneauTerry Therneau
    Nov 11, 2008 at 10:20 pm
    Nov 14, 2008 at 6:27 pm
  • I am running GLM models using the gamma family. For example: model <-glm(y ~ x, family=Gamma(link="identity")) I am getting different results for the normal Q-Q plot and the Scale-Location plot if I ...
    Effie GreathouseEffie Greathouse
    Nov 12, 2008 at 5:23 pm
    Nov 13, 2008 at 1:43 pm
  • Hi. i have a data, and there is 3 columns, Month, Year and Total. and there is over 1000 rows for them because there is 87 years data for every month, so there is month from Jan-Dec, and year from ...
    Swanton0822Swanton0822
    Nov 7, 2008 at 11:03 pm
    Nov 9, 2008 at 10:18 pm
  • I'm trying to plot a time series (quarterly observations, seasonal effect, TV),regression line and predicted point on the same plot. I'm using following commands: where ...
    UepUep
    Nov 8, 2008 at 7:18 pm
    Nov 9, 2008 at 11:23 am
  • Do anyone know anything about the use of R for agent-based social simulation? It should be possible, and would be convenient for the simple reason that there are several nice packages containing ...
    Tom Backer JohnsenTom Backer Johnsen
    Nov 7, 2008 at 12:06 pm
    Nov 8, 2008 at 11:10 am
  • I need perform PCA analyst with a matrix with more variables than units. The princomp command don't match with this matrix. Anybody knows a good command to do it? -- Noela
    Noela SánchezNoela Sánchez
    Nov 6, 2008 at 6:42 pm
    Nov 6, 2008 at 11:01 pm
  • I have two vectors, a and b. b is a text file. I want to find in b those elements of a which occur at the beginning of the line in b. I have the following code, but it only returns a value for the ...
    PpaarrkkPpaarrkk
    Nov 29, 2008 at 12:00 pm
    Dec 2, 2008 at 9:39 am
Group Navigation
period‹ prev | Nov 2008 | next ›
Group Overview
groupr-help @
categoriesr
discussions868
posts2,733
users761
websiter-project.org
irc#r

761 users for November 2008

Gabor Grothendieck: 114 posts Prof Brian Ripley: 75 posts David Winsemius: 66 posts Wacek Kusnierczyk: 54 posts Hadley wickham: 53 posts Jim holtman: 51 posts Peter Dalgaard: 51 posts Duncan Murdoch: 50 posts Stephen sefick: 46 posts Greg Snow: 36 posts Jorge Ivan Velez: 35 posts Dieter Menne: 33 posts Erik Iverson: 30 posts Stavros Macrakis: 28 posts Uwe Ligges: 26 posts Ben Bolker: 24 posts Rolf Turner: 24 posts Charles C. Berry: 22 posts Oliver Bandel: 22 posts Berwin A Turlach: 20 posts
show more
Archives