read.hills.Rd
`read.hills` reads a HILLS file generated by Plumed and returns a hillsfile object. User can specify whether some collective variables are periodic.
HILLS file from Plumed.
logical vector specifying periodicity of collective variables.
periodicity of CV1.
periodicity of CV2.
time in the first column of the HILLS file will be ignored.
hillsfile object.
l1<-"1 -1.409 2.808 0.3 0.3 1.111 10"
l2<-"2 -2.505 2.791 0.3 0.3 1.111 10"
l3<-"3 -2.346 2.754 0.3 0.3 1.069 10"
l4<-"4 -1.198 2.872 0.3 0.3 1.074 10"
fourhills<-c(l1,l2,l3,l4)
tf <- tempfile()
writeLines(fourhills, tf)
read.hills(tf, per=c(TRUE,TRUE))
#> 2D HILLS file read
#> 2D hills file /tmp/RtmpWn59MX/file2b201f892220 with 4 lines