Description Usage Arguments Details Value Author(s)
View source: R/ds.dataFrameFill.R
Adds extra columns with missing values in a dataframe one for each variable is not included in the dataframe but is included in the relevant datafram of another datasource.
1 | ds.dataFrameFill(df.name = NULL, newobj = NULL, datasources = NULL)
|
df.name |
a character string representing the name of the input data frame that will be filled with extra columns with missing values if a number of variables is missing from it compared to the data frames of the other studies used in the analysis. |
newobj |
a character string providing a name for the output data frame which defaults to the name of the input data frame with the suffix "_filled" if no name is specified. |
datasources |
specifies the particular opal objects to use. If the |
This function checks if the input data frames have the same variables (i.e. the same
column names) in all of the used studies. When a study does not have some of the variables, the
function generates those variables as vectors of missing values and combines them as columns to
the input data frame. Then, the "complete" in terms of the columns dataframe is saved in each
server with a name specified by the argument newobj
.
The object specified by the newobj
argument which is written to the serverside.
In addition, two validity messages are returned indicating whether the newobj
has been
created in each data source and if so whether it is in a valid form.
Demetris Avraam for DataSHIELD Development Team
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.