-
Notifications
You must be signed in to change notification settings - Fork 3
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
view does not contain data #21
Comments
NB this example code with more than one table gives an error (now), can maybe be removed from the vignette then create a view, no variablesopal.table_create(o, "CNSIM", "CNSIM123", tables = c("CNSIM.CNSIM1", "CNSIM.CNSIM2", "CNSIM.CNSIM3")) |
A colleague found out that we need an additional "script" column in the variable dictionary. This statement now works: However, a statement with equality still does not work for me: can you please let me know the correct code here? |
NB: this code does work for a view with only one table, so the problem is in the view with multiple tables opal.table_view_update(o, "CNSIM", "CNSIM123", where = "$('GENDER').eq(1)") |
The |
Thank you for the information. Can you please address the issue that the entity filter does not work on multiple tables in one view? E.g. |
When referring to own derived variable (and not a source variable), you must use the $this accessor:
|
When creating a view, both in opalr 3.4.1 as in dev, I do not get to see data in the view or upon download. Same goes for your example. The variables and entity numbers are shown correctly, also after filtering on entities (e.g. where = "$('GENDER').eq(1)")
Am I missing something here?
get dictionary
dict <- opal.table_dictionary_get(o, project = "CNSIM", table = "CNSIM1")
create view
opal.table_view_create(o, "CNSIM", "CNSIM123",
c("CNSIM.CNSIM1", "CNSIM.CNSIM2", "CNSIM.CNSIM3"))
apply dictionary
opal.table_dictionary_update(o, project = "CNSIM", table = "CNSIM123", variables = dict$variables, categories = dict$categories)
Thank you very much for looking into this
The text was updated successfully, but these errors were encountered: