[R] on ``unfolding'' a json into data frame columns

2016-11-29 Thread Daniel Bastos
Greetings! In an SQL table, I have a column that contains a JSON. I'd like easy access to all (in an ideal world) of these JSON fields. I started out trying to get all fields from the JSON and so I wrote this function. unfold.json <- function (df, column) { library(jsonlite) ret <- data

Re: [R] on specifying an encoding for plot's main-argument

2016-02-01 Thread Daniel Bastos
Duncan Murdoch writes: > On 29/01/2016 10:35 AM, Daniel Bastos wrote: >> Here's how I plot a graph. >> >>plot(c(1,2,3), main = "graph ç") >> >> The main-string has a UTF-8 character "ç". I believe I'm using the >> windows

[R] on specifying an encoding for plot's main-argument

2016-01-29 Thread Daniel Bastos
Here's how I plot a graph. plot(c(1,2,3), main = "graph ç") The main-string has a UTF-8 character "ç". I believe I'm using the windows device. It opens up on my screen. (The window says ``R Graphics: Device 2 (ACTIVE)''.) How can I tell it to use my encoding of choice? I looked around the