The package fails when using tibbles rather than data frames as input.
library(ape)
library(coevolve)
library(tidyverse)
set.seed(1)
n <- 10
tree <- rcoal(n)
d <- tibble(
id = tree$tip.label,
x = rnorm(n),
y = rnorm(n)
)
m <- coev_fit(
data = d,
variables = list(
x = "normal",
y = "normal"
),
id = "id",
tree = tree
)
Error in `[.data.frame`(data, , id) : undefined columns selected
Tibbles should be converted to data frames at the beginning of the workflow.
The package fails when using tibbles rather than data frames as input.
Tibbles should be converted to data frames at the beginning of the workflow.