I have a dataframe like so
wood <- read_csv("/Users/name/Desktop/AR/Exercise data-20201109/woodstrength.csv")
I select x and y
x <- wood %>% select(Conc)
y <- wood %>% select(Strength)
The relationship can be modeled with a polynomial of degree 2 so I do
m <- lm(y ~ poly(x, 2, raw = TRUE))
which returns
non-numerical argument for binary operator
but x looks like this
> x
# A tibble: 19 x 1
Conc
<dbl>
1 1
2 1.5
3 2
4 3
5 4
6 4.5
7 5
8 5.5
9 6
10 6.5
11 7
12 8
13 9
14 10
15 11
16 12
17 13
18 14
19 15
What am I doing wrong?