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

Add levels to as.list.dictionary2 #1661

Closed
koheiw opened this issue Apr 1, 2019 · 1 comment
Closed

Add levels to as.list.dictionary2 #1661

koheiw opened this issue Apr 1, 2019 · 1 comment
Assignees

Comments

@koheiw
Copy link
Collaborator

koheiw commented Apr 1, 2019

Without levels argument in the exported function, we can convert specific levels of a dictionary to a list only by quanteda:::flatten_dictionary().

@koheiw koheiw self-assigned this Apr 1, 2019
@koheiw
Copy link
Collaborator Author

koheiw commented Apr 2, 2019

as.list.dicitonary2() actually returns a hierarchical list (as it should). Then, we probably need add two arguments:

as.list(x, flatten = FALSE, levels = 1:50)

@kbenoit kbenoit closed this as completed Apr 3, 2019
@kbenoit kbenoit changed the title Add levels to as.list.dicitonary2 Add levels to as.list.dictionary2 Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants