FAQ

Search Discussions

452 discussions - 1,450 posts

  • Just ran these two statements: [1] NA [1] "bla" And then reran with explicit na.rmúLSE [1] NA [1] "bla" That seems wrong. Would this be considered a bug or is there a way to explain these results in ...
    Magnus Thor TorfasonMagnus Thor Torfason
    Sep 26, 2013 at 3:07 pm
    Sep 27, 2013 at 11:03 am
  • This is a condensed version of the same question on stackexchange here: http://stackoverflow.com/questions/18789330/r-on-windows-character-encoding-hell If you've already stumbled upon it feel free ...
    Maxim LinchitsMaxim Linchits
    Sep 13, 2013 at 7:38 pm
    Jan 19, 2014 at 3:39 pm
  • I have data that provide longitude, latitude, and local date and time but no information about the corresponding time zone. How to identify the time zone so they can be converted to a common ...
    Carlisle thackerCarlisle thacker
    Sep 20, 2013 at 3:02 pm
    Sep 24, 2013 at 7:09 am
  • For example: a <- 1 f <- function(b){ return(a+b) } when we call function f(2), r will search the local environment first, if it cannot find a, it will search global environment, and return 3. How to ...
    Gang PengGang Peng
    Sep 12, 2013 at 7:56 pm
    Sep 13, 2013 at 12:49 am
  • Hi, You could try: A<- matrix(unlist(read.table(text=" 1 2 3 4 5 6 7 8 9 9 8 7 6 5 4 3 2 1 ",sep="",headerúLSE)),ncol=3,byrowúLSE,dimnames=NULL) library(matrixStats) ...
    ArunArun
    Sep 2, 2013 at 2:25 pm
    Sep 2, 2013 at 9:01 pm
  • Hi, May be this helps: m1<- as.matrix(read.table(text=" y1 g24 y1 0 1 g24 1 0 ",sep="",header=TRUE)) m2<-as.matrix(read.table(text="y1 c1 c2 l17 ?y1 0 1 1 1 ?c1 1 0 1 1 ?c2 1 1 0 1 ?l17 1 1 1 ...
    ArunArun
    Sep 5, 2013 at 8:09 pm
    Sep 21, 2013 at 3:32 pm
  • Hi everyone. I'm currently translating some Matlab code into R. However, I realized that the hsit function produce different results in both languages. in Matlab, hist(1:10, 10) will produce 10 bins ...
    Philippe massicottePhilippe massicotte
    Sep 4, 2013 at 6:34 pm
    Sep 5, 2013 at 2:41 pm
  • Hi there, I am trying to apply multinomial Logit for a panel data set. I have 5016 observations for 22 countries (id). Each country has 228 observations over time domain. Following table shows the ...
    RoseRose
    Sep 4, 2013 at 11:55 am
    Sep 17, 2013 at 2:08 pm
  • I have a package with more than 100 datasets, each of which has an \examples{} section. On the plus side, these example test the "R ecosystem" to make sure that everything is working (both my package ...
    Kevin WrightKevin Wright
    Sep 3, 2013 at 2:49 pm
    Sep 4, 2013 at 1:02 pm
  • R-helpers: I'm running a file search on my entire drive (Mac OS X) using: files_found <- list.files(dir="/",pattern=somepattern,recursive=TRUE,full.names=TRUE) where somepattern is a search pattern ...
    Jonathan GreenbergJonathan Greenberg
    Sep 27, 2013 at 7:13 pm
    Dec 5, 2013 at 5:20 am
  • Hi experts, If I test sin(pi) in r, it returns me 1.224606e-16 Why doesn't return me 0?
    Babak BastanBabak Bastan
    Sep 26, 2013 at 7:31 am
    Sep 26, 2013 at 2:17 pm
  • Dear R users, I have a function I created to generate randomized block designs given below. Once I generate the design, I would like to plot it in a rectangular form to mimic the excel style where ...
    LazLaz
    Sep 22, 2013 at 5:07 am
    Sep 23, 2013 at 3:01 pm
  • Greetings, I am in great anguish as the routine stats::optim shows unexplicable behaviour of various sorts. For one it is immune to the choice of optimization method and seems to always do the same ...
    Michael MeyerMichael Meyer
    Sep 3, 2013 at 1:08 pm
    Sep 5, 2013 at 2:52 pm
  • I am trying to plot points on a map for each ship locations (lat/long), where each point is a line whose angle (degrees) denotes ships heading and whose line length denotes it's speed. Unfortunately ...
    Conor RyanConor Ryan
    Sep 27, 2013 at 6:56 pm
    Sep 28, 2013 at 11:31 am
  • Hi, I have a set of x, y points where x represents dates and y actual values. I am trying to plot a line graph of the data with points on top, but R is connecting the wrong points with lines. Does ...
    Shane CareyShane Carey
    Sep 26, 2013 at 5:56 pm
    Sep 27, 2013 at 2:35 pm
  • Hi, I am trying to clearly show the values in the x-axis in the attached graph. The tick marks are too close and the labels are blurred ...
    Mohan RadhakrishnanMohan Radhakrishnan
    Sep 25, 2013 at 7:10 am
    Sep 27, 2013 at 12:14 pm
  • Now? dput(gg) list(structure(list(coefficients = structure(c(1, 0.0747202722085956, 0.359646782818708, 0.298384925903065, -0.443967849195675), .Names = c("x0", "x", "xx", "y", "yy")), residuals = ...
    Eliza bottoEliza botto
    Sep 11, 2013 at 2:43 pm
    Sep 19, 2013 at 10:39 pm
  • Hi all: I met a question about "lines". attach(cars) plot(dist ~ speed) #add the regression line to the plot lines(fitted(lm(dist~speed)) ~ speed) plot(dist ~ speed) #what kind of curve does the ...
    MengMeng
    Sep 17, 2013 at 12:06 pm
    Sep 19, 2013 at 2:01 am
  • Hi, when I generate query using sqldf library, like this: query = paste(paste("select * from tbl_user where student_id = ", id, sep=""), " order by date_time", sep="") student <- sqldf(query) ...
    Srecko joksimovicSrecko joksimovic
    Sep 17, 2013 at 4:03 pm
    Sep 17, 2013 at 6:26 pm
  • I am trying to figure out how to create a loop that will take the difference of each member of a vector from each other and also spit out which one has the least difference. I do not want the vector ...
    Michael BudnickMichael Budnick
    Sep 10, 2013 at 8:06 pm
    Sep 13, 2013 at 3:42 am
  • Hello, I have a problem with creating an identity matrix for glmnet by using the contrasts function. I have a factor with 4 levels. When I create dummy variables I think there should be n-1 variables ...
    E JoffeE Joffe
    Sep 13, 2013 at 9:15 am
    Sep 24, 2013 at 8:58 am
  • Hi there, Can anyone explain this function, I have the function for the covariance and I need to write the transformation to correlation (no worries, I am doing this for myself, not for credit) ...
    Guy WachsmanGuy Wachsman
    Sep 18, 2013 at 2:48 am
    Sep 19, 2013 at 6:14 pm
  • I am trying to upgrade to R 3.0.1, and I am working on ubuntu. Apparently, the new version is available in the following ppa: https://launchpad.net/~marutter/+archive/c2d4u. I have added this ppa to ...
    Andrew Crane-DroeschAndrew Crane-Droesch
    Sep 15, 2013 at 4:51 pm
    Sep 16, 2013 at 11:22 am
  • input: [1] 0.854400 1.648465 1.829830 1.874704 7.670915 7.673585 7.722619 [1] 1 3 5 7 9 expected output: [1] 1 4 4 4 7 That is, need a vector of indexes of the maximum value below the threshold ...
    Zhang WeiwuZhang Weiwu
    Sep 13, 2013 at 10:13 am
    Sep 13, 2013 at 4:50 pm
  • Hello All, I am trying to build a model in R. I am facing the following problem... My Data Frame contains the following data... Date Value 08/01/2013 100 08/02/2013 100.5 08/03/2013 102 .... Now I ...
    Ankur SethAnkur Seth
    Sep 7, 2013 at 5:06 am
    Sep 7, 2013 at 2:20 pm
  • I have a Data Frame that contains, between other things, the following fields: userX, Time1, Time2, Time3. The number of observations is 2000. I have a function that has as inputs userX, Time1, ...
    Ignacio MartinezIgnacio Martinez
    Sep 1, 2013 at 2:00 pm
    Sep 1, 2013 at 9:45 pm
  • Dear List, I want to compare the presence and absence of bird species based on the sites in a matrix. The matrix has 5 rows for Island A, B, C, D, and E. It has 100 columns for bird species ...
    Elaine KuoElaine Kuo
    Sep 27, 2013 at 10:48 am
    Sep 28, 2013 at 2:31 pm
  • I have been developing a new package (TinnRcom) to avoid the necessity of any script (as below) in the Rprofile.site file related to the use of Tinn-R Editor and R ...
    Jose Claudio FariaJose Claudio Faria
    Sep 23, 2013 at 6:55 pm
    Sep 24, 2013 at 10:50 am
  • I have a large data frame with 2,000 rows and 600 columns. I can write loops to solve a smaller problem, but I need a better strategy for this data frame. Below is a simple example with just two ...
    Ira SharenowIra Sharenow
    Sep 21, 2013 at 3:30 pm
    Sep 22, 2013 at 3:15 pm
  • [1] FALSE FALSE TRUE FALSE TRUE TRUE FALSE FALSE FALSE TRUE but what I wish to get is: [1] 3 2 1 4 let me explain: 3 # [1:3] ends with TRUE, i.e. FALSE FALSE TRUE 2 # [4:5] ends with TRUE, i.e. FALSE ...
    GildororonarGildororonar
    Sep 17, 2013 at 10:15 am
    Sep 18, 2013 at 1:35 am
  • Hi all, I have a shiny app, in which I want to use rgl's snapshot function. I am running Xvfb on my server so that rgl works. I start my shiny app as follows: echo "Checking for Xvfb..." pgrep -U ...
    Andreas MaunzAndreas Maunz
    Sep 10, 2013 at 2:58 pm
    Sep 17, 2013 at 7:01 am
  • Hi, Working with R, I often want to copy and paste some values somewhere else. (Its not worth saving a CSV file for a dozen or so entries.) Or, I may want to copy all the names of an object into some ...
    Noah SilvermanNoah Silverman
    Sep 4, 2013 at 9:56 pm
    Sep 16, 2013 at 4:13 pm
  • Hi, I am able to create a graph with this code but the decimal numbers are not plotted accurately because the ylim values are not set properly. x-axis is proper. How do I accurately set the ylim for ...
    Mohan RadhakrishnanMohan Radhakrishnan
    Sep 5, 2013 at 1:22 pm
    Sep 10, 2013 at 1:11 pm
  • Hello, can it be that xyplot does not support the lwd argument? At least here, the following still shows thin lines, as opposed to the regular plot command: xyplot(Sepal.Length ~ Sepal.Width, data = ...
    Daniel HornungDaniel Hornung
    Sep 4, 2013 at 8:45 pm
    Sep 9, 2013 at 6:42 am
  • I am working with Sweave and would like to print out into my latex document the result of the R command version$platform So what I first tried in my .Rnw document was ...
    David EpsteinDavid Epstein
    Sep 2, 2013 at 3:38 pm
    Sep 2, 2013 at 10:21 pm
  • Hello, I am mildly annoyed each time I use a PDF doc of an R package that the table of contents hyperlinks are *only* on the page numbers. To activate a hyperlink, one must carefully scan sideways ...
    Ben HarrisonBen Harrison
    Sep 26, 2013 at 3:38 am
    Sep 27, 2013 at 7:21 pm
  • Hello, I have a large data set that includes many soil parameters (i.e. pH, calcium levels, enzyme activity, etc) Does anyone have any input as to the easiest way to check a large data set for ...
    StericSteric
    Sep 24, 2013 at 4:44 pm
    Sep 25, 2013 at 11:08 pm
  • I am tryin to perform an arcsine transformation on my data containig percentages as the dep. variable. Does anyone have a code that I could use to do that? I am relatively new to R. Thanks for your ...
    PeakePeake
    Sep 22, 2013 at 11:13 pm
    Sep 24, 2013 at 9:21 am
  • Hi there, I plot a simple plot with the following code: plot (rnorm(1:10), type = "b") legend("top", "test", lty = 1, pch = 21) The result is something wired for the line crosses the point in the ...
    Jinsong ZhaoJinsong Zhao
    Sep 23, 2013 at 3:54 am
    Sep 23, 2013 at 3:04 pm
  • Hello, All: What do you recommend for reading a Google Spreadsheet into R? I didn't find anything useful using library(sos); findFn('google spreadsheet'). I can solve the problem by downloading the ...
    Spencer GravesSpencer Graves
    Sep 4, 2013 at 10:12 pm
    Sep 22, 2013 at 1:09 am
  • Hi I have a dataframe Df1 dput(Df1) structure(list(Mat = c(141, 141, 157, 157, 188, 188, 232, 232, 253, 253, 253, 254, 254, 254, 254, 256, 256, 264, 264), Prenom = c("Pierre", "Pierre", ...
    Arnaud MichelArnaud Michel
    Sep 17, 2013 at 6:14 pm
    Sep 18, 2013 at 6:11 am
  • I've got two data frames, as shown below: (NR means Number of Record) NR length 1 100 2 130 3 150 4 148 5 100 6 83 7 60 NR factor 1 3 2 4 4 8 7 9 And I intend to obtain the following skip-table: NR ...
    Zhang WeiwuZhang Weiwu
    Sep 12, 2013 at 5:17 pm
    Sep 18, 2013 at 2:09 am
  • I have a dataset which has several predictor variables and a dependent variable, "score" (which is numeric). The score for each row is calculated using a formula which uses some of the predictor ...
    Saumya GuptaSaumya Gupta
    Sep 14, 2013 at 8:12 pm
    Sep 16, 2013 at 8:30 pm
  • I need to put labels in plot in R. Can someone please help? The labels are in the excel file and loaded into "lables" library(xlsx) library(zoo) fPTAnalysis<-"Input.xls" ...
    Ankur SethAnkur Seth
    Sep 15, 2013 at 3:37 pm
    Sep 16, 2013 at 6:32 pm
  • Hi I have the following problem : I have 3 vectors xx, yy, zz : xx <- c(5479, 6209, 6940, 7670, 8766, 9496, 10227, 11048, 11778, 12509, 13239, 13970, 14700, 15340, 15948) yy <- c( 267, 275, 281, 287, ...
    Arnaud MichelArnaud Michel
    Sep 16, 2013 at 6:42 am
    Sep 16, 2013 at 8:10 am
  • So we have: force condition 1 0.03515542 1 2 0.13267882 13 3 0.26155689 24 4 0.37453142 38 5 0.39360520 45 <--- trim everything after this 6 0.43924737 48 7 0.47669800 50 8 0.57044795 51 9 0.81177499 ...
    GildororonarGildororonar
    Sep 14, 2013 at 4:35 pm
    Sep 15, 2013 at 5:49 am
  • Dear subscribers of r-help, I would like to know your opinion about a privacy problem that I recently had after publishing to this list. Not a long time ago, I requested to the administrators of this ...
    John GonzalezJohn Gonzalez
    Sep 12, 2013 at 1:40 pm
    Sep 12, 2013 at 7:22 pm
  • Hi, I have a data.frame with dimension 336x336 called *training*, and another one called *observation* which is 336x1. I combined them as one table using table=data.frame(training, observation) ...
    Paulito PalmesPaulito Palmes
    Sep 11, 2013 at 7:04 am
    Sep 12, 2013 at 2:47 pm
  • I'm sure this has been answered before but alas my googlefoo is not that strong. I have several .Rdata files with a single object in them. I need to set the class of the object to "myClass" ...
    Davis, BrianDavis, Brian
    Sep 10, 2013 at 7:54 pm
    Sep 11, 2013 at 10:02 am
  • R-helpers: One of my intrepid students came up with a solution to a problem where they need to write a function that takes a vector x and a "scalar" d, and return the indices of the vector x where x ...
    Jonathan GreenbergJonathan Greenberg
    Sep 10, 2013 at 7:40 pm
    Sep 11, 2013 at 12:21 am
Group Navigation
period‹ prev | Sep 2013 | next ›
Group Overview
groupr-help @
categoriesr
discussions452
posts1,450
users436
websiter-project.org
irc#r

436 users for September 2013

Arun: 171 posts David Winsemius: 43 posts Duncan Murdoch: 42 posts Bert Gunter: 40 posts Pascal Oettli: 26 posts William Dunlap: 26 posts Rui Barradas: 25 posts Ista Zahn: 24 posts Berend Hasselman: 22 posts Jeff Newmiller: 21 posts Jim Lemon: 21 posts PIKAL Petr: 21 posts Simon Zehnder: 18 posts Prof Brian Ripley: 17 posts Mohan Radhakrishnan: 15 posts Rolf Turner: 15 posts Ben Bolker: 13 posts Arnaud Michel: 12 posts Greg Snow: 12 posts Sarah Goslee: 12 posts
show more
Archives