Skip to content

Commit

Permalink
names
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan S Read committed Sep 9, 2015
1 parent ffd744d commit 1462961
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/read.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ read.wide_burst <- function(file,date.format){
}
date.vec <- head(date.vec,cnt-1)
sens.vec <- head(sens.vec,cnt-1)
data.out <- data.frame('DateTime'=date.vec, 'sensor.obs'=sens.vec)
data.out <- data.frame('DateTime'=date.vec, 'x'=sens.vec)

# should we also return metadata?
return(data.out)
Expand Down
1 change: 1 addition & 0 deletions R/sensor-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ sensor <- function(x, flag.defs, ...){

#' @export
sensor.data.frame <- function(x, flag.defs = NULL, ...){
names(x) <- c('times','x','w')[seq_len(length(names(x)))]
sensor = list(sensor=x)
flags = define_flags(flag.defs,...)
if (!is.null(flags))
Expand Down

0 comments on commit 1462961

Please sign in to comment.