rstudio/gt là dự án R với 2.2k sao trong nhóm Frontend. Easily generate information-rich, publication-quality tables from R
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
With the gt package, anyone can make wonderful-looking tables using
the R programming language. The gt philosophy: we can construct
a wide variety of useful tables with a cohesive set of table parts.
These include the table header, the stub, the column labels and
spanner column labels, the table body, and the table footer.
It all begins with table data (be it a tibble or a data frame). You
then decide how to compose your gt table with the elements and
formatting you need for the task at hand. Finally, the table is rendered
by printing it at the console, including it in an R Markdown document,
or exporting to a file using gtsave(). Currently, gt supports the
HTML, LaTeX, and RTF output formats.
The gt package is designed to be both straightforward yet powerful.
The emphasis is on simple functions for the everyday display table
needs. Here is a brief example of how to use gt to create a table
from the included sp500 dataset:
library(gt)
# Define the start and end dates for the data range
start_date <- "2010-06-07"
end_date <- "2010-06-14"
# Create a gt table based on preprocessed
# `sp500` table data
sp500 |>
dplyr::filter(date >= start_date & date <= end_date) |>
dplyr::select(-adj_close) |>
gt() |>
tab_header(
title = "S&P 500",
subtitle = glue::glue("{start_date} to {end_date}")
) |>
fmt_currency() |>
fmt_date(columns = date, date_style = "wd_m_day_year") |>
fmt_number(columns = volume, suffixing = TRUE)
There are 18 datasets provided by gt: countrypops, sza, gtcars, sp500, pizzaplace, exibble, towny, peeps, films, metro, gibraltar, constants, illness, reactions, photolysis, nuclides, rx_adsl, and rx_addv.
All of this tabular data is great for experimenting with gt’s functions and we make extensive use of these datasets in our documentation.
Beyond the functions shown in the simple sp500-based example, there are many functions available in gt for creating super-customized tables. Check out the documentation website to get started via introductory articles for making gt tables. There's a handy Reference section that has detailed help for every function in the package.
With the gtTest Drive, you can try gt in the Posit Cloud environment that features the RStudio IDE and a large collection of ready-to-run examples. Visit the publicly available Posit Cloud project and try out the package in your browser. There's no charge to use this platform and you'll learn a lot about what the package can do!
Let's talk about making tables with gt! There are a few locations where there is much potential for discussion.
One such place is in GitHub Discussions. This discussion board is especially great for Q&A, and many people have had their problems solved in there.
Another fine venue for discussion is in the gt_packageDiscord server. This is a good option for asking about the development of gt, pitching ideas that may become features, and sharing your table creations!
Finally, there is the gt-packageBluesky account. There you'll find posts about gt (including sneak previews about in-development features) and other table-generation packages.
These are all great places to ask questions about how to use the package, discuss
some ideas, engage with others, and much more!
INSTALLATION
The gt package can be installed from CRAN with:
install.packages("gt")
You can also choose to install the development version of gt from
GitHub:
devtools::install_github("rstudio/gt")
If you encounter a bug, have usage questions, or want to share ideas to
make this package better, please feel free to file an
issue.
Packages that use or extend gt
There are several R packages that either use gt to generate tabular outputs or extend gt in amazing ways. Here is a short list of some of these great packages:
gtsummary (GITHUB, WEBSITE)
gtExtras (GITHUB, WEBSITE)
pointblank (GITHUB, WEBSITE)
tfrmt (GITHUB, WEBSITE)
gto (GITHUB)
Code of Conduct
Please note that the gt project is released with a contributor code of
conduct. By
participating in this project you agree to abide by its terms.
📄 License
gt is licensed under the MIT license. See the
LICENSE.md file for more details.
rstudio/gt có 2.2k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/rstudio/gt. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
rstudio/gt có những chủ đề gì?
GitHub topics của rstudio/gt: "docx", "easy-to-use", "html", "latex", "r", "rtf", "summary-tables". TopGit xếp repo vào nhóm Frontend.
rstudio/gt còn đang phát triển không?
Commit gần nhất trên rstudio/gt là 4 tháng trước (theo timestamp GitHub). Repo có 229 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
rstudio/gt là gì?
rstudio/gt (rstudio/gt) là dự án R trên GitHub. Theo mô tả gốc: Easily generate information-rich, publication-quality tables from R
rstudio/gt so với các dự án Frontend khác thế nào?
rstudio/gt được TopGit xếp vào nhóm Frontend, với 2.2k sao GitHub và viết bằng R. Xem trang chủ đề Frontend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
rstudio/gt viết bằng ngôn ngữ gì?
rstudio/gt chủ yếu viết bằng R. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Vì sao rstudio/gt được xếp vào nhóm Frontend?
TopGit xếp rstudio/gt vào nhóm Frontend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "docx", "easy-to-use", "html"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về gt?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về gt.