search for: gforist

Displaying 3 results from an estimated 3 matches for "gforist".

Did you mean: forest
2017 Nov 21
0
mystery "158"
Your data frame fam contains factors. Turn it into character strings using fam$Family = as.character(fam$Family) and try again. It may be helpful if you read up on R's factors, see ?factor. HTH, Peter On Tue, Nov 21, 2017 at 2:14 PM, Glen Forister <gforister at gmail.com> wrote: > This is a simple problem, but a mystery to me. > I'm trying to grab $Family "Scelionidae" from one dataframe and put it into > another dataframe occupied with NA in $Family. The result is a "158" ends > up there instead of Scelionidae...
2017 Nov 22
1
mystery "158"
...", "c", "d", "e"), class = "factor") Cheers Petr > -----Original Message----- > From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Peter > Langfelder > Sent: Wednesday, November 22, 2017 12:00 AM > To: Glen Forister <gforister at gmail.com> > Cc: R <r-help at r-project.org> > Subject: Re: [R] mystery "158" > > Your data frame fam contains factors. Turn it into character strings using > > fam$Family = as.character(fam$Family) > > and try again. It may be helpful if you read up...
2017 Nov 21
2
mystery "158"
This is a simple problem, but a mystery to me. I'm trying to grab $Family "Scelionidae" from one dataframe and put it into another dataframe occupied with NA in $Family. The result is a "158" ends up there instead of Scelionidae. Simply put fam$Family[1] <- least$Family[1] If I have made a mistake here, can somebody point it out. I've included the simple