R/sc01.R

Defines functions sc01

Documented in sc01

sc01 <-
function(x, scm) {rn <-length(x)
assign("indc", NULL, envir = .BaseNamespaceEnv)
for (i in 1:rn) 
{rowmean <- x[i] 

if (rowmean < scm || rowmean == scm)
   {indc <- append(indc, 1, length(indc))}
else
           {indc <- append(indc, 0, length(indc))}
}
df <- data.frame("Binary code" = indc)
df
}

Try the bscaling package in your browser

Any scripts or data that you put into this service are public.

bscaling documentation built on Dec. 8, 2020, 5:09 p.m.