Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
3 answers
90 views

Selecting particular data with a particular string at-first

I have a dataset and I want to select the only data that starting with C_i (where "i" is a numeric with variability). Here is my dataset: ...
P Pyne's user avatar
  • 552
3 votes
2 answers
184 views

How to import the given file properly?

Consider the following file. It has the structure of a table, with rows like LHC HNL dipole 0.5 0.00001 e {"HNL dipole", 0.5, 0.00001, 0.} Here, the ...
John Taylor's user avatar
  • 5,963
1 vote
1 answer
192 views

How to extract the following value from a file?

Consider the following file: ...
John Taylor's user avatar
  • 5,963
-1 votes
1 answer
165 views

How to extract the number from the following string?

Consider an archive a.gz with the file a.hepmc containing the following strings: ...
John Taylor's user avatar
  • 5,963
1 vote
0 answers
32 views

How to draw a line marking where each chapter occurs in a text? [duplicate]

I am performing a text analysis on C.S. Lewis's book The Lion, the Witch, and the Wardrobe. I have created the following analysis of textual occurences of Aslan or Lion, Peter, Lucy, Edmund, Susan, ...
Peter Burbery's user avatar
10 votes
2 answers
345 views

Removing banal words from a list

NB: I am aware of the DeleteStopwords symbol. I want to remove from a list of words the ones that are likely to be more banal. So for instance if we have ...
Diffycue's user avatar
  • 1,854
3 votes
2 answers
281 views

Delete part of string characters

I have the following string dataset: ...
Nate's user avatar
  • 401
2 votes
0 answers
124 views

Clustering or Grouping by list of similar strings

I have gathered some sports data from over 40 different sources. I now need to get all the games to "match up", "grouped", "clustered", or "aligned" so all the information for one game is in one list....
Ray Troy's user avatar
  • 1,299
6 votes
2 answers
1k views

Convert a huge txt-file into a dataset

My friend has this huge txt-log of sea levels. He wants to organize it into a dataset. After importing it this file a used StringSplit to separate it into rows, then to singular elements ...
Artem Anisimov's user avatar
-1 votes
3 answers
134 views

Ignoring text when converting strings of text to numbers

I have a string of measurements--mostly numbers, but occasionally an NA. Right now Mathematica is reading it all as text, so I'm using ...
nikkibell's user avatar
0 votes
0 answers
134 views

How should I import list of results with scientific numbers so they can be used for further calculation?

I have a file, listOfResults.txt, consisting of many rows of which the following is an example: ...
Karel's user avatar
  • 3
5 votes
2 answers
235 views

Data Cleaning Problem - Getting rid of redundancies

I am cleaning a database and I need to clean also the location field. The data is taken from a forum, so the entrance are self compiled. For this reason I have a lot of weird and different stuff going ...
Carmine Ragone's user avatar
3 votes
2 answers
256 views

Most common prefixes in an English corpus (Hamlet)

There are many resources online showing how to get the most frequent letters in the english language. What I'm trying to do is get the most common word prefixes in the english language - i.e, take a ...
Nico A's user avatar
  • 3,674
1 vote
1 answer
51 views

Some challenge for a Table mixing between output number Variables and ToString symbols [duplicate]

How can I output a series of data, ranging from s00, s01, s02, s10, s11, s12, s20, s21, s22; by writing a table with s is a fixed, and m and n are running parameters, for example: ...
wonderich's user avatar
  • 923
-1 votes
2 answers
200 views

Matching timestamped data

I bet this question is a gimme for most of you guys, but I'm having a bit o' trouble figuring it out. Thanks ahead of time for your input and help. Soooo, I have two datasets where column 1 is a ...
sanjayr's user avatar
  • 143
1 vote
1 answer
202 views

Importing Data Issue, Breaking Up Elements

I am trying to import a comma delimited text file as a Table and I am having two issues: First, the file imports all of the numbers that should be separate columns as a single string. This is not ...
Audioworm's user avatar
8 votes
3 answers
2k views

How to parse information contained in a file name

I have a set of files containing my data, and the file-names contain relevant information that I would like to extract. What I have is: ...
rhermans's user avatar
  • 37.4k
2 votes
2 answers
156 views

Importing Data and Devoting Their Names to Them

There are some files in a directory. I have used of SetDiroctory to access all of them. SetDirectory["C:\\Users\\SE7EN\\Desktop\\mathematica\\test"]; I can visit ...
Unbelievable's user avatar
  • 4,917
1 vote
0 answers
70 views

How can I convert a matrix into matlab form string? [duplicate]

How can I convert a matrix into matlab form? ...
user92733's user avatar
4 votes
3 answers
3k views

How to export a header before the data in the result file?

I would like to export a phrase to my result data as a heading. I'm exporting the data correctly with Export["file.dat", table]. But I'm doing several ...
user5562's user avatar