Skip to content

Use of cohort and spatial replication in basewin #32

Description

@gregor-fausto

At lines 128-129 in otherfunctions.R, in the basewin function, there's loop that runs through each cohort to handle the spatial replication. I'm troubleshooting my use of slidingwin and am reading through this part of code. My question is about these lines:

#Take a subset of the data for that cohort...
sub <- subset(data, cohort = i)

I get an error when I run this loop in isolation as is. Should this be a logical expression (cohort==i) so that the dataset is subset to current cohort in the loop? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions