bound.assign: Bound assignation for polar angles

Description Usage Arguments Author(s) Examples

View source: R/bound.assign.R

Description

This function allows to quickly assign bound on polar angles estimates.

Usage

1
bound.assign(sc.names,v.names,lower,upper)

Arguments

sc.names

character string containing the names of the variables to be matched in the given character vector v.names. It must contains the patterns that identify the variables belongingness in the variable (or items) names.

v.names

a character vector where matches are sought (e.g. the variables (or items) names).

lower

a vector of lower bounds.

upper

a vector of upper bounds.

Author(s)

Michele Grassi grassi.mic@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
data(SELF5)
v.names=names(SELF5)
v.names

sc.names=c("LM","NO","PA","BC","DE","FG","HI","JK")
lower<-c(-22.5,292.5,247.5,202.5,157.5,112.5,67.5,22.5)
upper<-c(22.5,337.5,292.5,247.5,202.5,157.5,112.5,67.5)
B<-bound.assign(sc.names=sc.names,v.names=v.names,lower=lower,upper=upper)

B$upper


B$lower

# Each one of the 48 items (v.names) is provided with an upper and lower bound:

bounds<-data.frame(v.names,B$upper,B$lower)

bounds[order(B$upper),]

CircE documentation built on May 30, 2017, 4:14 a.m.