Learn R Programming

⚠️There's a newer version (0.1.17) of this package.Take me there.

OpenRepGrid (version 0.1.15)

Tools to Analyze Repertory Grid Data

Description

Analyze repertory grids, a qualitative-quantitative data collection technique devised by George A. Kelly in the 1950s. Today, grids are used across various domains ranging from clinical psychology to marketing. The package contains functions to quantitatively analyze and visualize repertory grid data (e.g. 'Fransella', 'Bell', & 'Bannister', 2004, ISBN: 978-0-470-09080-0). The package is part of the The package is part of the project.

Copy Link

Version

Install

install.packages('OpenRepGrid')

Monthly Downloads

401

Version

0.1.15

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Mark Heckmann

Last Published

July 20th, 2024

Functions in OpenRepGrid (0.1.15)

angleOrderIndexes2d

Make indexes to order grid by angles in given dimensions.
addElement

Add an element to an existing grid.
addIndexColumnToMatrix

add index column for neater colnames
bertinCluster

Bertin display with corresponding cluster analysis.
bind

Concatenate the constructs of two grids.
addAvgElement

Add a new average element
bertin

Make Bertin display of grid data.
calcAngles

Calculate angles for points in first two columns.
apply_pb

apply with a progress bar
calcBiplotCoords

Calculate coordinates for biplot.
alignByIdeal

Align constructs using the ideal element to gain pole preferences.
biplot3d

Draw grid in rgl (3D device).
addVarianceExplainedToBiplot2d

Adds the percentage of the sum-of-squares explained by each axis to the plot.
cascade

make ascending and descending vector
biplotDraw

biplotDraw is the workhorse doing the drawing of a 2D biplot.
calcCoordsBorders

Coordinates of a surrounding rectangle in direction of a given vector.
constructD

Calculate Somers' d for the constructs.
addConstruct

Add a new construct to an existing grid object.
dist_minmax

Calculate minimal and maximal possible distance
constructPcaLoadings

Extract loadings from PCA of constructs.
distance

Distance measures (between constructs or elements).
constructPca

Principal component analysis (PCA) of inter-construct correlations.
constructRmsCor

Root mean square (RMS) of inter-construct correlations.
data-leach2001

Pre- and post therapy dataset from Leach et al. (2001).
convertImportObjectToRepGridObject

convertImportObjectToRepGridObject.
distanceHartmann

'Hartmann distance' (standardized Slater distances).
distanceNormalized

Calculate power-transformed Hartmann distances.
constructs

Get or replace construct poles
biplotSimple

A graphically unsophisticated version of a biplot.
bindConstructs

Concatenate the constructs of two or more grids.
getConstructNames

Get construct names
getConstructNames2

Retrieve construct names in needed format.
biplotSlater2d

Draws Slater's INGRID biplot in 2D.
biplot2d

Draw a two-dimensional biplot.
data-mackay1992

Grid data from Mackay (1992).
data-raeithel

Grid data from Raeithel (1998).
constructCor

Calculate correlations between constructs.
colorize_matrix_rows

Colorize matrix cell rows using crayon colors
importGridcor

