I want to replace one row with other information in the dataframe. For
example:
> cb04.full[1:5,]
tag sp gx gy dbh codes status branch species lifestyle *family*genera
1 10101 COMA 1.64 1.54 1.2 10111 alive 0 $BLS?:(B COMA *COMA*
COMA
2 10102 COMA 2.05 2.45 1.5 10111 alive 0 $BLS?:(B COMA *COMA*
COMA
3 10103 ACBA 0.40 3.20 1.0 10111 alive 0 $BdHLS\e(B ACBA ACBA
ACBA
4 10104 ACBA 0.46 4.45 2.5 10111 alive 0 $BdHLS\e(B ACBA ACBA
ACBA
5 10104 ACBA 0.46 4.45 1.2 10111 alive 1 $BdHLS\e(B ACBA ACBA
ACBA
> sp.basic[36:40,]
ts sp Family Genera
36 36 *COMA* *Betulaceae* Corylus
37 37 CRMA Rosaceae Crataegus
38 38 EUAL Celastraceae Euonymus
39 39 EUMA Celastraceae Euonymus
40 40 EUPA Celastraceae Euonymus
*When family="COMA" in "cb04.full", I want to replace
"COMA" in "family"
with "Betulaceae" in "sp.basic$Family".*
**
*Thanks!*
[[alternative HTML version deleted]]