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.


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 OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (6)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]=
Introduced in 2014
(10.0)