我一直在尝试导出一个包含49个变量的SAS数据集.每个变量的长度可能为32767个字符.我想将此数据集写入txt文件,但SAS限制我使用lrecl32767个字符的选项.有没有办法做到这一点?我尝试使用数据步骤.
data _null_;
%let _EFIERR_ = 0; /* set the ERROR detection macro variable */
%let _EFIREC_ = 0; /* clear export record count macro variable */
file 'C:path\TEST.txt';
if _n_ = 1 then do;
put "<BLAH>"
;
end;
set WORK.SAS_DATASET end=EFIEOD;
format raw1 $32767. ;
format raw2 $32767. ;
etc...
do;
EFIOUT + 1;
put raw1 $ @;
put raw2 $ @;
etc...
;
end;
if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */ …Run Code Online (Sandbox Code Playgroud) 当有光泽的服务器看到.Rmd文件而不是ui.R和server.R时,有没有办法减少左右边距?如下所示,窗口的近一半是左右边距.有没有办法修改内部css脚本来进行更改,还是通过geometry在markdown标头中添加选项来实现更简单的解决方案?
以下是在Rstudio中创建新的Shiny Rmarkdown文件时生成的示例代码:
---
title: "Untitled"
author: "Me"
date: "10/13/2015"
output: html_document
runtime: shiny
---
This R Markdown document is made interactive using Shiny. Unlike the more traditional workflow of creating static reports, you can now create documents that allow your readers to change the assumptions underlying your analysis and see the results immediately.
To learn more, see [Interative Documents](http://rmarkdown.rstudio.com/authoring_shiny.html).
## Inputs and Outputs
You can embed Shiny inputs and outputs in your document. Outputs are …Run Code Online (Sandbox Code Playgroud) 我对这里提出的问题有类似的情况.但是,我不想在var语句中列出我的300个变量名,因为它们都是唯一的.有没有办法使用proc means或proc summary输出一个数据集中所有数值变量的汇总统计信息?
我试过了:
proc means data=my_data min median max;
output out=summary_data min=min median=median max=max;
run;
Run Code Online (Sandbox Code Playgroud)
但这仅输出第一个变量的摘要统计信息.我也尝试过以下方面的帮助ods trace:
proc means data=my_data min median max;
ods output Summary=summary_data;
run;
Run Code Online (Sandbox Code Playgroud)
这给了我所有变量的摘要统计信息,但仍然在一行中:
VName_VAR1 VAR1_Minimum VAR1_Median VAR1_Maximum VName_VAR2 VAR2_Minimum etc...
VAR1 3 3 3 VAR2 3
Run Code Online (Sandbox Code Playgroud)
我的VAR名称都是唯一的.是否有其他方法可以使用proc means或proc summary输出一个数据集中所有数值变量的汇总统计信息?
更新:
当我删除min=min median=median max=max:
proc means data=my_data min median max;
output out=summary_data;
run;
Run Code Online (Sandbox Code Playgroud)
然后代码生成输出:
Obs _TYPE_ _FREQ_ _STAT_ VAR_1 …Run Code Online (Sandbox Code Playgroud)