Questions tagged [tbl]

tbl is part of the troff/groff document formatting system. As described by the man page, tbl compiles descriptions of tables embedded within troff input files into commands that are understood by troff. Use this tag for questions related to tbl's grammar or issues using tbl.

From Tbl — A Program to Format Tables†:

Tbl is a document formatting preprocessor for troff or nroff which makes even fairly complex tables easy to specify and enter.

  1. Introduction.

Tbl turns a simple description of a table into a troff or nroff [3] program (list of commands) that prints the table. It attempts to isolate a portion of a job that it can successfully handle and leave the remainder for other programs. Thus tbl may be used with the equation formatting program eqn [2] or various layout macro packages [1], [5], [6], but does not duplicate their functions.

tbl is a part of a set of tools that were developed by AT&T for typesetters. These include:

  • groff/troff/nroff: a Unix text-formatting program
  • pic: compile pictures for troff or TeX
  • eqn: format equations for troff
  • chem: chemical structure diagrams

References:

31 questions
0
votes
1 answer

Combining tbl_strata summary tables in R

I want to combine three table strata table summary objects. You can't merge them with the tbl_merge function. What can I do? I have three tables like this: table_one <- data %>% select(Var1m, Var2, Var3, Var4, Var5, Var6, Var7) %>% tbl_strata( …
0
votes
0 answers

Formating outputs made with tbl_regression and plot in gtsummary

I got this example data frame in order to show what I want. # Set the random seed for reproducibility set.seed(123) # Create a vector with categories for each variable var1 <- sample(c("A", "B", "C", "D"), 200, replace = TRUE) var2 <- sample(c("X",…
esteban
  • 102
  • 8
0
votes
0 answers

How to make this subgroup Table

How to make this type of table in R ? Thanks in advance.
0
votes
0 answers

tbl_summary but summarize the varible by numeric instead of factor in R gtsummary

here I have a data frame with the following varible age gender disease and stage # create simulated data set.seed(123) n <- 20 data <- data.frame( age = rnorm(n, mean = 50, sd = 10), gender = sample(c("Male", "Female"), n, replace = TRUE), …
0
votes
0 answers

tbl_regression - resolving long tables by indicating categorical variables were included but not breaking down stats for each category

My regression model uses several control variables that contain several categorical values, each. When I use tbl_summary to get a table, it comes out very long. I don't really care about showing the results for these variables. Is there a way to…
user17661126
  • 129
  • 5
0
votes
1 answer

R : problem with the dplyr::tbl() function due to restricted permission

I work with large databases that needs to be stored into a server. So, to work with them on Rstudio I have to open a connection to my Microsoft SQL Server with the dbConnect function : conn <-…
stgdm
  • 3
  • 2
0
votes
1 answer

How can I get a tbl of per game career stats for every (or almost every) NBA player in history?

I've tried this using nbastatR: library(nbastatR) assign_nba_players() players <- df_dict_nba_players$idPlayer nba_careers <- players_careers(player_ids= players, modes="PerGame") But it just ran for multiple days straight. Eventually, I checked…
ZZ5657
  • 1
0
votes
0 answers

Unable to obtain chisq for tbl_summary

Trying to create a table that resembles below and would like to obtain a p value (using chi square testing, have approx 34000 patients and there is some missing data which I would like to exclude in analysis and also to include in the table…
0
votes
1 answer

Error while using the function tbl_summary()

I'm trying to use the function "tbl_summary()", but I'm having the problem below, could someone help me, please? Error in mutate(): ! Problem while computing df_stats = pmap(...). Caused by error in manip_apply_syms(): ! invalid multibyte string at…
Lays
  • 1
  • 1
0
votes
1 answer

Nobe at SQL scripting. Please haalp

I am trying to access my table in SQL database. However, I am getting an unusual error. Can someone please help me I am very new at this. import sqlite3 import pandas as pd com = sqlite3.connect('Reporting.db') Note: Panda dataframe is already…
0
votes
0 answers

Convert Oracle table to dataframe in R

I am trying to convert an Oracle database table into an "R" data frame. I am using the dplyr::tbl function as well as dbplyr::in_schmema to connect to the specific schema and table within the Oracle database. Table <- dplyr::tbl(my_oracle,…
SteveM
  • 213
  • 3
  • 13
0
votes
0 answers

.tbl file import request for a .tlh file C++

I'm working in a C++ native project and I need to import a .tbl file #import "C:\packages\S...\xx.tlb" raw_interfaces_only, named_guids, no_namespace But Visual studio 2019 always ask for a .tlh file that I don't have, how can I use tbl file…
UserEsp
  • 415
  • 1
  • 7
  • 29
0
votes
0 answers

Asymmetrical Groff output

For years, I've been generating tables created with raw Groff commands. All I did was groff -t file >file.ps, and I got what I wanted. The administrator upgraded gnu utilities, and now the same scripts produce output on a page that seems longer and…
0
votes
1 answer

Changing imported R function globally

I want to globally add a parameter to a function after import. So in future function calls the function should be always called with the set parameter. In this case, I want to add the function parameter in_schema("abc") to the function tbl from…
Krisselack
  • 503
  • 3
  • 16
0
votes
1 answer

Cannot access data from tbl df object to be used on ggplot2

I'm working on a set of LDA models to compare their predictive accuracy on topic assignments. Some short description below. I applied the per document per topic assignment extracting the topic with the highest "gamma" (15 in total) for each…
Chris T.
  • 1,699
  • 7
  • 23
  • 45