{"action":"created","issue":{"url":"https://api.github.com/repos/ss3sim/ss3sim/issues/227","repository_url":"https://api.github.com/repos/ss3sim/ss3sim","labels_url":"https://api.github.com/repos/ss3sim/ss3sim/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/ss3sim/ss3sim/issues/227/comments","events_url":"https://api.github.com/repos/ss3sim/ss3sim/issues/227/events","html_url":"https://github.com/ss3sim/ss3sim/issues/227","id":149370912,"number":227,"title":"Apparent typo in `change_data.r` function ","user":{"login":"awhitten","id":4185334,"avatar_url":"https://avatars.githubusercontent.com/u/4185334?v=3","gravatar_id":"","url":"https://api.github.com/users/awhitten","html_url":"https://github.com/awhitten","followers_url":"https://api.github.com/users/awhitten/followers","following_url":"https://api.github.com/users/awhitten/following{/other_user}","gists_url":"https://api.github.com/users/awhitten/gists{/gist_id}","starred_url":"https://api.github.com/users/awhitten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awhitten/subscriptions","organizations_url":"https://api.github.com/users/awhitten/orgs","repos_url":"https://api.github.com/users/awhitten/repos","events_url":"https://api.github.com/users/awhitten/events{/privacy}","received_events_url":"https://api.github.com/users/awhitten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-19T07:19:10Z","updated_at":"2016-04-19T14:36:10Z","closed_at":null,"body":"Lines 335 and 336 in `change_data.r` seem to have a typo. I got this error and it had me confused for a while. I later worked out that `Nfleet` should probably (?) be `Nsurvey`, unless I'm misunderstanding something about the setup here. The code currently checks for the number of surveys, and then reports back on the number of fleets in the error message.\r\n\r\nCurrently code is: \r\n`if` (!identical(x$Nsurveys, 2))`\r\n    `stop(\"Nfleet in the SS3 data file must be set to 2.\")`\r\n\r\nSuggest change to:\r\n`if` (!identical(x$Nsurveys, 2))`\r\n    `stop(\"Nsurvey in the SS3 data file must be set to 2.\")`\r\n\r\nTagging @colemonnahan @seananderson and @kellijohnson at the suggestion of Cole. :+1: "},"comment":{"url":"https://api.github.com/repos/ss3sim/ss3sim/issues/comments/211950336","html_url":"https://github.com/ss3sim/ss3sim/issues/227#issuecomment-211950336","issue_url":"https://api.github.com/repos/ss3sim/ss3sim/issues/227","id":211950336,"user":{"login":"kellijohnson","id":4108564,"avatar_url":"https://avatars.githubusercontent.com/u/4108564?v=3","gravatar_id":"","url":"https://api.github.com/users/kellijohnson","html_url":"https://github.com/kellijohnson","followers_url":"https://api.github.com/users/kellijohnson/followers","following_url":"https://api.github.com/users/kellijohnson/following{/other_user}","gists_url":"https://api.github.com/users/kellijohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/kellijohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kellijohnson/subscriptions","organizations_url":"https://api.github.com/users/kellijohnson/orgs","repos_url":"https://api.github.com/users/kellijohnson/repos","events_url":"https://api.github.com/users/kellijohnson/events{/privacy}","received_events_url":"https://api.github.com/users/kellijohnson/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T14:36:10Z","updated_at":"2016-04-19T14:36:10Z","body":"I am not sure if we have actually ever tested the code to work with more than one fishery and one survey. Theoretically it is possible, but my guess is there will be a few bugs somewhere. Also, @seananderson added the code referenced above with 63664cbf9caddfec628cdb146048af7bd099bd78 "}}