Skip to content

Commit

Permalink
* IMPROVE: umx_read_lower accept names for lower diag
Browse files Browse the repository at this point in the history
  • Loading branch information
tbates committed Jan 28, 2021
1 parent 5113946 commit f84fa84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/misc_and_utility.R
Expand Up @@ -7019,7 +7019,7 @@ umx_read_lower <- function(file= "", diag= TRUE, names= NULL, ensurePD= FALSE){
n = floor((sqrt(1 + 8*m) - d)/2)
if(is.null(names)){
names = paste0("X", 1:n)
}else if(length(names!= n)){
}else if(length(names) != n){
message("names ignored as you provided ", length(names), " but the data are n = ", n, " wide.")
names = paste0("X", 1:n)
}
Expand Down

0 comments on commit f84fa84

Please sign in to comment.