On Tue, 30 Jun 2015, Rolf Turner wrote:
If you want a pointer to the correct syntax for subset(), try
help("subset")!!!
The syntax of your "extstream" function is totally screwed up, convoluted and
over-complicated. Note that even if you had your "subset" argument specified
correctly, the re
If you want a pointer to the correct syntax for subset(), try
help("subset")!!!
The syntax of your "extstream" function is totally screwed up,
convoluted and over-complicated. Note that even if you had your "subset"
argument specified correctly, the return() call will give you only the
resu
On Mon, 29 Jun 2015, David Winsemius wrote:
No. A pointer to the correct use of "[" is needed.
Thanks, David. This puts me on the the right path.
Much appreciated,
Rich
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https:/
On Tue, 30 Jun 2015, Steve Taylor wrote:
Using return() within a for loop makes no sense: only the first one will be
returned.
Steve,
Mea culpa. Didn't catch that.
How about:
alldf.B = subset(alldf, stream=='B') # etc...
I used to do each stream manually, like the above, and want to
On Jun 29, 2015, at 5:03 PM, Rich Shepard wrote:
> Moving from interactive use of R to scripts and functions and have bumped
> into what I believe is a problem with variable names. Did not see a solution
> in the two R programming books I have or from my Web searches. Inexperience
> with ess-tra
Well, your code is, ah, too incorrect to convey what you want out of this
effort. If I were to guess based on your description, you want all of the data,
not a subset. An example data frame containing what you hope to extract might
be helpful.
However, extracting subsets is rarely done for just
Steve
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rich Shepard
Sent: Tuesday, 30 June 2015 12:04p
To: r-help@r-project.org
Subject: [R] Subset() within function: logical error
Moving from interactive use of R to scripts and functions and have bumped
i
Moving from interactive use of R to scripts and functions and have bumped
into what I believe is a problem with variable names. Did not see a solution
in the two R programming books I have or from my Web searches. Inexperience
with ess-tracebug keeps me from refining my bug tracking.
Here's a
8 matches
Mail list logo