PrepLabels | R Documentation |
This function prepares a dataset containing variable labels for use by
the main plotting function vlm
. The input must contain
variables' names in the first column and labels in the second column. All other
columns will be dropped. Special characters will create errors and should
be stripped outside of R. All labels will be truncated at 145 characters.
PrepLabels(labelFl, idx = 1:2)
labelFl |
Either the path of a dataset (a csv file) containing
labels, an R object convertible to |
idx |
A vector of length 2, giving column index of variable names (first position) and labels (second position). |
A data table formated for use by the vlm
function.
Copyright 2017 Capital One Services, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Functions depend on this function:
PrintPlots
,
vlm
.
data(bankLabels)
bankLabels <- PrepLabels(bankLabels)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.