[R] diff question

2015-01-11 Thread Troels Ring
R version 3.1.1 (2014-07-10) -- Sock it to Me Copyright (C) 2014 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) Dear friends - I have a small problem with diff (I guess) I made a sequence with fixed interval between consecutive elements - and hence thought

Re: [R] diff question

2015-01-11 Thread Rolf Turner
See FAQ 7.31. cheers, Rolf Turner On 11/01/15 21:29, Troels Ring wrote: R version 3.1.1 (2014-07-10) -- Sock it to Me Copyright (C) 2014 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) Dear friends - I have a small problem with diff (I guess) I made a

Re: [R] diff question

2015-01-11 Thread Ted Harding
Troels, this is due to the usual tiny difference between numbers as computed by R and the numbers that you think they are! tt - seq(0,20,by=0.02) dtt - diff(tt) length(dtt) # [1] 1000 r02 - rep(0.02,1000) unique(r02 - dtt) # [1] 0.00e+00 3.469447e-18 -3.469447e-18

[R] how to sort a column with numbers and characters

2015-01-11 Thread raz
Hi, I would like to sort a data frame by a column, the column to sort by has a list of numbers 1:150 (a few numbers are missing so the total is 137) and two letters S , Z. How can I sort it so that first I have the numbers in running order (1,2,3,...150) and then the letters S and Z? the column

Re: [R] R vs. RStudio?

2015-01-11 Thread Duncan Murdoch
On 10/01/2015 9:22 PM, Boris Steipe wrote: Could someone kindly enlighten me whether there are currently advantages to use R Studio vs. the normal R GUI? On the Mac I can't seem to find anything compelling, on Windows (which I don't use myself) I noticed last year that there seems to be no

Re: [R] diff question

2015-01-11 Thread Ted Harding
I should have added an extra line to the code below, to complete the picture. Here it is (see below line ##. Ted. On 11-Jan-2015 08:48:06 Ted Harding wrote: Troels, this is due to the usual tiny difference between numbers as computed by R and the numbers that you think they are! tt

Re: [R] R vs. RStudio?

2015-01-11 Thread David Stevens
There are other R-friendly editors too. Tinn-R and Notepad++ come to mind. On 1/10/2015 11:04 PM, billy am wrote: I concur. Pls try it. -- | http://billyam.com || http://use-r.com || http://shinyserver.com

[R] Interview questions?

2015-01-11 Thread Keith S Weintraub
Folks, I was wondering if anyone has put together a list of R job interview questions? I’m thinking of about 5-20 possibly open ended questions for interviewing a candidate to do R programming. Just programming. Not statistics or mathematics. What I don’t want are tricky “puzzles” that are

Re: [R] Question about package principal

2015-01-11 Thread David Winsemius
On Jan 11, 2015, at 3:55 AM, 오건희 wrote: Hi, I tried to run principal function in the 'psych' package, but it failed to do.. here is both my code and error message. I searched on the web, but couldn't find the exact answer I wanted. data-read.csv(

Re: [R] R for organization

2015-01-11 Thread billy am
Actually I would be interested to know which are the organisations that does not allow R. -- | http://billyam.com || http://use-r.com || http://shinyserver.com (BETA) SAS Certified Base Programmer for SAS 9

Re: [R] R vs. RStudio?

2015-01-11 Thread Rick / rrsanbar
I have four years in the R trenches, and code in R on the Ubuntu command line and the Windows R GUI. Here is an RStudio comparative overview: In the absence of Rstudio, to construct and debug a script I need: 1) A programmer's editor (such as VIM (bad) or Bluefish (better)), in which I

Re: [R] Interview questions?

2015-01-11 Thread Rich Shepard
On Sun, 11 Jan 2015, Keith S Weintraub wrote: I was wondering if anyone has put together a list of R job interview questions? I’m thinking of about 5-20 possibly open ended questions for interviewing a candidate to do R programming. Just programming. Not statistics or mathematics. Keith,

[R] nonmonotonic glm?

2015-01-11 Thread Stanislav Aggerwal
I have the following problem. DV is binomial p IV is quantitative variable that goes from negative to positive values. The data look like this (need nonproportional font to view): o o o o o o o o

[R] Question about package principal

2015-01-11 Thread 오건희
Hi, I tried to run principal function in the 'psych' package, but it failed to do.. here is both my code and error message. I searched on the web, but couldn't find the exact answer I wanted. data-read.csv( https://raw.githubusercontent.com/mylesmharrison/delta_PCA_kmeans/master/delta.csv

Re: [R] Interview questions?

2015-01-11 Thread Spencer Graves
1. What have they done in the way of R package development? If they've done that, then you can review packages they've worked on and ask questions about that (the package development process as well as the documentation they wrote) to see if that's of sufficient quality. 2. What do they

