我有如下数据集
> head(n2)
# A tibble: 6 x 4
Pain Redness Swelling Tiredness
<fct> <chr> <chr> <chr>
1 Yes No No Yes
2 No No No No
3 Yes No No Yes
4 Yes No Yes Yes
5 No No No No
6 No No No No
Run Code Online (Sandbox Code Playgroud)
我正在尝试使用 gtsummary 包制作一个汇总表。但在汇总表中,它没有显示或变量Pain的“是”/“否”级别,而只是显示每列的计数。有人可以帮忙显示表中的“是”/“否”级别吗RednessSwellingYes
我想解析一个8 GB的文件来查找一些信息.这花了我超过4个小时才完成.我为此通过了perl Parallel :: ForkManager模块.但它并没有太大的区别.实现这个的更好方法是什么?
以下是用于解析此Jumbo文件的代码的一部分.我实际上有一个域名列表,我必须查看8 GB大小的区域文件,并找出它托管的公司.
unless(open(FH, $file)) {
print $LOG "Can't open '$file' $!";
die "Can't open '$file' $!";
}
### Reading Zone file : $file
DOMAIN: while(my $line = <FH> ){
#domain and the dns with whom he currently hosted
my($domain, undef, $new_host) = split(/\s|\t/, $line);
next if $seen{$domain};
$seen{$domain} =1;
$domain.=".$domain_type";
$domain = lc ($domain);
#already in?
if($moved_domains->{$domain}){
#Get the next domain if this on the same host, there is nothing to record
if($new_host eq $moved_domains->{$domain}->{PointingHost}){ …Run Code Online (Sandbox Code Playgroud)