WOLFRAM COMMUNITY
Connect with users of Wolfram technologies to learn, solve problems and share ideas
Join
Sign In
Dashboard
Groups
People
Message Boards
Answer
(
Unmark
)
Mark as an Answer
WOLFRAM COMMUNITY
Dashboard
Groups
People
1
|
2339 Views
|
3 Replies
|
2 Total Likes
View groups...
Follow this post
Share
Share this post:
GROUPS:
Mathematica
Import function
Artur Kotarski
Artur Kotarski
Posted
12 years ago
I used function "Import " with element specifications-"Data". It is the most convenient setting for me (at least it seems to me). It matches the imported columns up to my expectations, however I'd like one column which consists of integers only to be imported as strings instead of integers . So the question is that if it is possible to make an exemption to freeze default data format for integers while using above mentioned element specifications?
POSTED BY:
Artur Kotarski
Reply
|
Flag
3 Replies
Sort By:
Replies
Likes
Recent
0
Arnoud Buzing
Arnoud Buzing, Wolfram Research
Posted
12 years ago
Perhaps if you clarify your question with a simplified example, then I can improve my answer.
POSTED BY:
Arnoud Buzing
Reply
|
Flag
0
Artur Kotarski
Artur Kotarski
Posted
12 years ago
These do not work , anyway I thank for clues .
POSTED BY:
Artur Kotarski
Reply
|
Flag
1
Arnoud Buzing
Arnoud Buzing, Wolfram Research
Posted
12 years ago
In that case maybe you just want to use MapAt? For example:
data = ImportString["Erik 45\nRyan 65\nAlan 12", "Data"];
MapAt[ToString, data, {All, 2}]
POSTED BY:
Arnoud Buzing
Reply
|
Flag
Reply to this discussion
in reply to
Add Notebook
Community posts can be styled and formatted using the
Markdown syntax
.
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Publish anyway
Cancel
Reply Preview
Attachments
Remove
Add a file to this post
Follow this discussion
or
Discard
Group Abstract
Be respectful. Review our
Community Guidelines
to understand your role and responsibilities.
Community Terms of Use
Feedback