Description Usage Arguments Value Author(s) Examples
This function calls a server function that generates
factor
vectors. If the generated factor is not
valid (i.e. if any of the categories has a count > 0 and
< 5) its values are replaced by missing values.
1 2 | ag.ds.createfactor(opals = NULL, xvect = NULL,
newvarname = NULL)
|
opals |
a list of opal object(s) obtained after
login in to opal servers; these objects hold also the
data assign to R, as |
xvect |
a numeric of character vector. |
newvarname |
name of the variable to assigned the created factor to. |
a list of factor
vectors or one factor vector.
Gaye, A.
1 2 3 4 5 6 7 8 9 10 11 12 | {
# load the login data
data(logindata)
# login and assign specific variable(s)
myvar <- list("GENDER")
opals <- ag.ds.login(logins=logindata,assign=TRUE,variables=myvar)
# create a factor vector of the variable 'GENDER', one for each study
ag.ds.createfactor(opals=opals, "sex", xvect=quote(D$GENDER))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.