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

print.sagelabel only print certain topics #274

Open
tlebryk opened this issue Jun 27, 2022 · 0 comments
Open

print.sagelabel only print certain topics #274

tlebryk opened this issue Jun 27, 2022 · 0 comments

Comments

@tlebryk
Copy link

tlebryk commented Jun 27, 2022

In functions like labeltopics, you can filter for specific topics. However, when using sageLabels, you cannot filter and must print information for every topic. This is a small suggestion to change print.sagelabel from:

print.sageLabels <- function(x, ...) {
  topicnums <- 1:x$K

to:

print.sageLabels<- function(x, topics=NULL, ...) {
  if(is.null(topics)) topics<- 1:x$K
  ...

and change topicnums to topics in every subsequent reference.

Happy to take a PR out with this change!

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

1 participant