Displaying 3 results from an estimated 3 matches for "experieenced".
Did you mean:
experienced
2017 Nov 22
1
mystery "158"
...r in data frame is changed to factor).
> temp2$fff[1]<-vec[1]
> head(temp2,2)
pokus minuty fff
1 T42 240 3
2 T42 300 <NA>
> temp2$fff<-vec
> head(temp2,2)
pokus minuty fff
1 T42 240 c
2 T42 300 c
>
> is.factor(vec[1])
[1] TRUE
I am not experieenced enough to explain what is happening but it is probably combination selection ?"[" and assignment ?"<-" operation.
I was not able to pinpoint explanation of this in help pages but maybe I only did not read it correctly.
dput(temp2)
temp2 <- structure(list(pokus = structur...
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
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