Skip to content

Initialize dscore as a list#1

Open
jdblischak wants to merge 1 commit intocorbinq:masterfrom
jdblischak:dscore-list
Open

Initialize dscore as a list#1
jdblischak wants to merge 1 commit intocorbinq:masterfrom
jdblischak:dscore-list

Conversation

@jdblischak
Copy link

When I tried running sumStats() with an example dataset, I got the following error:

ss <- sumStats(prefix)
## Error: invalid assignment for reference class field ‘dscore’, should be from
## class “list” or a subclass (was class “matrix”)invalid assignment for reference
## class field ‘dscore’, should be from class “list” or a subclass (was class
## “array”)

Since you specified that dscore should be a list:

"dscore" = "list",

I changed sapply() to lapply() to avoid simplifying the list to a matrix:

dscore = sapply(ds, function(x) x[-c(1:4)]),

After making this change, then I was able to import my example data with sumStats().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant