Displaying 3 results from an estimated 3 matches for "trou".
Did you mean:
thou
2004 Sep 09
1
Indexing dataframe
...'d2004$stade".
I could do it just as follows:
> names(d2004)
[1] "Localite" "Date" "parcelle" "maille"
"presence.plant" "concentration" "stade.culture"
[8] "stade" "Trou" "Horizon" "Profondeur"
> d2004 <- d2004[, -c(6, 8)]
but I'd like to use column names (to avoid finding column numbers each
time).
I cannot find an easy way to operate...
I wonder why that works:
> d2004[, "concentration"]
and th...
2004 Sep 09
0
AW: Indexing dataframe
...uld do it just as follows:
>
> > names(d2004)
>
> [1] "Localite" "Date" "parcelle" "maille"
> "presence.plant" "concentration" "stade.culture"
> [8] "stade" "Trou" "Horizon" "Profondeur"
>
> > d2004 <- d2004[, -c(6, 8)]
>
> but I'd like to use column names (to avoid finding column
> numbers each time).
>
> I cannot find an easy way to operate...
>
> I wonder why that works:
&...
2005 Jun 28
1
Using data frames for EDA: Insert, Change name, delete columns? (Newcomer's question)
I am finding complex analyses easier than some elementary operations in
R. In particular I want to do some low level exploratory data analyses
with data in a data frame but cannot find commands to easily insert,
remove (delete), rename, and re-order (arbitrarily, not sort) columns.
I see that the micEcon package has an insertCol command, but that is for
matrices, not data frames. I have looked