0

I'm new to R so sorry if it's a simple question, how do I join the two databases, with the information of df1 as the first line and df2 as the second line.

df1<-structure(list(Lat = -23.7, Long = -49.7, 
    AB = 1), row.names = 1L, class = "data.frame")

> df1
        Lat      Long AB
1     -23.7     -49.7  1

df2<-structure(list(Lat = -23.8, Long = -49.6, 
    AB = 1), row.names = 1L, class = "data.frame")

> df2
     Lat  Long AB
1  -23.8 -49.6  1
  • For future reference: (1) `df1` and `df2` are **data frames**, not databases. (2) What you're doing here is **concatenating**, not joining which has a different meaning. – neilfws Aug 05 '22 at 01:24

1 Answers1

0

In this case, you can use

rbind(df1, df2)
WhatIf
  • 626
  • 4
  • 10