<% meth="tag_table" %>
<div class="lvl1">

    <p> This binary adds one or more tags (i.e. additional factors of a variable and their value) to all rows in a table. </p>

    <h3> Basic example using a string with comma separated tags </h3>
        <p> We'll specify the table we want the tags added to with the -i flag and a string with comma separated tags with the --tags flag </p>
        <%
            table_name = 'cluster_stats'
            tags = 'network1,collapsed,translated'
            args = f"-i tables/{table_name} --tags {tags}"
        %>
		${show_n_exec(table_name, args, "cmdtabs")}


    <h3> Example giving the name of a file to the -t (--tags) flag </h3>
        <p> If a file name is specified with the --tags flag instead of a comma separated string, cmdtabs can recognize it a load the file to use it as tags. In this case, the -x flag will be used to specify said file separator. </p>
        <%
            table_name = 'cluster_stats'
            tag_file = 'tracker'
            supp_table_text = "Tabla usada en el flag -t con los tags a añadir a la tabla de entrada (1 fila con los valores separados por tabulación)"
            args = f"-i tables/{table_name} --tags tables/{tag_file} -s '\t'"
        %>
		${show_n_exec(table_name, args, "cmdtabs", supp_tables=[[supp_table_text, tag_file]])}

    <h3> Specifying more that one file separated by commas to the --tags flag </h3>
        <p> If we indicate a few files separated by commas to the --tags flag, cmdtabs will read and use each one of them to add the tags. </p>
        <%
            table_name = 'cluster_stats'
            tag_file = 'tracker'
            supp_table_text = "Tablas usadas en el flag -t con los tags a añadir a la tabla de entrada (1 fila con los valores separados por tabulación)"
            args = f"-i tables/{table_name} --tags tables/{tag_file},tables/{tag_file} -s '\t'"
        %>
		${show_n_exec(table_name, args, "cmdtabs", supp_tables=[[supp_table_text, tag_file]])}

</div>