Grokbase Groups R r-help June 2013
FAQ

Search Discussions

504 discussions - 1,641 posts

  • According to http://cran.r-project.org/doc/contrib/Fox-Companion/appendix-scope.pdf and other examples online, I am to believe that R resolves variables using lexical scoping by following the frames ...
    David KulpDavid Kulp
    Jun 24, 2013 at 8:27 pm
    Jul 1, 2013 at 8:27 am
  • This?originally was?an SPlus script that I modifeid about a year-and-a-half ago.? It worked perfectly then.? Now I can't get any output despite not receiving an error message.? I'm providing the ...
    Scott RaynaudScott Raynaud
    Jun 5, 2013 at 1:20 pm
    Jun 8, 2013 at 12:47 am
  • Hello, When i type in the below syntax: Data (name of the data set) I get an error message specifying that the "data" package is not found. Please note that i installed all packages having the word ...
    Yasmine RefaiYasmine Refai
    Jun 27, 2013 at 8:02 pm
    Jul 7, 2013 at 6:59 am
  • Hello R community, I am trying to combine two CSV files that look like this: File A Row_ID_CR, Data1, Data2, Data3 1, aa, bb, cc 2, dd, ee, ff File B Row_ID_N, Src_Row_ID, DataN1 1a, 1, This is ...
    Shreya RawalShreya Rawal
    Jun 10, 2013 at 8:38 pm
    Jun 17, 2013 at 5:11 pm
  • I R-helpers #I have a data panel of thousands of firms, by year and industry and #one dummy variable that separates the firms in two categories: 1 if the firm have an auditor; 0 if not #and another ...
    Cecilia CarmoCecilia Carmo
    Jun 7, 2013 at 9:37 am
    Jun 17, 2013 at 1:33 am
  • I want to generate specific gamma distribution functions, given fixed parameters. This is I have k, and theta, say k <- 32.2549 # shape theta <- 26.32809 # scale # I have an auxiliary function that ...
    Julio SergioJulio Sergio
    Jun 5, 2013 at 2:53 am
    Jun 6, 2013 at 3:48 pm
  • Hi, May be this helps: I duplicated your dataset (only one was attached) and changed the dates. lstf1<- list.files(pattern=".txt") lstf1 #[1] "dt3031093-1.txt" "dt3031093-2.txt" "dt3031093-3.txt" ...
    ArunArun
    Jun 5, 2013 at 12:14 am
    Jun 6, 2013 at 4:13 am
  • Hi guys, I'm a newby, so sorry for the easy question. I have a matrix (459x28) in which a large number of observations are repeated (same placed sampled in different times). One of the columns is ...
    MatteoMatteo
    Jun 24, 2013 at 2:36 pm
    Jun 24, 2013 at 7:01 pm
  • Dear all, In my gRbase package I have up until now "Depend"-ed on RBGL (from Bioconductor), but good people have convinced me that I should use "Import"-it instead because I only use few functions ...
    Søren HøjsgaardSøren Højsgaard
    Jun 25, 2013 at 10:50 am
    Jun 25, 2013 at 6:13 pm
  • Dear all, Given: a <- 2 b <- 3 I'd like to obtain the following function: f <- function(x) 2 + 3*x but when I do this: f <- function(x) a + b*x ##f ##function(x) a + b*x the 'a' and 'b' objects do ...
    Liviu AndronicLiviu Andronic
    Jun 6, 2013 at 2:48 pm
    Jun 9, 2013 at 12:49 pm
  • Dear R Community, I have encountered a problem while using the R function glm.nb. The code that produce the error was following two lines: group=c(1,1,1,1,0,0,0,0) fit=glm.nb(y~group) While the y ...
    Daofeng LiDaofeng Li
    Jun 7, 2013 at 2:44 pm
    Jun 7, 2013 at 5:05 pm
  • Hello, would it be possible to make a decision whether this forwarded to the list or declined. Its now 2 days. Thanks Christoph
    Christoph KnappChristoph Knapp
    Jun 3, 2013 at 4:05 am
    Jun 4, 2013 at 1:12 pm
  • #using "rollapply" to calculate a moving sum or running sum? #I am tryign to use rollapply to calcualte a moving sum? #I tried rollapply and get the error message #"Error in seq.default(start.at, ...
    Anika MastersAnika Masters
    Jun 27, 2013 at 7:00 pm
    Aug 3, 2013 at 5:34 pm
  • Dear List members, i am seeking a multivariate version of aggregate. I want to compute, fro example the correlation between subsets of two vectors. In aggregate, i can only supply one vector with ...
    JannisJannis
    Jun 27, 2013 at 5:26 pm
    Jun 28, 2013 at 12:15 pm
  • I have x, y, z data. The x, y fields dont change but Z does. How do I add a very small number onto the end of each x, y data point. For example: Original (X) Original (Y) Original (Z) 15 20 30 15 20 ...
    Shane CareyShane Carey
    Jun 26, 2013 at 3:48 pm
    Jun 27, 2013 at 2:55 pm
  • Hey, I am looking for some help using Unicode with R CMD BATCH on windows. In particular I would like my input and output files to be UTF-8 encoded. My command line looks like this: r CMD BATCH ...
    Ned HardingNed Harding
    Jun 25, 2013 at 5:35 pm
    Jun 27, 2013 at 1:26 pm
  • Greetings: I am looking for a way to avoid using the ifelse function for constructing a new variable. More specifically, assume I have a set of variables with scores ranging from 1 to 30 ...
    Brian PerronBrian Perron
    Jun 19, 2013 at 1:24 pm
    Jun 21, 2013 at 10:12 am
  • Dear All, would you please provide your thoughts on the following: let us say I have: a <-c(1,5,8,15,32,69) b <-c(8.5,33) and I would like to extract from "a" the two values that are closest to the ...
    Andras FarkasAndras Farkas
    Jun 18, 2013 at 12:34 pm
    Jun 18, 2013 at 9:33 pm
  • Dear all, I have different data frames for which I would like to modify names of each column such that the new name would include the name of the first column added to the name of other columns; I ...
    Arman EshaghiArman Eshaghi
    Jun 14, 2013 at 1:34 pm
    Jun 16, 2013 at 12:17 pm
  • Folks, Sorry for butting in here. I ran the code from John Kane below and it worked fine. I did however get a deprecation message suggesting the use of ggpairs from the GGally package to make this ...
    Keith S WeintraubKeith S Weintraub
    Jun 11, 2013 at 1:25 pm
    Jun 12, 2013 at 2:00 pm
  • Hello, R users! I am struggling with the following problem: I need to compute a P-value for a mixture of two chi-squared distributions. My P-value is given by: P = 0.5*prob(sqrt(chi2(1)) <= x) + ...
    Tiago V. PereiraTiago V. Pereira
    Jun 1, 2013 at 4:26 am
    Jun 3, 2013 at 12:11 pm
  • R-helpers: Say I'm developing a package that has a set of user-definable options that I would like to be persistent across R-invocations (they are saved someplace). Of course, I can create a little ...
    Jonathan GreenbergJonathan Greenberg
    Jun 1, 2013 at 8:01 pm
    Oct 18, 2013 at 11:55 pm
  • Hi there, I would like to know how to change the line "img=as.single(rnorm(m)))" such that instead of being a vector of length m as it is now, img is an array of dimension c=(n,m,o) for instance ...
    Kaptue Tchuente, ArmelKaptue Tchuente, Armel
    Jun 28, 2013 at 3:04 am
    Jun 28, 2013 at 3:21 pm
  • Hi I have a dataframe as below: x1 y1 x2 y2 x3 y3 output 2 100 190 99 1430 79 89 2 100 192 63 1431 75 69 2 100 192 63 1444 51 57 3 0 195 99 1499 50 74.5 3 0 198 98 1500 80 89 30 0 198 100 1451 97 ...
    Tom OatesTom Oates
    Jun 11, 2013 at 4:07 pm
    Jun 14, 2013 at 6:24 pm
  • I have a dataframe consisting of factors in one column. Im trying to remove certain levels using the following code: toBeRemoved1<-which(DATA$UnitName_1=="lake") DATA<-DATA[-toBeRemoved1,] However it ...
    Shane CareyShane Carey
    Jun 13, 2013 at 12:02 pm
    Jun 13, 2013 at 2:14 pm
  • Hi, May be this helps: res1<-df1[with(df1,unlist(tapply(var,list(subid),FUN=function(x) c(FALSE,diff(x)!=0)),use.namesúLSE)),] ?res1 #?? subid year var #3???? 36 2003?? 3 #7???? 47 2001?? 3 #9???? 47 ...
    ArunArun
    Jun 4, 2013 at 2:10 am
    Jun 4, 2013 at 7:25 pm
  • Hello Dear R-help Members, I have noticed that when pasting text with "tab" in it to the R console it eliminates the tab. Whereas, when pasted into the R Editor, the tab is preserved. For example, ...
    Tal GaliliTal Galili
    Jun 3, 2013 at 1:15 pm
    Jun 3, 2013 at 8:46 pm
  • Hi All, Sorry about this quite basic, but I am very new to R. I have a data file which has a dependent variable (reaction time) and a couple of independent variables, one of which is coded 1-8; I ...
    Laura ThomasLaura Thomas
    Jun 3, 2013 at 9:15 am
    Jun 3, 2013 at 1:33 pm
  • ? stato filtrato un testo allegato il cui set di caratteri non era indicato... Nome: non disponibile URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130624/2836bcf8/attachment.pl
    Francesco MirandaFrancesco Miranda
    Jun 24, 2013 at 8:50 pm
    Jul 18, 2013 at 9:48 am
  • Hello everybody I have this problem: I need to match an addresses database F1 with the information contained in a toponymic database F2. The format of F1 is given by three columns and 800 rows, with ...
    A M LavezziA M Lavezzi
    Jun 21, 2013 at 9:56 am
    Jul 9, 2013 at 11:19 am
  • An embedded and charset-unspecified text was scrubbed... Name: WWA.txt URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130625/f8a2e152/attachment-0001.txt -------------- next part ...
    Jacqueline OehriJacqueline Oehri
    Jun 25, 2013 at 2:25 pm
    Jun 27, 2013 at 10:00 am
  • Hi, I am trying to calculate the geometric mean with tapply. This is the formula I am using: exp(tapply(log(data$value), data$group, mean)) However, it returns the arithmetic mean. Any ideas? Thanks ...
    Shane CareyShane Carey
    Jun 25, 2013 at 10:58 am
    Jun 25, 2013 at 3:46 pm
  • Hi, I have a data frame with each column representing a separate site. Following this code, I can apply acf to all columns in A. 'A' contains randomly generated data. A <- ...
    Zilefac ElvisZilefac Elvis
    Jun 23, 2013 at 5:29 pm
    Jun 24, 2013 at 6:34 pm
  • Hi, I've been trying to run a wilcox paired test on some data beforesmall aftersmall [1,] 63.5 512.0 [2,] 54.5 237.5 [3,] 52.5 161.5 [4,] 78.0 153.5 [5,] 53.5 68.0 [6,] 50.5 65.5 [7,] 69.0 52.0 [8,] ...
    Ruth parkerRuth parker
    Jun 23, 2013 at 6:34 pm
    Jun 24, 2013 at 3:28 pm
  • Hello all, now I'm trying to switch from Excel to R to deal with the data, and as a newbie i got the problem as follows. suppose I have a data named "test" test<- data.frame(year=c(1996:2011), ...
    Yanyuan ZhuYanyuan Zhu
    Jun 19, 2013 at 11:04 am
    Jun 20, 2013 at 9:18 am
  • Hi, I try to build a toy package by running the following codes in an R program require(stats) f <- function(x,y) x+y g <- function(x,y) x-y d <- data.frame(a=1, b=2) e <- rnorm(1000) ...
    Jpm miaoJpm miao
    Jun 14, 2013 at 6:18 am
    Jun 20, 2013 at 8:25 am
  • I have a collection of .RData files that have result objects that I would like to combine. Specifically, skatCohort objects from the skatMeta package, but I've run into a similar issue with simple ...
    Davis, BrianDavis, Brian
    Jun 17, 2013 at 9:02 pm
    Jun 18, 2013 at 3:41 pm
  • grDevices::convertColor has arguments 'from' and 'to' which can take on value 'XYZ'. Can someone confirm that 'XYZ' is the same as the CIE chromaticity coordinates that are also sometimes refered to ...
    Bryan HansonBryan Hanson
    Jun 12, 2013 at 6:45 pm
    Jun 12, 2013 at 8:55 pm
  • Hello again, I am having problem with ODBC connection using the RODBC package. I am basically trying to read the attached Excel-2003 file using RODBC package. Here is my code: Criteria s d fd f fd1 ...
    Christofer BogasoChristofer Bogaso
    Jun 7, 2013 at 11:01 am
    Jun 11, 2013 at 6:03 am
  • I have a For loop that is quite slow and am wondering if there is a faster option: df <- data.frame(TreeID=rep(1:500,each=20), Age=rep(seq(1,20,1),500)) df$Height <- exp(-0.1 + 0.2*df$Age) ...
    Trevor WalkerTrevor Walker
    Jun 10, 2013 at 5:28 pm
    Jun 10, 2013 at 11:27 pm
  • Is this what you want? I was not clear on your algorithm, but is looks like you wanted descending values: + function(n, verbose = FALSE) + { + mat <- cbind(optA = sample(n, n, TRUE), perm = seq(n)) + ...
    Jim holtmanJim holtman
    Jun 1, 2013 at 1:53 am
    Jun 7, 2013 at 10:32 am
  • Dear all, I would like to split the data based on the "place" and then would like to see how many "names" were common in place with corresponding "value" . Please find a demo file. Thanks for your ...
    Nico MetNico Met
    Jun 3, 2013 at 1:41 pm
    Jun 5, 2013 at 3:46 pm
  • My script fits a third-order polynomial to my data with something like this: model <- lm( y ~ poly(x, 3) ) What I'd like to do is find the theoretical maximum of the polynomial (i.e. the x at which ...
    Joseph ClarkJoseph Clark
    Jun 4, 2013 at 8:32 pm
    Jun 5, 2013 at 2:11 pm
  • Hello, I am using R to create graphics, especially to plot time series charts. These charts are then copied as metafiles (for best quality) to a PowerPoint presentation and then saved to PDF (via the ...
    Erling Johan FrøysaErling Johan Frøysa
    Jun 2, 2013 at 5:15 pm
    Jun 3, 2013 at 5:37 pm
  • Dear all, I try to conduct a SEM / two stage least squares regression with the following equations: First: X ~ IV1 + IV2 * Y Second: Y ~ a + b X therein, IV1 and IV2 are the two instruments I would ...
    HckHck
    Jun 23, 2013 at 2:17 pm
    Jul 14, 2013 at 5:59 am
  • Dear List members, I would like to use the Kalman-filter program for forecasting - namely for postprocessing numerical model results of 2m temperature. I have looked through the help of the ...
    Csima GabriellaCsima Gabriella
    Jun 28, 2013 at 11:27 am
    Jul 2, 2013 at 1:50 pm
  • Hi all, What would be an efficient way to match rows of a matrix to a vector? ex: m<-matrix(1:9, nrow=3) m [,1] [,2] [,3] [1,] 1 4 7 [2,] 2 5 8 [3,] 3 6 9 ################################# ...
    Sachinthaka AbeywardanaSachinthaka Abeywardana
    Jun 26, 2013 at 8:03 am
    Jun 26, 2013 at 7:44 pm
  • I am having difficulty understanding the envir argument of do.call. The help page says envir an environment within which to evaluate the call. so I thought that in the following toy example x would ...
    Dan MurphyDan Murphy
    Jun 25, 2013 at 1:32 pm
    Jun 26, 2013 at 1:24 am
  • Dear All, wonder if you would provide your insights on the following: the code: library(lattice) y <-c(1:58) x <-runif(58,5,10) z <-runif(58,8,12) dataset <-data.frame(y,x) dotplot(y ~ x, data = ...
    Andras FarkasAndras Farkas
    Jun 21, 2013 at 7:43 pm
    Jun 22, 2013 at 4:20 pm
  • Hello R experts, I want to define desired numbers to a vector based on the present numbers. Can anybody please help me? Obviously I found worst ways to do it, but I believe there must be any better ...
    Suparna MitraSuparna Mitra
    Jun 21, 2013 at 3:13 pm
    Jun 21, 2013 at 5:13 pm
Group Navigation
period‹ prev | Jun 2013 | next ›
Group Overview
groupr-help @
categoriesr
discussions504
posts1,641
users463
websiter-project.org
irc#r

463 users for June 2013

Arun: 139 posts David Winsemius: 67 posts Rui Barradas: 61 posts Bert Gunter: 39 posts Duncan Murdoch: 39 posts John Kane: 31 posts David Carlson: 30 posts William Dunlap: 29 posts Adams, Jean: 27 posts Pascal Oettli: 24 posts Berend Hasselman: 23 posts Prof Brian Ripley: 22 posts Jeff Newmiller: 21 posts Uwe Ligges: 20 posts Sarah Goslee: 19 posts Peter dalgaard: 18 posts Shane Carey: 17 posts Ista Zahn: 14 posts Jim Holtman: 14 posts Rolf Turner: 13 posts
show more
Archives