indentspaces
来自「距离变换的实现方案及代码」· 代码 · 共 33 行
TXT
33 行
indentSpaces package:dynamicTreeCut R Documentation
_S_p_a_c_e_s _f_o_r _i_n_d_e_n_t_e_d _o_u_t_p_u_t.
_D_e_s_c_r_i_p_t_i_o_n:
Returns a character string containing two times 'indent' spaces.
_U_s_a_g_e:
indentSpaces(indent = 0)
_A_r_g_u_m_e_n_t_s:
indent: Desired level of indentation. The number of returned spaces
will be twice this argument.
_V_a_l_u_e:
A character string containing spaces, of length twice 'indent'.
_A_u_t_h_o_r(_s):
Peter Langfelder, Peter.Langfelder@gmail.com
_E_x_a_m_p_l_e_s:
spaces = indentSpaces(0);
print(paste(spaces, "This output is not indented..."));
spaces = indentSpaces(1);
print(paste(spaces, "...while this one is."))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?