Hello. I need to run a for-loop inside the other one:
f<-vector()
for (x in seq(1,2,0.1)){
for (k in seq(4,5,0.1)){
b<-5
f<-c(f,k*x+b)
}
}
However, when I run the code, only the outer loop works.
Coul you, please, tell me, where is the mistake in my code? And how can I fix it?