Import GRIDCOR data files.
[,repgrid-method

Extract parts of the repgrid object.
data-slater1977a

Drug addict's grid data set from Slater (1977, p. 32).
home

Rotate the interactive 3D device to default views.
importExcel

Import grid data from an Excel file.
elementCor

Calculate the correlations between elements.
importGridsuite

Import Gridsuite data files.
biplotSlater3d

Draw the Slater's INGRID biplot in rgl (3D device).
biplotSlaterPseudo3d

Draws Slater's biplot in 2D with depth impression (pseudo 3D).
importExcelInternal

workhorse function (parser) for importExcel.
OpenRepGrid-overview

OpenRepGrid: Annotated overview of package functions.
biplotEsa2d

Plot an eigenstructure analysis (ESA) biplot in 2D.
doubleEntry

Join the constructs of a grid with the same reversed constructs.
importGridstatInternal

Parser for Gridstat data files.
formatMatrix

Format a matrix and add index column.
gridlist

Add repgrids into a gridlist
biplotEsa3d

Draw the eigenstructure analysis (ESA) biplot in rgl (3D device).
cluster

Cluster analysis (of constructs or elements).
OpenRepGrid

OpenRepGrid: an R package for the analysis of repertory grids.
data-fbb2003

Grid data from Fransella, Bell and Bannister (2003).
getScaleMidpoint

Get midpoint of the grid rating scale
clusterBoot

Multiscale bootstrap cluster analysis.
biplotEsaPseudo3d

Plot an eigenstructure analysis (ESA) in 2D grid with 3D impression (pseudo 3D).
data-feixas2004

Grid data from Feixas and Saul (2004).
getElementNames

Retrieve element names of repgrid object.
distanceSlater

Slater distances (standardized Euclidean distances).
doRectanglesOverlap

Detect if two rectangles overlap.
getElementNames2

Retrieve element names in needed format.
indexPvaff

Percentage of Variance Accounted for by the First Factor (PVAFF)
center

Centering of rows (constructs) and/or columns (elements).
indexConflict1

Conflict measure for grids (Slade & Sheehan, 1979) based on correlations.
indexBieri

Bieri's index of cognitive complexity
indexPolarization

Polarization (percentage of extreme ratings)
biplotPseudo3d

Draws a biplot of the grid in 2D with depth impression (pseudo 3D).
data-bellmcgorry1992

Grid data from Bell and McGorry (1992).
perturbate

Perturbate grid ratings
indexBias

Calculate 'bias' of grid as defined by Slater (1977).
multigridFileToSinglegridFiles

Converts a Gridstat multigrid file into temporary single grid files and returns their path
indexVariability

Calculate 'variability' of a grid as defined by Slater (1977).
is.repgrid

Test if object has class repgrid
permuteGrid

Permute rows, columns or whole grid matrix.
left

Move construct or element in grid to the left, right, up or down.
importTxtInternal

ImportTxtInternal is the parser for importTxt.
+,repgrid,repgrid-method

Concatenate repgrid objects.
print.ssq

Print method for class ssq.
modifyConstruct

modify a construct
clearRatings

clear ratings
importTxt

Import grid data from a text file.
print.rmsCor

Print method for class rmsCor (RMS correlation for constructs or elements)
data-boeker

Grid data from Boeker (1996).
modifyElement

modifyElement
importScivescoInternal

Internal parser for sci:vesco files (suffix scires).
decouple

decouple a grid
getNoOfConstructs

Get number of constructs
data-slater1977b

Grid data from Slater (1977).
ratings

Extract ratings (wide or long format)
convertScivescoImportObjectToRepGridObject

Convert the returned object from the sci:vesco import function into a repgrid object.
randomWords

generate a random words
rep.repgrid

Replicate repgrid objects
indexIntensity

Intensity index
indexDilemmatic

Dilemmatic constructs
getNoOfElements

Get number of elements
importGridsuiteInternal

Internal parser for Gridsuite data files
mapCoordinatesToColor

Determine color values according to a given range of values.
importScivesco

Import sci:vesco data files.
mapCoordinatesToValue

Map arbitrary numeric vector to a given range of values.
data-bell2010

Grid data from Bell (2010).
dim.gridlist

Number of constructs and elements all repgrids in gridlist
orderBy

order one vector by another
setConstructAttr

Set the attributes of a construct
saveAsTxt

Save grid in a text file (txt).
grids_leave_n_out

Resample constructs
midpoint

Midpoint of the grid rating scale
print.indexConflict2

Print method for class indexConflict2
plot.indexDilemma

Plot method for indexDilemma (network graph)
print.indexConflict3

print method for class indexConflict3
print.indexDilemma

Print method for class indexDilemma
matches

Number of matches in ratings
indexConflict3

Conflict or inconsistency measure for grids (Bell, 2004) based on distances.
indexUncertainty

Uncertainty index
indexConflict2

Conflict measure for grids (Bassler et al., 1992) based on correlations.
indexSelfConstruction

Self construction profile
makeRepgrid

Make a new repgrid object.
print.indexDilemmatic

Print method for class indexDilemmatic
map

map a value onto others
orderByString

find the order of a string vector so it will match the order of another
elementRmsCor

Root mean square (RMS) of inter-element correlations.
elements

Get or replace element names
prepareBiplotData

Prepare dataframe passed to drawing functions for biplots.
dim.repgrid

Return size of a grid.
print_square_matrix

Print a square matrix in well readable format
print.constructD

Print method for class constructD.
[.openrepgridSettings

subset method for openrepgridSettings class
getRatingLayer

get rating layer
getScale

Get minimum and maximum scale value used in grid.
print.constructPca

Print method for class constructPca.
rglDrawStandardAxes

Draw standard axes in the origin in an rgl plot.
print.indexSelfConstruction

Print method for indexSelfConstruction
normalize

Normalize rows or columns by its standard deviation.
permuteConstructs

Generate a list with all possible construct reflections of a grid.
importGridcorInternal

Internal parser for GRIDCOR data files.
rglDrawConstructPoints

draw constructs in rgl
quasiDistributionDistanceSlater

Generate random grids and calculate 'Slater distances' for the elements.
setElementAttr

Set the attributes of an element
print.gridlist

Print method for gridlist objects
importGridstat

Import Gridstat data files.
indexDDI

Dispersion of dependency index (DDI)
print.indexBieri

Print method for class indexBieri
stop_if_not_0_1_ratings_only

Raise error if repgrid object has ratings other than 0/1
setMeta

setMeta
print.indexIntensity

Print method for class indexIntensity.
print.indexConflict1

Print function for class indexConflict1
indexDilemma

Implicative Dilemmas
stop_if_not_is_repgrid

Raise error if not is repgrid object
print.indexPolarization

Print method for class indexPolarization.
lapply_pb

lapply with a progress bar
rglDrawConstructLabels

draw constructs in rgl
shift

Shift construct or element to first position.
print.org.matches

Print method for class org.matches.
swapPoles

Reverse constructs / swaps construct poles
show,repgrid-method

Show method for repgrid
stop_if_scale_not_defined

Raise error if min or max of rating scale are undefined
[<-,repgrid-method

Method for "<-" assignment of the repgrid ratings.
strReverse

reverse a string
settingsLoad

Load OpenRepGrid settings
reorder.repgrid

Invert construct and element order
recycle2

variation of recycle that recycles one vector x or y to the length of the longer one
statsElements

Descriptive statistics for constructs and elements
reorder2d

Order grid by angles between construct and/or elements in 2D.
settingsSave

Save OpenRepGrid settings
print.hdistance

Print method for class hdistance (Hartmann distance objects).
print.statsConstructs

Print method for class statsConstructs
swapConstructs

Swap the position of two constructs in a grid.
recycle

recycle vector to given length
randomGrids

Generate a list of random grids (quasis) of prompted size.
randomGrid

Generate a random grid (quasis) of prompted size.
print.elementCor

Print method for class elementCor.
print.distance

Print method for class distance.
print.alignByLoadings

Print method for class alignByLoadings.
rglDrawStandardEllipses

Draw standard ellipses in the origin in an rgl plot.
print.constructCor

Print method for class constructCor.
makeEmptyRepgrid

Constructor for repgrid class
print.statsElements

Print method for class statsElements
stepChart

Density histogram with steps instead of bars.
ring

bring vector values into ring form
saveAsExcel

Save grid in a Microsoft Excel file (.xlsx)
sapply_pb

sapply with a progress bar
randomSentences

generate n random sentences with a given or random number of words
randomSentence

generate a random sentence with n words
showMeta

showMeta
setScale

Set the scale range of a grid.
showScale

Print scale range information to the console.
settings

global settings for OpenRepGrid
ssq

Calculate SSQ (accuracy) of biplot representation for elements and constructs.
swapElements

Swap the position of two elements in a grid.
slaterStandardization

Internal workhorse for Slater standardization.
trim_val

trim vector to lower or upper value
alignByLoadings

Align constructs by loadings on first principal component.