Recent content by lucy0790

  1. L

    iteration using a loop in R

    Hi, I have two vectors as follows: popd = vector(mode='numeric', 100) popr = vector(mode='numeric', 100) These represent the initial distribution within 2 populations. I want to define these e.g. popd[]=0.01 popr[]=0.01 These populations will then transform according to the following...
  2. L

    how to create a vector from function outputs

    Hi everyone, I'm a complete beginner with R and am trying to use it for my maths project, however I'm getting stuck with what I reckon are some quite elementary things, just because I've never used it before and am teaching myself. This is what I have so far and what I am doing: popr =...