# NOT RUN {
# load an example vertical profile time series object
data(example_vpts)
example_vpts
# convert the object to a data.frame
df <- as.data.frame(example_vpts)
# do not compute sunrise/sunset information
df <- as.data.frame(example_vpts, suntime = FALSE)
# override the latitude/longitude information stored in the object
# when calculating sunrise / sunset
df <- as.data.frame(example_vpts, suntime = TRUE, lat = 50, lon = 4)
# print first then rows of data.frame to console:
df[1:10, ]
# }
Run the code above in your browser using DataLab