Learn R Programming

diskImageR (version 1.0.0)

addType: Add factor column

Description

Add an extra factor ("type") column to the existing dataframe

Usage

addType(projectName, typePlace = 3, typeName = "type2", save = TRUE)

Arguments

projectName
the short name in use for the project.
typePlace
a number that indicates the position of the photograph name to be stored as the 'type' vector'. Defaults to 3. For more details see IJMacro
typeName
a character string that indicates what to name the typeVector. Defaults to "type2".
save
denotes whether to overwrite the existing .csv file or just update the .df in the R global environment. Defaults to TRUE.

Value

updates the existing dataframe

Examples

Run this code
## Not run: 
# addType("myProject", typePlace=4, typeName="temperature")
# ## End(Not run)

Run the code above in your browser using DataLab