Whenver我有一个角表达式作为值input
的type
,它不会工作:
<input ng-model="model" type="{{'number'}}">
Run Code Online (Sandbox Code Playgroud)
数字值转换为字符串,复选框根本不起作用.
我想将此列表更改为data.frame:
[[1]]
AA AB
21 1
[[2]]
AA AB
19 4
[[3]]
AA AB
23 1
[[4]]
AA AB BB
15 3 6
Run Code Online (Sandbox Code Playgroud)
我试过"as.data.frame(r)",但是我收到了以下错误:
Error in data.frame(c(21L, 1L), c(19L, 4L), c(23L, 1L), c(15L, 3L, 6L), :
arguments imply differing number of rows: 2, 3
Run Code Online (Sandbox Code Playgroud)
我怎样才能得到类似的东西:
AA AB BB
V1 21 1
V2 19 4
V3 23 1
V4 15 3 6
Run Code Online (Sandbox Code Playgroud)