You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be difficult to read and write. We can write a function to convert a named list, or even a named vector, to this kind of list. E.g.,
# Option A:
fct(c(x3 = 45, x4 = -45, x2 = -90)) # Return the list in the block above.
# Option B:
fct(list(x3 = 45, x4 = -45, x3 = -90)) # Return the list in the block above.
It is better to write a separate function to do this, for two reasons.
This function can be be used for all other semptools functions.
marklhc
changed the title
Write an function to convert a named list to the required list of arguments
Write a function to convert a named list to the required list of arguments
Jun 15, 2020
Some functions require users to specify the changes as a list of lists. E.g.,
This can be difficult to read and write. We can write a function to convert a named list, or even a named vector, to this kind of list. E.g.,
It is better to write a separate function to do this, for two reasons.
This function can be be used for all other
semptools
functions.We do not need to modify the existing functions.
DONE
Drafted,
to_list_of_lists
. Preliminary tests passed.Functions revised (preliminary tests passed).
rotate_resid
, for the argumentrotate_resid_list
.set_curve
, for the argumentcurve_list
.set_edge_label_position
, for the argumentposition_list
.set_sem_layout
, for the argumentindicator_push
,indicator_spread
, andloading_position
The text was updated successfully, but these errors were encountered: