Re: [R] How to index the occasions in a vector repeatedly under condition 1? if not, it will give a new index.

2020-02-18 Thread Rui Barradas
Hello, First of all, a note about your reproducible example. When you write diff <- x - lag(x) there are two things to be said. 1. There is a base R function named 'diff', it is better to use another name. diff(x) #[1] 0 0 0 8 0 577 69 0 2. There are also several functions name

[R] How to index the occasions in a vector repeatedly under condition 1? if not, it will give a new index.

2020-02-18 Thread Lijun Zhao
Dear All, could you please help me how to get the output from the following example? x<-c(543, 543, 543, 543, 551 , 551 ,1128 ,1197, 1197) diff<-x-lag(x) diff [1] NA 0 0 0 8 0 577 69 0 how to index the occassions in x repeatedly if the diff>15? if not, it will give a new in

Re: [R] RSA package adjust alpha for a1-a4 confidence intervals

2020-02-18 Thread David Winsemius
On 1/23/20 12:19 PM, Christopher Steinman wrote: Hi, I'm not experienced with R at all. I'm using some canned code to produce RSA models in the RSA package. I'd like to be able to adjust the alpha for the a1-a4 confidence intervals. This doesn't appear to be a native option for the RSA pac

[R] Package httr::GET() question

2020-02-18 Thread Roy Mendelssohn - NOAA Federal via R-help
Hi All: I hav been trying to go through the code for httr::GET() but it is somewhat beyond what I know. What I am trying to find out is if all urls are automatically percent encoded, or whether the user needs to do that. Thanks, -Roy ** "The contents of this message do