SemanticImportString

SemanticImportString["string"]

attempts to import a string semantically to give a Dataset object.

SemanticImportString["string",type]

attempts to interpret all elements in the string as being of the specified type.

SemanticImportString["string",{type1,type2,}]

attempts to interpret elements in successive columns as being of the specified types.

SemanticImportString["string",col1->type1,col2->type2,]

attempts to interpret elements in the named columns as being of the specified types.

SemanticImportString["string",typespec,form]

puts the result in the specified form.

Details and Options

Examples

open allclose all

Basic Examples  (6)

Import a string semantically:

In[1]:=
Click for copyable input
Out[1]=

Import a string as a single column of strings:

In[1]:=
Click for copyable input
Out[1]=

Import a string with the specified column types:

In[1]:=
Click for copyable input
Out[1]=

Import only some columns of a string, in the specified format, using column numbers:

In[1]:=
Click for copyable input
Out[1]=

Import only some columns of a string, in the specified format, using column names:

In[1]:=
Click for copyable input
Out[1]=

Import a string as a list of named rows:

In[1]:=
Click for copyable input
Out[1]=

Scope  (4)

Options  (12)

Applications  (3)

Possible Issues  (4)

See Also

SemanticImport  SemanticInterpretation  Interpreter  WolframAlpha  ImportString  Dataset

Introduced in 2014
(10.0)