Skip to content

Commit

Permalink
Update readingandfes.R
Browse files Browse the repository at this point in the history
  • Loading branch information
spiwokv authored Jul 16, 2019
1 parent 4a05da6 commit a8dda8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/readingandfes.R
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ fes2.hillsfile<-function(hills, imin=1, imax=NULL, xlim=NULL, ylim=NULL, zlim=NU
#' as well.
#'
#' @param file input file from PLUMED sum_hills.
#' @param remdim dimension (1 or 2, default 2).
#' @param dim dimension (1 or 2, default 2).
#' @param per logical vector specifying periodicity of collective variables.
#' @return fes object.
#'
Expand All @@ -694,7 +694,7 @@ fes2.hillsfile<-function(hills, imin=1, imax=NULL, xlim=NULL, ylim=NULL, zlim=NU
#' fourpoints<-c(l1,l2,l3,l4)
#' tf <- tempfile()
#' writeLines(fourpoints, tf)
#' read.plumed(tf, per=c(TRUE,TRUE))
#' read.plumed(tf, dim=1, per=c(TRUE,TRUE))
read.plumed<-function(file="fes.dat", dim=2, per=c(F,F,F)) {
hillsf<-read.table(file, header=F, comment.char="#")
bins<-round(nrow(hillsf)^(1/dim))
Expand Down

0 comments on commit a8dda8e

Please sign in to comment.