I have the following dataframe:
class SyntacticDiversityTimeLine_T1 SyntacticDiversityTimeLine_T2 SyntacticDiversityTimeLine_T3 SyntacticDiversityTimeLine_T4 SyntacticDiversityTimeLine_T5 SyntacticDiversityTimeLine_T6
FieldWriter 0.022180734 0.037161135 0.0333365818 0.0293807746 0.0273657335 0.0218952546
ClassWriter 0.0220335244 0.0285103085 0.0345992136 0.0323371822 0.0303270617 0.0305631595
ClassReader 0.0287826545 0.0287826545 0.0287826545 0.0310223776 0.0337064784 0.0322547359
Memory 0.0131923306 0.0131923306 0.0131923306 0.0173490644 0.0216174768 0.0258896409
Evaluation 0.0128698165 0.0128698165 0.0145027452 0.0208119061 0.0285975251 0.0318768479
ICSSearch 0.0610376193 0.0610642137 0.0577870861 0.0497895971 0.0426232686 0.0350948706
ModelReader 0.0295225239 0.0363729355 0.0356058584 0.0350546489 0.0343149581 0.0334304414
I would like to replace the values in the columns SyntacticDiversityTimeLine_T1:SyntacticDiversityTimeLine_T6
with values from another dataframe. Note that in reality I have data from SyntacticDiversityTimeLine_T1:SyntacticDiversityTimeLine_T70
I tried something like this but didn't work:
df[df$SyntacticDiversityTimeLine_T1:df$SyntacticDiversityTimeLine_T70] <- otherdf[otherdf$SyntacticDiversityTimeLine_T1:otherdf$SyntacticDiversityTimeLine_T70]
How can I do that?