I have two dataframes with similar columns that I’m trying to perform a full_join in R.
dtc1.4 <- full_join(1.3, Matos.20s.data2)
However, I get the following error message:
Error in UseMethod(“full_join”) :
no applicable method for ‘full_join’ applied to an object of class “c(‘double’, ‘numeric’)”
I’m not sure what’s not lining up since I have the same class for the columns that are getting joined. Any advice?
Here are my 2 datasets:
'data.frame': 4766 obs. of 8 variables:
$ detection_timestamp_utc: chr "2021-05-11 15:00:00" "2021-05-11 15:00:00" "2021-05-11 15:00:00" "2021-05-11 15:00:00" ...
$ receiver_sn : chr "release" "release" "release" "release" ...
$ Transmitter : chr "A69-1602-49176" "A69-1602-49177" "A69-1602-49178" "A69-1602-49179" ...
$ Sensor Value : logi NA NA NA NA NA NA ...
$ Sensor Unit : chr NA NA NA NA ...
$ Station Name : chr "Brandywine Creek, DE" "Brandywine Creek, DE" "Brandywine Creek, DE" "Brandywine Creek, DE" ...
$ Latitude : num 39.8 39.8 39.8 39.8 39.8 ...
$ Longitude : num -75.6 -75.6 -75.6 -75.6 -75.6 ...
str(dtc1.3)
'data.frame': 54136 obs. of 13 variables:
$ detection_timestamp_utc: chr "2022-05-10 11:06:14" "2022-05-10 11:17:10" "2022-05-10 11:27:59" "2022-05-10 11:38:36" ...
$ Receiver : chr "VR2Tx-486334" "VR2Tx-486334" "VR2Tx-486334" "VR2Tx-486334" ...
$ Transmitter : chr "A69-1601-63308" "A69-1601-63308" "A69-1601-63308" "A69-1601-63308" ...
$ Transmitter Name : logi NA NA NA NA NA NA ...
$ Transmitter Serial : int NA NA NA NA NA NA NA NA NA NA ...
$ Sensor Value : num NA NA NA NA NA NA NA NA NA NA ...
$ Sensor Unit : chr NA NA NA NA ...
$ Station Name : chr "1" "1" "1" "1" ...
$ Latitude : num NA NA NA NA NA NA NA NA NA NA ...
$ Longitude : num NA NA NA NA NA NA NA NA NA NA ...
$ Transmitter Type : logi NA NA NA NA NA NA ...
$ Sensor Precision : logi NA NA NA NA NA NA ...
$ Detection : chr NA NA NA NA ...