My goal is to create a new dataframe with 3 columns using cbind
.
However, each time I try it turns into a chr, not a data.frame.
L_bw_visit <- c(24.68130, 175.1266, 1.47421, 2.714970, 2.080063, 42.06174, 17.29546,
51.98034, 0.8140756, 0.7157895)
S_bw_visit <- c(29.26038, 120.9192, 5.04845, 3.742081, 3.654214, 37.53483, 21.65989,
44.27059, 4.5231854, 3.0566597)
Species_bw <- c("Central American Spiny rat", "Common opossum","Agouti", "White-nosed coati",
"Northern tamandua","Nine-banded armadillo", "Lowland paca", "Ocelot",
"Red brocket deer", "Collared peccary")
paired_bw_visit<- cbind(Species_bw, L_bw_visit, S_bw_visit)
Somebody knows what I should do differently to create a dataframe?