Grokbase Groups R r-help October 2015
FAQ

Search Discussions

251 discussions - 894 posts

  • Hi all, Iam trying to change character to numeric but have probelm mydata <- read.table(header=TRUE, text=', sep=" " id sex 1 NA 2 NA 3 M 4 F 5 M 6 F 7 F ') if sex is missing then sex=0; if sex is"M" ...
    ValVal
    Oct 31, 2015 at 1:15 am
    Nov 1, 2015 at 12:37 am
  • I need to extract an ID from the product column of my df. I was able to extract the ids for some scenearios, but when applying my code for the next type of ids (there are some other combinations), ...
    Omar André Gonzáles DíazOmar André Gonzáles Díaz
    Oct 9, 2015 at 7:59 pm
    Oct 11, 2015 at 10:29 pm
  • Hi, I used "?mtcars" to read the documentation for the dataset. I found a mistake in how unit is listed, namely, that for the variable "wt," the unit should be listed as "1000 lb," not "lb/1000." ...
    Ming-Lun HoMing-Lun Ho
    Oct 24, 2015 at 12:59 am
    Oct 26, 2015 at 4:55 pm
  • Dear Madam/Sir, I am trying to understand R and I have come to a stumbling block. i have written: +child.ages=c(4,7,9)),employee="John",family=list(spouse="Mary",children=2, +child.ages=c(14,17))) ...
    FERNANDO MANSITO CABALLEROFERNANDO MANSITO CABALLERO
    Oct 4, 2015 at 6:31 pm
    Nov 2, 2015 at 12:14 am
  • Hi,I have invoked plot in a function (plot.func) as follows but when I check the built package, I get a warning: plot(x.pt,y.pt,xlim = c(0, 10), ylim = c(0,1), xlab= "xlab", ylab="ylab", main = ...
    Carol whiteCarol white
    Oct 19, 2015 at 5:29 pm
    Oct 27, 2015 at 8:05 pm
  • Dear All, I'm trying to do a simple task (which is in fact a tiny part of a larger code). I want to create a matrix, D, each of its columns is a sequence from 0 to (n-m), by 1. Then, using D, I want ...
    Maram SAlemMaram SAlem
    Oct 15, 2015 at 2:45 pm
    Oct 21, 2015 at 7:47 am
  • Hi, I have downloaded the pre-compiled version of R package: r-base-core(3.2.2-1) for i386 platform. Unzipped the package under my tmp directory (/tmp). The directories "et"c and "usr" got created ...
    Sasikumar KandhasamySasikumar Kandhasamy
    Oct 6, 2015 at 10:59 pm
    Oct 8, 2015 at 5:28 pm
  • I am using scatter3d in R Commander to plot a group of regression surfaces. However, I only want to display the surfaces. How do I remove the points? [[alternative HTML version deleted]]
    Jeff TostenrudeJeff Tostenrude
    Oct 2, 2015 at 11:34 pm
    Oct 5, 2015 at 10:20 pm
  • Hi guys, Can you instruct me please how to run quantile regression without the intercept term? I only know about the rq function under quantreg package, but it automatically uses an intercept model ...
    Preetam PalPreetam Pal
    Oct 5, 2015 at 3:27 pm
    Oct 7, 2015 at 9:08 pm
  • I would like to read a connection line by line with scan but don't know how to tell when to quit trying. Is there any way that you can ask the connection object if it is at the end? E.g., t <- 'A ...
    William DunlapWilliam Dunlap
    Oct 15, 2015 at 8:16 pm
    Oct 19, 2015 at 11:27 pm
  • 'data.frame': 2192 obs. of 4 variables: $ Year : int 1960 1960 1960 1960 1960 1960 1960 1960 1960 1960 ... $ Month : int 1 1 1 1 1 1 1 1 1 1 ... $ Day : int 1 2 3 4 5 6 7 8 9 10 ... $ Amount: num 0.3 ...
    David L CarlsonDavid L Carlson
    Oct 1, 2015 at 2:45 pm
    Oct 2, 2015 at 8:39 pm
  • Dear R-help, I am working with a matrix "m" from which I would like to extract some elements. An toy example is as follows: ## input matrix m <- structure(c(0L, 0L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, ...
    Jorge I VelezJorge I Velez
    Oct 27, 2015 at 6:43 pm
    Nov 4, 2015 at 5:19 pm
  • Hello, I?m using the plyr package to add a variable named "bin" to my original data frame "df" with a user-defined function "create_bins". I'd like to get similar results using dplyr instead, but ...
    Axel UrbizAxel Urbiz
    Oct 29, 2015 at 11:48 pm
    Nov 3, 2015 at 2:07 am
  • Hi, I am dealing with a regression problem where the response variable, time (second) to walk 15 ft, is rounded to the nearest integer. I do not care for the regression coefficients per se, but my ...
    Ravi VaradhanRavi Varadhan
    Oct 21, 2015 at 2:53 pm
    Oct 22, 2015 at 12:48 pm
  • So, am running 3.2.2 on a Centos 6.xx box. Code executes fine, but I'm having a heck of a time with graphics. I don't think this is related to R in the broad sense, but how it is interacting with ...
    Evan CoochEvan Cooch
    Oct 14, 2015 at 1:36 pm
    Oct 15, 2015 at 4:30 pm
  • Hi Jim and others: I needed color code for some color gradients in color.scale function. I found that the following translates to green to yellow to red: c(0,1,1),c(1,1,0),0. How does this string ...
    Kumar MainaliKumar Mainali
    Oct 9, 2015 at 5:15 am
    Oct 9, 2015 at 10:08 pm
  • Dear colleagues, I am trying to run a PERMANOVA in the vegan package with an appropriate number of permutations (see example below), ideally 9999. Obviously that number of permutations does not ...
    Sean PorterSean Porter
    Oct 27, 2015 at 8:56 am
    Oct 30, 2015 at 11:48 am
  • Hi there, Often times, I would run R in the terminal when the task is computationally intensive and a nice-looking UI is less desired. However, pasting a large chunk of code into the terminal often ...
    Victor TianVictor Tian
    Oct 29, 2015 at 3:16 pm
    Oct 29, 2015 at 7:58 pm
  • Dear R users I'm trying to reproduce the results from Lowry et al. 2007 Lunar landings - Relationship between lunar phase and catch rates for an Australian gamefish-tournament fisheryFisheries ...
    Antonio SilvaAntonio Silva
    Oct 24, 2015 at 10:19 pm
    Oct 25, 2015 at 1:42 pm
  • Hello R-Helpers! I have a data-frame as below (dput in the end of mail) and need to select just the first sequence of occurrence of each "Group" in each "ID". For example, for ID "1" I have two ...
    Cacique SamuraiCacique Samurai
    Oct 10, 2015 at 3:38 pm
    Oct 11, 2015 at 7:53 pm
  • Hello, I have a matrix mat (see dput(mat)) [,1] [,2] [1,] 5 6 [2,] 6 5 [3,] 5 4 [4,] 5 5 .... I want the frequencies of the pairs in a new matrix, whereas the combination 5 and 6 is the same as 6 and ...
    Hermann NorpoisHermann Norpois
    Oct 6, 2015 at 8:59 pm
    Oct 8, 2015 at 1:08 pm
  • I have a data frame with date/times represented as charaacter strings and and a value at that date/time. I want to get the mean value for each time of day, across days, and then plot time of day on ...
    Daniel NordlundDaniel Nordlund
    Oct 30, 2015 at 5:35 pm
    Oct 30, 2015 at 8:19 pm
  • Hello, Before I get to my question, I want to make clear that the topic of my present post is similar to posts I recently submitted to the list. Although I appreciate the replies I got, I believe ...
    SbihorelSbihorel
    Oct 29, 2015 at 4:26 pm
    Oct 30, 2015 at 12:50 pm
  • Dear All, I have a question concerning the seq() function arguments when used in a for() loop. I'll simplify this question to make it more clear. Suppose I have a (5*3)matrix s (for ex.) and I need ...
    Maram SAlemMaram SAlem
    Oct 11, 2015 at 11:52 am
    Oct 11, 2015 at 12:44 pm
  • Hi I am running the same r routine on both my desktop and my laptop, and writing results in the form of csv files into storage folders in the respective users/documents files of both machines My ...
    WRAY NICHOLASWRAY NICHOLAS
    Oct 9, 2015 at 3:43 pm
    Oct 10, 2015 at 11:48 am
  • Dear all, on one shared machine we have an older R version installed. Some packages have known issues with that version that are fixed in newer R versions. Since that is a production machine with ...
    Luca CeroneLuca Cerone
    Oct 7, 2015 at 6:14 am
    Oct 8, 2015 at 12:21 pm
  • Hi all. I don't understand why R works this way: [1] TRUE Shouldn't I get 3 TRUEs? Am I missing something? Thank you. -- View this message in context ...
    NeverstopNeverstop
    Oct 6, 2015 at 7:24 am
    Oct 6, 2015 at 1:31 pm
  • Hi I collect a list of calls to a package in a function (routine) so that I do not need to repeat the same sets of codes from program to program. In the following, inserting the function into each ...
    Steven YenSteven Yen
    Oct 3, 2015 at 8:47 am
    Oct 4, 2015 at 4:22 pm
  • y <- 1 f1 <- function() { cat("y =", y, "\n") } f2 <- function() { y <- 2 f1() } f3 <- function() { y <- 3 f <- f1 f() } f4 <- function() { y <- 4 f <- function() { cat("y =", y, "\n") } f() } f1() ...
    ALBERTO VIEIRA FERREIRA MONTEIROALBERTO VIEIRA FERREIRA MONTEIRO
    Oct 23, 2015 at 3:08 pm
    Nov 13, 2015 at 7:13 pm
  • Hello, It must be very easy. I have data like this: myframe <- data.frame (ID=c("Ernie", "Ernie", "Ernie", "Bert", "Bert","Bert", "Duck"), Hunger=c(1,1,1,2,2,1,3) ) myframe bighunger <- subset ...
    Dagmar CimiottiDagmar Cimiotti
    Oct 28, 2015 at 12:20 pm
    Oct 29, 2015 at 9:46 am
  • I get the following error: Warning message: In normalizePath(path.expand(path), winslash, mustWork) : path[1]="C:\Users\Administrator\My Documents/R/win-library/3.2": Access is denied This may be the ...
    Keith S WeintraubKeith S Weintraub
    Oct 25, 2015 at 2:50 pm
    Oct 27, 2015 at 12:44 pm
  • How do I control the number of digits to display, say, in a matrix, without rounding or losing accuracy in subsequent calculations? round() of course reduces accuracy. Also, if all my results are ...
    JudsonJudson
    Oct 26, 2015 at 4:43 pm
    Oct 26, 2015 at 10:40 pm
  • Hi, I have a question regarding the creation of new variables on the basis of existing ones in R. I have two variables containing information on parents' educational degree (e.g. 1 'high school ...
    Lorenz, JenniferLorenz, Jennifer
    Oct 26, 2015 at 10:24 am
    Oct 26, 2015 at 4:56 pm
  • Hi! I have collected 500.000+ tweets with a Python script using 'tweepy', which stored the data in JSON format. I would like to use R for data analysis, but have encountered problems when trying to ...
    K. EloK. Elo
    Oct 23, 2015 at 7:44 pm
    Oct 25, 2015 at 4:05 pm
  • Hi, Next adventure into my journey from lattice to ggplot: I would like to create a custom generic function that combines multiple existing geom's in order to reproduce what the lattice panel.xyplot ...
    SbihorelSbihorel
    Oct 23, 2015 at 1:12 pm
    Oct 24, 2015 at 8:50 am
  • Hi, I want to create my own RGUI, so I?m using tcltk for that. In a very simple example, I want to get the response of a function into a tktext, so I have done this: data<-c(2,3,5,2) tt<-tktoplevel ...
    Jesús Para FernándezJesús Para Fernández
    Oct 22, 2015 at 8:49 am
    Oct 22, 2015 at 9:24 am
  • Hello Please could you help me to select the most appropriate/fastest function to use for the following constraint optimisation issue? Objective function: Min: Sum( (X[i] - S[i] )^2) Subject to ...
    Andy YuanAndy Yuan
    Oct 20, 2015 at 10:58 am
    Oct 20, 2015 at 5:13 pm
  • I think I am failing to understand how boot() uses the parallel package on linux machines, using R 3.2.2 on three different machines with 2, 4 and 8 cores all results in a slow down if I use ...
    Chris EvansChris Evans
    Oct 17, 2015 at 4:18 pm
    Oct 19, 2015 at 7:23 am
  • Hi, I want to create my own package with a very simple GUI. The problem is that I need to use special latin characters, as ?,?,?... The function i have made is: funcion<-function(){ tt<-tktoplevel() ...
    Jpara3Jpara3
    Oct 15, 2015 at 7:52 am
    Oct 15, 2015 at 8:33 pm
  • Hi I need a Latin Hypercube with the following conditions: 0 < x[,"a"] < 1 0 < x[,"b"] < 1 0 < x[,"c"] < 1 but also x[,"a"] + x[,"b"] < h The first three are easy: --8<---------------cut ...
    Rainer M KrugRainer M Krug
    Oct 15, 2015 at 12:48 pm
    Oct 15, 2015 at 3:38 pm
  • I am trying to fit this data to a weibull distribution: My y variable is:1 1 1 4 7 20 7 14 19 15 18 3 4 1 3 1 1 1 1 1 1 1 1 1 and x variable is:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 ...
    Aditya BhatiaAditya Bhatia
    Oct 13, 2015 at 9:42 pm
    Oct 15, 2015 at 12:18 am
  • Dear all, I use regular R in xterm terminal in KDE Gui . Even though I have a big terminal and LINES and COLUMNS parameters are set, R shows data frames and lists only 80 characters per line, then ...
    CeCe
    Oct 14, 2015 at 1:52 pm
    Oct 14, 2015 at 3:12 pm
  • Hi R Users, I was trying to make a matrix with three variables (x,y, z), but y variable (columns) names did not stay in its sequential order, t1,t2,t3,---t21; rather the matrix columns automatically ...
    Kristi GloverKristi Glover
    Oct 12, 2015 at 8:41 am
    Oct 14, 2015 at 9:08 am
  • Dear List, I am trying to run a simple pieewise regression using the segmented package. When running the following code library(segmented) data = data.frame(x=c(50,60,70,80,90,100,110) , y= ...
    Andrew haywoodAndrew haywood
    Oct 7, 2015 at 1:50 pm
    Oct 10, 2015 at 5:50 pm
  • Hello, R-experts, In R-program,?I have a question about the apply-family. I want to use apply-family to replace a for-loop in my R-code,But, lapply returns a list of 3 (each component is the same), ...
    LiqunhanLiqunhan
    Oct 9, 2015 at 8:15 pm
    Oct 10, 2015 at 4:17 pm
  • Dear How do you construct a lower triangular matrix from a vector. I want to make vector a <- 1:10 into a triangular matrix 1 0 0 0 2 3 0 0 4 5 6 0 7 8 9 10 Thank you! [[alternative HTML version ...
    Steven YenSteven Yen
    Oct 10, 2015 at 5:57 am
    Oct 10, 2015 at 1:21 pm
  • R-Helpers, I've seen some similar threads about this question online, but not quite what I'm looking for. I apologize in advance if someone's already answered this and I just can't find it online ...
    Adrienne WoottenAdrienne Wootten
    Oct 6, 2015 at 5:42 pm
    Oct 6, 2015 at 9:39 pm
  • Hi, I am running through a series of regression in a loop as follows: results <- vector("list", length(mydata$varnames)) for (i in 1:length(mydata$varnames)) { results[[i]] <- ...
    Ravi VaradhanRavi Varadhan
    Oct 27, 2015 at 3:19 pm
    Nov 1, 2015 at 10:06 pm
  • We are seeing the following problem when trying to install magrittr on Ubuntu 14.04 install.packages("magrittr") Installing package into ?/home/ehsueh/R/x86_64-pc-linux-gnu-library/3.0? (as ?lib? is ...
    Boris SteipeBoris Steipe
    Oct 30, 2015 at 1:17 am
    Oct 30, 2015 at 4:49 am
  • Is there a function in R to get the set of all unit vectors which are orthogonal to a given vector?
    Marco InacioMarco Inacio
    Oct 29, 2015 at 10:38 pm
    Oct 30, 2015 at 12:59 am
Group Navigation
period‹ prev | Oct 2015 | next ›
Group Overview
groupr-help @
categoriesr
discussions251
posts894
users285
websiter-project.org
irc#r

285 users for October 2015

Jeff Newmiller: 41 posts David Winsemius: 33 posts Duncan Murdoch: 30 posts William Dunlap: 27 posts Peter dalgaard: 24 posts Maram SAlem: 22 posts Jim Lemon: 21 posts Rolf Turner: 21 posts Boris Steipe: 18 posts Sarah Goslee: 17 posts Giorgio Garziano: 15 posts PIKAL Petr: 14 posts David L Carlson: 13 posts Bert Gunter: 12 posts Sbihorel: 11 posts Adams, Jean: 10 posts Jim holtman: 10 posts Omar André Gonzáles Díaz: 10 posts Marc Schwartz: 9 posts Berend Hasselman: 8 posts
show more
Archives