Grokbase Groups R r-help October 2013
FAQ

Search Discussions

407 discussions - 1,295 posts

  • Dear Forum, I have a data frame as mydat = data.frame(basel_asset_class = c(2, 8, 8 ,8), defa_frequency = c(0.15, 0.07, 0.03, 0.001)) basel_asset_class defa_frequency 1 2 0.150 2 8 0.070 3 8 0.030 4 ...
    Katherine GobinKatherine Gobin
    Oct 17, 2013 at 6:55 am
    Oct 18, 2013 at 12:58 pm
  • Hi all, I am using the ... argument to parmeterize a user define fn to accept multiple input objects. I subsquently save all these data as a list. Question: what is the best way to recover or extract ...
    Dan AbnerDan Abner
    Oct 18, 2013 at 4:05 pm
    Oct 21, 2013 at 7:13 pm
  • Is it easy or difficult to label the abscissa of a scatter graph as 1/trueScaleValue at that point? -- View this message in context ...
    HurrHurr
    Oct 11, 2013 at 4:48 pm
    Oct 24, 2013 at 11:14 pm
  • I know I cannot be the only one who is not able to install the XML package from CRAN (zip or tar file) Many packages depend on this XML package. Can someone help me either access the source for a ...
    Steven Dwayne RandolphSteven Dwayne Randolph
    Oct 19, 2013 at 7:47 pm
    Oct 24, 2013 at 5:01 pm
  • Hi, In the example you showed: m1<- matrix(0,length(vec),max(vec)) 1*!upper.tri(m1) #or ?m1[!upper.tri(m1)] <-? rep(rep(1,length(vec)),vec) #But, in a case like below, perhaps: vec1<- c(3,4,5) ?m2<- ...
    ArunArun
    Oct 11, 2013 at 4:49 pm
    Oct 13, 2013 at 2:22 pm
  • All, I am using a sum of squared differences in the objective function of an optimization problem I am doing and I have managed to speed it up using the outer function versus the nested for loops, ...
    Bos, RogerBos, Roger
    Oct 21, 2013 at 8:30 pm
    Oct 23, 2013 at 11:03 pm
  • Greets, I'm trying to use nlminb() to estimate the parameters of a bivariate normal sample and during one of the iterations it passes a parameter vector to the likelihood function resulting in an ...
    Steven LeBlancSteven LeBlanc
    Oct 20, 2013 at 10:01 pm
    Oct 21, 2013 at 5:33 pm
  • Hello everyone, I'm having some trouble interpreting the results of a Wilcoxon (Mann-Whitney U) test. Hope you can help. This is the R script that I am running: a <- c(1, 1, 1, 1, 1, 1, 1, 1, 3, 1, ...
    Filipe CorreiaFilipe Correia
    Oct 2, 2013 at 3:33 pm
    Oct 5, 2013 at 11:19 am
  • When I specify pch = 19 for a scatter plot the points are filled circles. Deapite reading ?points and trial-and-error experimentation I have not found how to have the legend symbols (now open ...
    Rich ShepardRich Shepard
    Oct 17, 2013 at 3:17 pm
    Oct 18, 2013 at 12:28 pm
  • hello all, I am trying to compile the R in Win7 and compiles one small part but the script don't move from the 'base' directory to 'stats' I installed the Rtools likee administrator and call the ...
    Cleber N.BorgesCleber N.Borges
    Oct 5, 2013 at 12:03 am
    Oct 6, 2013 at 2:45 pm
  • Hi all, I would like to ask your help to add a color band (Ι am not sure regarding the right term, this color band at the right of the plot "describing" values with their corresponding color. For ...
    AlaiosAlaios
    Oct 25, 2013 at 9:38 am
    Nov 4, 2013 at 2:18 pm
  • Hi there- I have a 150 row dataset (data). I create "y" a randomly sampled (without replacement) set number of observations (40): y<-data[sample(1:nrow(data),40,replaceúLSE),] I would like to make a ...
    ErinuErinu
    Oct 23, 2013 at 6:13 pm
    Oct 23, 2013 at 8:47 pm
  • Hi, pnorm(-1.53,0,1) under version 3.0.2 gives 0.05155075. I am pretty sure it should be 0.063. Is there something wrong with this version of R? I am using: R version 3.0.2 (2013-09-25) -- "Frisbee ...
    Tom soyerTom soyer
    Oct 16, 2013 at 2:54 pm
    Oct 16, 2013 at 3:47 pm
  • R 3.0.1 OS X Colleagues, If I execute the command: table(OBJECT) the output might look like: 1 2 25 336 I would like it to appear as: 1 25 2 336 I can accomplish this with: TABLE <- table(OBJECT) ...
    Dennis FisherDennis Fisher
    Oct 6, 2013 at 5:30 pm
    Oct 7, 2013 at 10:11 pm
  • Hello, I've been running several programs in the unix shell, and it's time to combine results from several different pipelines. I've been writing shell scripts with heavy use of awk and grep to make ...
    Jon BRJon BR
    Oct 23, 2013 at 11:36 pm
    Oct 24, 2013 at 12:59 pm
  • Hi all, We know that Hermite polynomial is for Gaussian, Laguerre polynomial for Exponential distribution, Legendre polynomial for uniform distribution, Jacobi polynomial for Beta distribution. Does ...
    Marino DavidMarino David
    Oct 11, 2013 at 12:02 am
    Oct 21, 2013 at 7:51 am
  • I'm using the "XML" package and specifically the saveXML() function but I can't get the "prefix" argument of saveXML() to work: library("XML") concepts <- c("one", "two", "three") info <- c("info ...
    Earl BrownEarl Brown
    Oct 17, 2013 at 3:45 am
    Oct 20, 2013 at 3:49 pm
  • Greets, I'm using nlminb() to estimate the parameters of a multivariate normal random sample with missing values and ran into an unexpected result from my call to dmvnorm() within the likelihood ...
    Steven LeBlancSteven LeBlanc
    Oct 18, 2013 at 4:11 am
    Oct 18, 2013 at 6:16 pm
  • Hello, I'm trying to use coxph() function to fit a very simple Cox proportional hazards regression model (only one covariate) but the parameter space is restricted to an open set (0, 1). Can I still ...
    YY
    Oct 16, 2013 at 12:58 am
    Oct 17, 2013 at 12:05 pm
  • A colleague is sending me quite a few files that have been saved with MS SQL Server 2005. I am using R 2.15.1 on Windows 7. I am trying to read in the files using standard techniques. Although the ...
    Ira SharenowIra Sharenow
    Oct 8, 2013 at 11:02 pm
    Oct 11, 2013 at 2:27 pm
  • Hello, I have been tasked with taking an excel file that my colleague had implemented Triple Exponential Smoothing and recreate using R. The following image shows the before and after of smoothing ...
    Daniel HickmanDaniel Hickman
    Oct 3, 2013 at 3:32 pm
    Jan 6, 2014 at 5:42 pm
  • Hi there, I have found a strange behavior in R that puzzles me - maybe it is a bug or a basic scientific misunderstanding of mine? anyway, I would highly appreciate some feedback on this, since I did ...
    Kramer, ChristianKramer, Christian
    Oct 25, 2013 at 2:48 pm
    Oct 26, 2013 at 8:56 am
  • Hi, My name is Alexandre Khelifa and I have been using R at my work for about 2 years. I have been working on a project when we do Monte Carlo Simulation and it involves a lot of calculations. I am ...
    Alexandre KhelifaAlexandre Khelifa
    Oct 21, 2013 at 11:12 pm
    Oct 26, 2013 at 8:03 am
  • Hey R professionals, I have a large dataset and I want to run a loop on it basically creating a new column which gathers information from another reference table. When I run the code, R just freezes ...
    Ye LinYe Lin
    Oct 17, 2013 at 9:56 pm
    Oct 18, 2013 at 7:56 pm
  • Greetings, I have an S4 class "B" (Base) which defines a function f=f(this="B",...) Dervided from?B we have a derived class D which also defines a function f=f(this="D",...) In the definition of D::f ...
    Michael MeyerMichael Meyer
    Oct 17, 2013 at 11:21 am
    Oct 17, 2013 at 6:15 pm
  • Hello, I’m unsuccessfully trying to apply piecewise linear regression over each of 22 groups. The data structure of the reproducible toy dataset is below. I’m using the ‘segmented’ package, ...
    Prew, PaulPrew, Paul
    Oct 12, 2013 at 3:13 am
    Oct 17, 2013 at 12:16 am
  • Hi, I got given some code that uses the R function pbionom: p <- mut * t sumprobs <- pbinom( N, B, p ) * 1000 Which gives the output of a probability as a percentage like 5, 50, 95. What the code ...
    Benjamin Ward (ENV)Benjamin Ward (ENV)
    Oct 9, 2013 at 1:53 pm
    Oct 16, 2013 at 10:15 pm
  • lm(height ~ ., data=X) works fine. However nnn <- "height" ; lm(nnn ~ . ,data=X) fails How do I write such a formula, which depends on the value of a string variable like nnn above? A typical ...
    David EpsteinDavid Epstein
    Oct 13, 2013 at 9:04 pm
    Oct 14, 2013 at 7:41 am
  • Hi everyone, I'm attempting to use the bnlearn package to calculate conditional probabilities, and I'm running into a problem when the "cpquery" function is used within a loop. I've created an ...
    Ryan MorrisonRyan Morrison
    Oct 9, 2013 at 5:20 pm
    Oct 11, 2013 at 8:25 pm
  • Dear R wizards, Though I hate to do it after weeks of my code not working I need some help since I cant find an example which seems to work. I am trying to create a graph which show the probability ...
    Rebecca StirnemannRebecca Stirnemann
    Oct 9, 2013 at 9:35 pm
    Oct 11, 2013 at 12:31 pm
  • Hello I've got a matrix of the following form BARN BCGE BCVN BEAN Restriction 1 Restriction 2 Restriction 3 Restriction 4 Restriction 5 alpha.1 0.000172449 7.87E-05 -0.003271044 0.000921609 9.28E-19 ...
    LaroLaro
    Oct 9, 2013 at 8:26 pm
    Oct 9, 2013 at 11:01 pm
  • Hi, New to R here. Lots of fun. Still rather green though. I'd like to select unique items from a list that looks like this (for example): $x [1] 8 6 9 0 0 3 9 7 1 9 $y [1] 1 2 9 5 1 2 0 9 2 9 $z [1] ...
    Ronald PetersonRonald Peterson
    Oct 9, 2013 at 11:50 am
    Oct 9, 2013 at 8:43 pm
  • Dear All, I have a question, suppose X is a dataframe, with column names as "x1", "x2", "x3", ..... And I would like to use the i-th column by X[,'xi']. But it seems the single quote and double quote ...
    JieJie
    Oct 4, 2013 at 4:06 pm
    Oct 5, 2013 at 7:18 am
  • #let's suppose I have a list like this mytest<-list(45, NULL, 18, NULL, 99) #to note that this is just an amended example because in fact #I'm dealing with a long list (more than 400 elements) #with ...
    Massimo BressanMassimo Bressan
    Oct 3, 2013 at 2:41 pm
    Oct 4, 2013 at 6:32 am
  • I have this weird data set with 2 predictors and one dependent variable - attached. predictor1 has all zeros except for one 1. I am runnning a simple logistic regression: temp<-read.csv("x data for ...
    Dimitri LiakhovitskiDimitri Liakhovitski
    Oct 1, 2013 at 2:41 pm
    Oct 1, 2013 at 3:47 pm
  • Dear all, Running the following code produces an error in dummy.coef. I guess it might be a bug.. Error in rep.int(xl[[i]][1L], nl) : invalid 'times' value R version 3.0.1 (2013-05-16) Platform ...
    Alexandra KuznetsovaAlexandra Kuznetsova
    Oct 24, 2013 at 8:51 am
    Oct 25, 2013 at 8:34 pm
  • Due to convention a script "l" - $$\ell$$ (LaTeX \ell) is used to represent a certain quantity in something I'm working on. I'm unable to figure out how to use it in R. It's not included in the list ...
    Byron DomByron Dom
    Oct 13, 2013 at 5:53 pm
    Oct 25, 2013 at 10:40 am
  • Hey everyone, I have several RStudio (.rnw) files that I am using a script to assemble into a composite document. For this purpose, it would be helpful if the script could automatcially make a call ...
    Adam HughesAdam Hughes
    Oct 23, 2013 at 5:39 pm
    Oct 24, 2013 at 6:28 am
  • Dear all, I have a data set where I want to make a matrix of the mean values using 3rd column (value). Where rows are unique �loc� and columns would be �variables�. If there is one observation or no ...
    Nico MetNico Met
    Oct 8, 2013 at 2:47 pm
    Oct 23, 2013 at 12:58 pm
  • I need to learn how to set up two methods (java functions) so I can call them from R. Currently I just copy and paste R code into the R console. A little piece of the R code inside a loop is: linTm ...
    HurrHurr
    Oct 22, 2013 at 12:31 am
    Oct 23, 2013 at 4:23 am
  • Hi, May be this helps: dat1 <- structure(list(Position = c(15L, 22L, 38L, 49L, 55L, 61L, 62L, 14L, 29L, 63L, 46L, 22L, 18L, 24L, 22L, 49L, 42L, 38L, 29L, 22L, 29L, 23L, 42L), Count = c(15L, NA, NA, ...
    ArunArun
    Oct 18, 2013 at 8:19 pm
    Oct 21, 2013 at 3:21 am
  • Dear useRs, I have the following data "z" of two variables "x"(z[,1]) and "y"(z[,2]). structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, ...
    Eliza bottoEliza botto
    Oct 19, 2013 at 9:29 pm
    Oct 20, 2013 at 9:26 pm
  • Dear R users, Suppose I want to randomly generate some data, in matrix form, randomly swap some of the elements and calculate trace of the matrix for each of these stages. If the value of trace ...
    LazLaz
    Oct 19, 2013 at 5:41 pm
    Oct 20, 2013 at 4:54 pm
  • Dear list subscribers, here is a small artificial example to demonstrate the problem that I encountered when looking at the structure of a (larger) data frame that comprised (among other components) ...
    Gerrit EichnerGerrit Eichner
    Oct 15, 2013 at 11:53 am
    Oct 16, 2013 at 9:44 am
  • I'm running package parallel in R-3.0.2. Below are the execution times using system.time for when executing serially versus in parallel (with 2 cores) using parRapply. Serially: user system elapsed ...
    Jeffrey FlintJeffrey Flint
    Oct 14, 2013 at 8:25 pm
    Oct 15, 2013 at 7:05 pm
  • Hi all, I hope you can help with this one! I have a dataframe: 'df' that consists of a vector of times: 'dt2' and a vector of group id's: 'group': dates2=rep("01/02/13",times=8) ...
    Benjamin GillespieBenjamin Gillespie
    Oct 10, 2013 at 10:35 pm
    Oct 14, 2013 at 3:38 am
  • Hello all - I have an example column in a dataFrame id.name 123.45 123.45 123.45 123.45 234.56 234.56 234.56 234.56 234.56 234.56 234.56 345.67 345.67 345.67 456.78 456.78 456.78 456.78 456.78 456.78 ...
    Steven RanneySteven Ranney
    Oct 11, 2013 at 1:26 pm
    Oct 11, 2013 at 5:23 pm
  • Hi, I'm looking for an R function/package that will let me solve problems of the type: 13 = 2^x + 3^x. The answer to this example is x = 2, but I'm looking for solutions when x isn't so easily ...
    Ken TakagiKen Takagi
    Oct 10, 2013 at 6:39 pm
    Oct 11, 2013 at 3:11 pm
  • foo <- as.numeric(as.character(your_factors) ). It's a common mistake to forget the first conversion, in which case you end up with an integer sequence rather than the desired values. -- View this ...
    Carl WitthoftCarl Witthoft
    Oct 10, 2013 at 11:41 am
    Oct 10, 2013 at 2:00 pm
  • Hello All, The version of R I am using is as follows platform x86_64-pc-linux-gnu arch x86_64 os linux-gnu system x86_64, linux-gnu status major 2 minor 14.1 year 2011 month 12 day 22 svn rev 57956 ...
    Prasad JoshiPrasad Joshi
    Oct 7, 2013 at 10:02 am
    Oct 8, 2013 at 6:32 am
Group Navigation
period‹ prev | Oct 2013 | next ›
Group Overview
groupr-help @
categoriesr
discussions407
posts1,295
users413
websiter-project.org
irc#r

413 users for October 2013

Arun: 127 posts David Winsemius: 49 posts Bert Gunter: 44 posts Duncan Murdoch: 32 posts Jeff Newmiller: 30 posts Jim Lemon: 28 posts William Dunlap: 20 posts Peter dalgaard: 19 posts S Ellison: 18 posts Berend Hasselman: 17 posts Carl Witthoft: 16 posts PIKAL Petr: 15 posts Rui Barradas: 15 posts Greg Snow: 14 posts Hurr: 14 posts Jim Holtman: 12 posts Prof Brian Ripley: 12 posts Rolf Turner: 11 posts David Carlson: 10 posts Ista Zahn: 10 posts
show more
Archives