Skip to content
Prev 325110 / 398503 Next

padding specific missing values with NA to allow cbind

Dear list

Getting very frustrated with this simple-looking problem
I would like to plot a simple x,y scatter plot with labels giving custom information displayed for the outliers only, i.e. I would like to define a column mydata$labels for the mydata dataframe so that the command
will label those rows where outliers[i] = TRUE with text but is otherwise blank

The first problem I have is that due to some NAs in mydata, nrows(outliers) < nrows(mydata) and I'm getting in a tangle trying to pad the appropriate rows of outliers

Thanks

Rob