26m
comment Dynamic value in R's data.frame column, that is recalculated on any change in data
There is a reactive framework in the shiny package.
2h
answered Cumulative sum with lag
5h
comment Numbers formatted in R to look better (thousands separators, etc) are no longer numbers?
Regarding data.frame Roland has shown how to do this using classes. It would also be possible to use format.numeric <- Print (where Print is in my prior comment above) after which printing a data frame (and any other function that leverages format) would use Print for the numeric part but its not necessarly safe since it overrides existing functionality that other routines could, in principle, depend on.
7h
comment Numbers formatted in R to look better (thousands separators, etc) are no longer numbers?
The problem is that not all operations will preserve the class, e.g. num[2:3]
8h
comment Numbers formatted in R to look better (thousands separators, etc) are no longer numbers?
Define a function Print <- function(x) formatC(x, decimal.mark=",", big.mark=" ", digits = 2, format = "f") and then use Print(eve) to display a numeric vecvtor. Its possible to define your own class which displays any way you like but that seems like overkill.
23h
comment Reactive input working, but getting error?
The first time it runs its NULL. A print statement: print(inputFoo) will show this.
1d
comment Reactive input working, but getting error?
Add this after setting inputFoo: if (is.null(inputFoo)) return()
1d
revised Extract string from the text using R
spacing
1d
answered Extract string from the text using R
1d
revised Creating a specific sequence of date/times in R
added 4 characters in body
2d
answered POSIXct date conversion error
Dec
22
answered Convert character like "1,2" into numeric vector like c(1,2) in R
Dec
21
answered standard evaluation in dplyr: summarise_ on variable given as a character string
Dec
20
comment No leading zeros for months R
What about 2005-10-20 ?
Dec
20
revised Unexpected replacement in R gsub regular expression
added visualizations
Dec
20
answered Unexpected replacement in R gsub regular expression
Dec
20
comment Can IPython be used to code in R
Also: nbviewer.ipython.org/github/ipython/ipython/blob/…
Dec
19
answered How to simplify a nested list in R?
Dec
19
awarded Enlightened
Dec
19
awarded Nice Answer
1 2 3 4 5