This website requires JavaScript.
Explore
Help
Sign In
mirror
/
RosettaCodeData
mirror of
https://github.com/acmeism/RosettaCodeData.git
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
main
RosettaCodeData
/
Task
/
Conditional-structures
/
R
/
conditional-structures-4.r
7 lines
184 B
R
Raw
Permalink
Blame
History
x
<-
"
match"
switch
(
x
,
mat
=
0
,
match
=
10
,
other
=
100
,
1000
)
x
<-
"
ma"
switch
(
x
,
mat
=
0
,
match
=
10
,
other
=
100
,
1000
)
x
<-
"
foo"
switch
(
x
,
mat
=
0
,
match
=
10
,
other
=
100
,
1000
)
Reference in New Issue
View Git Blame
Copy Permalink