Re: [R] [FORGED] can't print ggplot with Chinese characters to pdf files

2017-10-15 Thread Bert Gunter
Wrong list. Post to r-sig-mac instead. Bert On Oct 15, 2017 6:47 PM, "John" wrote: > Hi, > > >Sorry to bother you with this question here. > >I tried to install Macports on my Mac OS Sierra, and type "sudo port > install cairo", but it did not respond. I haven't seen any file name or

Re: [R] [FORGED] can't print ggplot with Chinese characters to pdf files

2017-10-15 Thread John
Hi, Sorry to bother you with this question here. I tried to install Macports on my Mac OS Sierra, and type "sudo port install cairo", but it did not respond. I haven't seen any file name or app called Macports, but one file called "port" which is located at loca/bin/port" How should

Re: [R] Bootstrapped Regression

2017-10-15 Thread Janh Anni
Hello Rui, It was perfect! Thank you so much for your kindness. It is greatly appreciated. All the best, Janh On Sun, Oct 15, 2017 at 3:25 AM, Rui Barradas wrote: > Hello, > > Much clearer now, thanks. > It's a matter of changing the function boot calls to return the predicted > values at th

Re: [R] Download data from NASA for multiple locations - RCurl

2017-10-15 Thread Miluji Sb
Dear David, This is amazing, thank you so much. If I may ask another question: The output looks like the following: ### dput(head(x,15)) c("Metadata for Requested Time Series:", "", "prod_name=GLDAS_NOAH025_3H_v2.0", "param_short_name=Tair_f_inst", "param_name=Near surface air temperature", "uni

Re: [R] Download data from NASA for multiple locations - RCurl

2017-10-15 Thread David Winsemius
> On Oct 15, 2017, at 2:02 PM, Miluji Sb wrote: > > Dear all, > > i am trying to download time-series climatic data from GES DISC (NASA) > Hydrology Data Rods web-service. Unfortunately, no wget method is > available. > > Five parameters are needed for data retrieval: variable, location, > sta

[R] Download data from NASA for multiple locations - RCurl

2017-10-15 Thread Miluji Sb
Dear all, i am trying to download time-series climatic data from GES DISC (NASA) Hydrology Data Rods web-service. Unfortunately, no wget method is available. Five parameters are needed for data retrieval: variable, location, startDate, endDate, and type. For example: ### https://hydro1.gesdisc.e

Re: [R] Populate one data frame with values from another dataframe for rows that match

2017-10-15 Thread Kevin Wamae
Pardon me, here’s @Eric’s solution… myDF1$studyno <- as.character(myDF1$studyno) myDF2$studyno <- as.character(myDF2$studyno) myDF3 <- merge(myDF1, myDF2, by="studyno", all.x=TRUE ) %>% dplyr::mutate( pf_mcl = ifelse( is.na(pf_mcl.y), p

Re: [R] Populate one data frame with values from another dataframe for rows that match

2017-10-15 Thread Kevin Wamae
Dear @William, thanks for the feedback. I have tested it on the larger dataset and noticed that it created two variables, pf_raw and pf_curated. The output we were looking for, was one that takes the variable pf_mcl in curated dataset and replaces pf_mcl in matching ro

Re: [R] Bootstrapped Regression

2017-10-15 Thread Rui Barradas
Hello, Much clearer now, thanks. It's a matter of changing the function boot calls to return the predicted values at the point of interess, education = 50, income = 75. I have changed the way the function uses the indices a bit, the result is the same, it's just the way I usually do it. pre