On 7/13/2009 10:21 AM, Mark Knecht wrote:
Thanks Jim.
How does one search the help system for info on simple logic like this?
Look in the manuals (the pdf ones), rather than the man pages. For
example, expressions like the ones below are in the Introduction to R,
section 2.4, Logical Vector
You can find the operators with:
?"|"
This will show you logical operators. You can do:
?"+"
to get the others.
On Mon, Jul 13, 2009 at 10:21 AM, Mark Knecht wrote:
> Thanks Jim.
>
> How does one search the help system for info on simple logic like this?
>
> On Mon, Jul 13, 2009 at 6:59 AM, j
Thanks Jim.
How does one search the help system for info on simple logic like this?
On Mon, Jul 13, 2009 at 6:59 AM, jim holtman wrote:
> 1) X <- subset(A, (t < 1000) | (t > 1200))
> 2) X <- subset(A, (t > 1000) & (t < 1200))
>
> On Mon, Jul 13, 2009 at 9:47 AM, Mark Knecht wrote:
>> How woul
1) X <- subset(A, (t < 1000) | (t > 1200))
2) X <- subset(A, (t > 1000) & (t < 1200))
On Mon, Jul 13, 2009 at 9:47 AM, Mark Knecht wrote:
> How would I write the two selections each in a single subset command?
>
> 1) Two non-overlapping time ranges I want to collect together - before
> 10AM an
How would I write the two selections each in a single subset command?
1) Two non-overlapping time ranges I want to collect together - before
10AM and after noon. Should be an OR function:
X = subset(A, t<1000) + subset(A, t>1200)
2) One range between two defined times like after 10AM and before
5 matches
Mail list logo