In a markdown.md file, Is it possible to reference and copy earlier text in the file?
Lets say you have the following:
Some Type Names
-----
Type 1 - Video
Type 2 - Voice / Sound clip
Type 3 - Picture
Type 4 - Photo Booth Strip (3 | 4 | 5 sequential pictures)
Type 1 - Video
---
Type 2 - Voice / Sound clip
---
Type 3 - Picture
---
Type 4 - Photo Booth Strip (3 | 4 | 5 sequential pictures)
---
Instead of having to retype the type headers again below, is there a way to reference earlier text and have it generate in the spot you want, similar to how Excel cell referencing works? This would be beneficial to only have to worry about naming one item once.
Markdown does not have variables http://daringfireball.net/projects/markdown/
Related
I have a list in Excel like this:
You can see that A01->A0101->A010101, it's a chain where we have parents and children.
I need to create a CSV file, where I can see their parent ID and child ID. Like here:
The question: How to make it possible in Excel? I have idea how to do it with C#, but I need to do it in Excel.
Which result I would like to see:
A01 - ID should be 1
A0101 - ID should be 2 | Parent ID - 1
A010101 - ID should be 3 | Parent ID - 2
In the columns it will be like this:
cell - 1
cell - 2 | cell - 1
cell - 3 | cell - 2
So, I would like to have list only with 2 columns, where I can see ID of the A01 and the parent ID.
In the link below you can see how it should work if you want to put a CSV file in JIRA.
Link:
https://confluence.atlassian.com/jirakb/how-to-import-issues-with-hierarchy-from-a-csv-into-jira-software-1087512458.html
Here is one option using Excel ms365 functions:
Formula in B2:
=LET(x,A2:A18,y,SEQUENCE(ROWS(x)),HSTACK(y,XLOOKUP(LEFT(x,LEN(x)-2),x,y,"")))
I am new to tableau and trying to create a map as visualiztion
I have zip code information from survey data that is in the form as below:
Row
A1 ZCTA5 00601
A2 ZCTA5 99929
I removed the text 'ZCTA5' but then zips which start with 00 only take the form 601
I also tried to use =TEXT(A1,"00") but that will only change it for numbers which have 3 digit zip codes.
if I use the zip as they are, the map is incorrect and shows me latitude and longitudes of countries that are not in America.
How do I restructure the data for me to be able to use it as a maps in tableau?
Unfortunately it adds 00 to even zip codes with 99929
If I am understanding this correctly you want to make sure that all of your zip codes are padded correctly. If that is the case you can use the following formula:
=TEXT(Cell,"00000")
For example:
A
1 00654
2 95842
3 00243
4 00001
Will be represented as
A
1 654
2 95842
3 243
4 1
In excel but applying the formula =TEXT(Cell,"00000") to each cell you get the correct format
A B
1 654 00654
2 95843 95843
3 2343 02343
4 1 00001
You can eliminate the need for consistently editing these fields in Excel by bringing the data into Tableau as-is. You can shape the text in many ways using Tableau's native features or a calculated field.
If the data represented in Excel is as such:
ID Zip
1 123
2 12345
3 12
4 1
Then you can bring it in exactly as it is. From there you will need to tell Tableau that it is a Zip Code: (Tableau, in this example, will see that the field is named "Zip" and will automatically associate to Zip Code data type. If the field were named something like "Blah", though you would have to do the following.)
First, ensure that the field is brought to the Dimensions pane (Blue)
-Then-
Right Click on the Field > Geographic Role > ZIP Code
The result will be that leading zeros are added to each to make 5 digit zip codes.
IF the string being brought into Tableau is "A1 ZCTA5 00601":
You can simply take the farthest right 5 digits from the string as such:
RIGHT([Zip Code String], 5)
From there you can force Tableau to recognize the field as a Zip Code:
Right Click on Calculated Field > Geographic Role > ZIP Code
I don't know excel very well and I am trying to take something like this (with a lot of entries):
Field ......Value ....... ID
A .......... blabla1 .......1
B ...........blabla2 .......1
C ...........blabla3 .......1
D ...........blabla4 .......1
A ...........blabla5 .......2
B ...........blabla6 .......2
C ...........blabla7 .......2
D ...........blabla8 .......2
and turn into something more readable like this:
ID -----A -------------B ---------------- C ---------------- D
1 ------blabla1 -----blabla2 -------- blabla3 --------blabla4
2 ------blabla5----- blabla6 -------- blabla7-------- blabla8
Does anyone know a good way to do that? Thank you
(sorry about the bad formatting)
The exact delimiter beween each word is key if text not already split in separate cells..
Assuming there are numerous words in place of '.....', with each word separated by a single space (different delimiter would be required if the blablas represented sentences comprising one / more spaces), then you could achieve the desired table representation as follows
(several function in this soln requires Office 365 compatible version of Excel,
the lookup in step 3 does not require Office 365, but may mean IDs and Fields need to be manually entered or VB could be deployed):
Starting position (after removing bank rows):
Field Value ID
A blabla1 1
B blabla2 1
C blabla3 1
D blabla4 1
A blabla5 2
B blabla6 2
C blabla7 2
D blabla8 2
1) Split cells according to delimiter (skip this step if not relevant)
=TRANSPOSE(FILTERXML("<x><y>"&SUBSTITUTE(F3," ","</y><y>")&"</y></x>","//y"))
(replace the " " inside the substitute function with a different delimiter if required/desired)
2) Obtain unique IDs (rows) and Fields (columns)
=UNIQUE(K4:K11)
=TRANSPOSE(UNIQUE(I4:I11))
3) Index lookup for table content
=INDEX(J4:J11,MATCH(M4#&N3#,K4:K11&I4:I11,0),0)
I have a comma separated list of values generated from an excel sheet. (Numbers and RTL Characters)
Having these values in columns: 1 | 2 | 3 | 4 | 5
would yield me the output of 1,2,3,4,5
But the issue arises when I have RTL characters (Persian/Arabic) in my columns: 1 2 ب الف and a 5 in the end.
Now the output becomes 1,2الف, ب, 5
Since my columns can have multiple sets of RTL characters it can really mess up the output to the point that it's no more trivial to fix it by substituting several inputs.
What are my options to produce a csv file with the right order?
Tools I used where javascript and excel and both had the same issue.
If your purpose is to only display the CSV for human eye, you can add RIGHT-TO-LEFT MARK () before each number:
1, 2, ب, الف, 5
1, 2, ب, الف, 5
Note that these characters may drive crazy any tool you use to parse the CSV.
I think your CSV file already has the right order. In the text you pasted in the question:
1,2الف, ب, 5
The "1" is the first character in the string, and the "5" is the last. It just doesn't seem that way to you because the first half of the string (1,2) is rendering LTR whereas the second half of the string (الف, ب, 5) is rendering RTL.
I need some help adding a series of annotated string values to my xy plot in Grace-5.1.22 when using a batch script to plot the graph.
I have two columns of data: a series of x values and a series of y values, and then a third column containing a number for each data point. If I want to plot all numbers in the z column as annotated values then I am able to import the data into grace using the command:
BLOCK XYZ "1:2:3"
S0 AVALUE ON
S0 AVALUE TYPE "Z"
However, since where data points are bunched together the annotations are not clear, I don't want to display the annotation on EVERY point and therefore have replaced some values in the z column with "" to leave the corresponding annotation blank. This means that the 3rd column is now a string and the above commands will not work.
This website http://plasma-gate.weizmann.ac.il/Xmgr/doc/commands.html suggests that I should be able to import the data as:
BLOCK XYSTRING "1:2:3"
However, unfortunately this type was removed from versions 5.0.3 onwards http://plasma-gate.weizmann.ac.il/Grace/doc/CHANGES.html
Instead the documentation now says that "any set type now may have an additional column of text strings associated" however the command:
BLOCK XY "1:2:3"
does not load any data giving the error: "Too many columns scanned in column string".
I am able to import string type annotated values into xy data using the GUI by:
Data>>Import>>ASCII>>"filename.dat">>"load as BLOCK DATA">>"strings from column 3"
however since I would like to plot the same graph many times for different data sets I would like a way of automating this process and not using the GUI.
Sorry for the for the long question but I would be very grateful if anyone could help me.
I know it's old but I had the same question and after 3 hours of experimenting, I found a solution. Therefore I post it for future reference (since no answer currently exists elsewhere online).
If your "filename.dat" has the content format of (x y "string") or (x y z) then you can add to your batch file the following to read it and add the annotations:
READ XY "filename.dat"
s0 line type 1
s0 line linewidth 1
s0 line color 1
# Enable annotations
s0 avalue on
# Select type: 0=None,4=String,5=Z
s0 avalue type 5
s0 avalue color 1
s0 avalue char size 1.0000
s0 avalue offset 0.000000 , 0.000000
If you want to see more options for batch files, you can make a plot interactively with the gui and then save it as an .agr file. If you open this with a text editor, you have all the available commands there.
This is not a direct answer to your question but it may give you a hint.
I ran accross the same error message with the following syntax :
gracebat -graph 0 -settype bardy -block mydatafile -bxy 0:5:6:2
(the last column intended to be the optional string column)
And this one proved to be the right one :
gracebat -graph 0 -settype bardy -block mydatafile -bxy 0:5:6:{2}
So I guess you need to add curly braces.