First I want to point I am a very visual person, and so I would like to see the time series data I have in cells when I load it into R. I know I can use the Fix(data) command to vizually inspect the data in cells but what If have a single data vector.
How do I get R to show a single time series data vector in cells? Everytime I use the fix(singlevariable) it shows it akwardly as C(.....).
How do I show two or more data series in R in a cell visual format? I cant say fix(variable1, variable2)
Help! Thank you!
To view a single vector, you can use View()
, which "invoke[s] a spreadsheet-style data viewer on a matrix-like R object."
X <- 1:10
View(X)
To view two equally long vectors side by side, just place them together in a data.frame and then view that with View()
, fix()
or edit()
:
X <- 1:10
Y <- rnorm(10)
XY <- data.frame(X, Y)
fix(XY) ## or View(XY) or edit(XY)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With