Re: [R] Interview questions?

2015-01-11 Thread Barry Rowlingson
Ask if they have a favourite R programmer. This will tell you how much into the R culture they are, and perhaps also tell you if their opinions of a good programmer concur with yours... On 11 Jan 2015 16:49, Keith S Weintraub kw1...@gmail.com wrote: Folks, I was wondering if anyone has put

Re: [R] how to sort a column with numbers and characters

2015-01-11 Thread William Dunlap
Change that column to be a factor with the levels in the order that you wish. dataFrame$column - factor(dataFrame$column, levels=c(1:150, S, Z)) Then it will sort in that order. E.g., d - data.frame(One=c(5,21,10,Z,S,9), Two=2^(1:6)) d[order(d$One),] One Two 3 10 8 2 21 4

Re: [R] Interview questions?

2015-01-11 Thread Robert Sherry
Here is a question that I might ask. What are the alternatives to R and how does R compare? That is, for what class of problems is R the best tool around? Bob On 1/11/2015 1:16 PM, Barry Rowlingson wrote: Ask if they have a favourite R programmer. This will tell you how much into the R

Re: [R] R vs. RStudio?

2015-01-11 Thread jwd
On Sat, 10 Jan 2015 21:22:56 -0500 Boris Steipe boris.ste...@utoronto.ca wrote: Could someone kindly enlighten me whether there are currently advantages to use R Studio vs. the normal R GUI? On the Mac I can't seem to find anything compelling, on Windows (which I don't use myself) I noticed

Re: [R] nonmonotonic glm?

2015-01-11 Thread Marc Schwartz
On Jan 11, 2015, at 4:00 PM, Ben Bolker bbol...@gmail.com wrote: Stanislav Aggerwal stan.aggerwal at gmail.com writes: I have the following problem. DV is binomial p IV is quantitative variable that goes from negative to positive values. The data look like this (need nonproportional

Re: [R] R-help Digest, Vol 143, Issue 10

2015-01-11 Thread Ronald Wyllys
This follows up on Duncan Murdock's reply to Boris Steipe's question about possible advantages to using RStudio. I agree with Mr. Murdock's list of advantages of RStudio, but disagree mildly with his comment about feeling that the tiled display provides too little space. When I use RStudio,

Re: [R] R vs. RStudio?

2015-01-11 Thread S Ellison
David Stevens [david.stev...@usu.edu] wrote: There are other R-friendly editors too. Tinn-R and Notepad++ come to mind. TextPad also has an R syntax file. S Ellison *** This email and any attachments are confidential. Any

[R] two-sample KS test: data becomes significantly different after normalization

2015-01-11 Thread Monnand
Hi all, This question is sort of related to R (I'm not sure if I used an R function correctly), but also related to stats in general. I'm sorry if this is considered as off-topic. I'm currently working on a data set with two sets of samples. The csv file of the data could be found here:

Re: [R] nonmonotonic glm?

2015-01-11 Thread Ben Bolker
If you're going to use splines, another possibility is mgcv::gam (also part of standard R installation) require(mgcv) gam(DV ~ s(IV), data= YourDataFrame, family=binomial) this has the advantage that the complexity of the spline is automatically adjusted/selected by the fitting algorithm

Re: [R] R vs. RStudio?

2015-01-11 Thread Jeff Newmiller
The RStudio editor itself is pretty mediocre. It is the context sensitive tab-completion with as-you type help that sells it to me anyway. That, with debugging and roxygen and knitr support really make it worth looking at.

[R] curves naming in fda object

2015-01-11 Thread Poonam Rathi
When creating fda object of 50 curves, how to label all curves so that information can be tracked with all curves? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] nonmonotonic glm?

2015-01-11 Thread Ben Bolker
Stanislav Aggerwal stan.aggerwal at gmail.com writes: I have the following problem. DV is binomial p IV is quantitative variable that goes from negative to positive values. The data look like this (need nonproportional font to view): [snip to make gmane happy] If these data were

[R] Change of locale

2015-01-11 Thread Chel Hee Lee
Could anyone kindly guide me how to change locale? Any advice would be greatly appreciated. What I am trying to do is to see if messages are correctly in a given locale. The environment variables are: sessionInfo() R version 3.1.2 (2014-10-31) Platform: x86_64-pc-linux-gnu (64-bit)

[R] list of vectors which are part of an initial vector

2015-01-11 Thread Stefano Sofia
Dear list users, given for example the vector a - c(1:5), which is the easiest way to create a list of 5 vectors with three elements each apart from the head and the tail, like 1 2 1 2 3 2 3 4 3 4 5 4 5 ? I tried to use the split command, with no success. Could somebody show me hints for an