new tasks
This commit is contained in:
parent
2a4d27cea0
commit
80737d5a6a
1194 changed files with 15353 additions and 1 deletions
2
Task/Collections/R/collections-2.r
Normal file
2
Task/Collections/R/collections-2.r
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
integer(5)
|
||||
c(1L, -2L, 99L);
|
||||
2
Task/Collections/R/collections-3.r
Normal file
2
Task/Collections/R/collections-3.r
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
logical(5)
|
||||
c(TRUE, FALSE)
|
||||
2
Task/Collections/R/collections-4.r
Normal file
2
Task/Collections/R/collections-4.r
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
character(5)
|
||||
c("abc", "defg", "")
|
||||
3
Task/Collections/R/collections-5.r
Normal file
3
Task/Collections/R/collections-5.r
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
matrix(1:12, nrow=3)
|
||||
|
||||
array(1:24, dim=c(2,3,4)) #output not shown
|
||||
1
Task/Collections/R/collections-6.r
Normal file
1
Task/Collections/R/collections-6.r
Normal file
|
|
@ -0,0 +1 @@
|
|||
list(a=123, b="abc", TRUE, 1:5, c=list(d=runif(5), e=5+6))
|
||||
13
Task/Collections/R/collections-7.r
Normal file
13
Task/Collections/R/collections-7.r
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
$a
|
||||
[1] 123
|
||||
$b
|
||||
[1] "abc"
|
||||
[[3]]
|
||||
[1] TRUE
|
||||
[[4]]
|
||||
[1] 1 2 3 4 5
|
||||
$c
|
||||
$c$d
|
||||
[1] 0.6013157 0.5011909 0.7106448 0.3882265 0.1274939
|
||||
$c$e
|
||||
[1] 11
|
||||
1
Task/Collections/R/collections-8.r
Normal file
1
Task/Collections/R/collections-8.r
Normal file
|
|
@ -0,0 +1 @@
|
|||
data.frame(name=c("Alice", "Bob", "Carol"), age=c(23, 35, 17))
|
||||
3
Task/Collections/R/collections.r
Normal file
3
Task/Collections/R/collections.r
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
numeric(5)
|
||||
1:10
|
||||
c(1, 3, 6, 10, 7 + 8, sqrt(441))
|
||||
Loading…
Add table
Add a link
Reference in a new issue