On Nov 4, 2011, at 7:33 PM, clint wrote:
> most all those posts were right in sourcing the problemits just that
> nobody actually offered a viable solution
Very few problems that are posed with a test dataset go unanswered.
>
> the problem is that the new level "C" was not one of the
most all those posts were right in sourcing the problemits just that
nobody actually offered a viable solution
the problem is that the new level "C" was not one of the original levels in
$social status
add "C" as a level and then just do the ol fashioned way and it works just
fine
do this:
d
Dear Peter,
Thank you for the explanations. Some further questions are inlined below.
Best regards,
Craig
Peter Dalgaard wrote:
Craig P. Pyrame wrote:
Stavros Macrakis wrote:
It gives me a headache, too! I think you'll have to wait for a more
expert user than me to supply explanations of th
Craig P. Pyrame wrote:
Stavros Macrakis wrote:
It gives me a headache, too! I think you'll have to wait for a more
expert user than me to supply explanations of these behaviors and
their rationales.
Thanks, Stavros. I hope someone with expertise will shed more light on
this, and in the m
Stavros Macrakis wrote:
It gives me a headache, too! I think you'll have to wait for a more
expert user than me to supply explanations of these behaviors and
their rationales.
Thanks, Stavros. I hope someone with expertise will shed more light on
this, and in the meantime I'll try to lear
It gives me a headache, too! I think you'll have to wait for a more
expert user than me to supply explanations of these behaviors and
their rationales.
-s
On 6/26/09, Craig P. Pyrame wrote:
> Stavros Macrakis wrote:
>> On Thu, Jun 25, 2009 at 12:47 PM, Craig P. Pyrame
>> wrote:
>>
Stavros Macrakis wrote:
On Thu, Jun 25, 2009 at 12:47 PM, Craig P. Pyrame wrote:
The man page Stavros quotes states that the class attribute of the result is
taken from 'test', which clearly is not the case:
Actually, the behavior is documented pretty clearly:
The mode of the ans
On Thu, Jun 25, 2009 at 12:47 PM, Craig P. Pyrame wrote:
> The man page Stavros quotes states that the class attribute of the result is
> taken from 'test', which clearly is not the case:
Actually, the behavior is documented pretty clearly:
The mode of the answer will be coerced from logical
Dear Rolf,
Rolf Turner wrote:
On 25/06/2009, at 12:27 PM, Craig P. Pyrame wrote:
Dear Stavros,
What you discuss below is somewhat scary to me as an R newbie. Is this
just an incident, a bug perhaps, or rather the way things typically go
in R, as your "Welcome to R!" seems to suggest? I ha
Erratum:
> ifelse(TRUE,dd,dd) => 1230786000 (class numeric)
should be
ifelse(TRUE,tt,tt) => 1230786000 (class numeric)
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.
On Wed, Jun 24, 2009 at 9:04 PM, Rolf Turner wrote:
> Do not get your knickers in a twist. R works simply and straightforwardly
> in simple straightforward situations.
Though I find R an incredibly useful tool, alas, it is simply not true
that "R works simply and straightforwardly in simple str
This sort of experience is why 'The R Inferno'
came into existence.
Patrick Burns
patr...@burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of "The R Inferno" and "A Guide for the Unwilling S User")
Craig P. Pyrame wrote:
Dear Stavros,
What you discuss below is somewhat scar
On 25/06/2009, at 12:27 PM, Craig P. Pyrame wrote:
Dear Stavros,
What you discuss below is somewhat scary to me as an R newbie. Is
this
just an incident, a bug perhaps, or rather the way things typically go
in R, as your "Welcome to R!" seems to suggest? I have just
started to
learn R
Dear Stavros,
What you discuss below is somewhat scary to me as an R newbie. Is this
just an incident, a bug perhaps, or rather the way things typically go
in R, as your "Welcome to R!" seems to suggest? I have just started to
learn R, and my initial euphoria of the "I can do anything with
On Wed, Jun 24, 2009 at 12:34 PM, Mark Na wrote:
> The problem is that after running the ifelse statement, data$SOCIAL_STATUS
> is converted from a factor to a character.
> Is there some way I can avoid this conversion?
I'm afraid that ifelse has very bizarre semantics when the yes and no
argument
Explicitly convert it to a factor...
data$SOCIAL_STATUS<-factor(ifelse(data$SOCIAL_STATUS=="B" & data$MALE>4,
"C", data$SOCIAL_STATUS))
However, note that this would, in general, change the levels attribute to
the levels actually present in the converted vector. If you wish to (and it
makes sense
You can work with levels of factor:
levels(DF$SOCIAL_STATUS)[DF$MALE > 4 & DF$SOCIAL_STATUS == "B"] <- "C"
On Wed, Jun 24, 2009 at 1:34 PM, Mark Na wrote:
> Hi R-helpers,
>
> Please see the below R output.
> The problem is that after running the ifelse statement, data$SOCIAL_STATUS
> is convert
17 matches
Mail list logo