convert-data-types-and-values | R Documentation |
data.frame(dataType,isList)
to character of NDEx data typesConvert data types in data.frame(dataType,isList)
to character of NDEx data types
.convertDataTypes(df, cols = c(dataType = "dataType", isList = "isList")) .convertValues(df, cols = c(value = "value", isList = "isList"))
df |
data.frame with dataType and isList: |
cols |
named character; column names of dataType and isList in df |
character; NDEx data types (e.g. "string" or "list_of_integer")
Internal function only for convenience
df = data.frame(dataType=c("string","boolean","double","integer","long", "string","boolean","double","integer","long"), isList=c(FALSE,FALSE,FALSE,FALSE,FALSE, TRUE,TRUE,TRUE,TRUE,TRUE)) df$value = list("string",TRUE,3.14,314,314, c("str","ing"),c(TRUE,FALSE),c(3.14,1.0),c(314,666),c(314,666)) RCX:::.convertDataTypes(df) RCX:::.convertValues(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.