DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR R
for R
x <- c(2,5,3,9,8,11,6) count <- 0 for (val in x) { if(val %% 2 == 0) { count = count+1 } }
Source by www.datamentor.io #
PREVIOUS
NEXT
Tagged:
#R
ADD COMMENT
Topic
COMMENT
Name
1+8 =
Submit