Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in as.double(y) with plot #7

Open
gianfilippo opened this issue Apr 19, 2023 · 4 comments
Open

Error in as.double(y) with plot #7

gianfilippo opened this issue Apr 19, 2023 · 4 comments

Comments

@gianfilippo
Copy link

Hi,

I am reporting the same error as another user.

when i run "plot(out,index.type="cluster.all",byPatient=F)", it happend to me "Error in as.double(y) : cannot coerce type 'S4' to vector of type 'double'". Someone can tell me how to resolve it?

I follow the step by step approach
obj <- new("Startrac",processed,aid="all")
obj <- calIndex(obj)
obj <- pIndex(obj)
where processed is a data.frame as required.

I also tried running the function
obj <- suppressWarnings(Startrac.run(processed, proj = "all", cores = NULL, n.perm = NULL, verbose = T))

The results is then same

Thanks

@gianfilippo
Copy link
Author

Hi,

I should add that I also went through the entire step by step approach, following your Startrac.run function.

Also, I see in the object the results for each individual. How do you derive the "total" or anyway the default object ? it does not seem to be the average index for each individual

Thanks

@Japrin
Copy link
Owner

Japrin commented May 12, 2023

Hi gianfilippo,

I think the bug has been fixed in the updated version. Hope you can try it again. Welcome any comments and reports.

Best Regards

@Maojie6509
Copy link

HI

I have reinstalled the latest version . But when i run "plot(out,index.type="cluster.all",byPatient=F)", The following error will still occur "Error in as.double(y) : cannot coerce type 'S4' to vector of type 'double'".

Thanks

@Joysaikouda
Copy link

ME too, how can I fix it z (x x)

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

No branches or pull requests

4 participants