Re: [R] Steps to create spatial plots

2018-01-16 Thread lily li
Hi Eric, Thanks, it works. If I want to convert the matrix to the 1-D vector for the levelplot, should I use the command below? I thought the t() is a reverse function, but may be not. values <- layer$z values.v <- as.vector(t(values)) On Tue, Jan 16, 2018 at 12:36 AM, Eric Berger

Re: [R] Merging RData files

2018-01-16 Thread Henrik Bengtsson
To expand on what Bert suggests. Use: loadToEnv <- function(file, ..., envir = new.env()) { base::load(file = file, envir = envir, ...) } envA <- loadToEnv("a.RData") envB <- loadToEnv("b.RData") and then access the objects in environments envA and envB using environment access methods, e.g.

Re: [R] barplot that displays sums of values of 2 y colums grouped by different variables

2018-01-16 Thread kenneth dyson
Thanks everyone. Got it to work like this, if anyone is interested: import the data with readr, taking in only the columns that have numeric values ("n" and "y") and the column with the groups ("city"). aggregate the data by the group ("city") so that each variable has a sum: |sum_data

Re: [R] flatpak installation package?

2018-01-16 Thread Jeff Newmiller
Of course... R _is_ open source. However, it is unwise to assume that the volunteers scratching itches for their preferred distros will take on additional work... it is more likely that you will need to take on scratching that new itch. -- Sent from my phone. Please excuse my brevity. On

[R] flatpak installation package?

2018-01-16 Thread Treutwein Bernhard
Is there any chance for a distribution independent flatpak installation package for R ? See: http://flatpak.org Background: I recently bought an Acer notebook with endless OS preinstalled (see: http://endlessos.com). It is Debian based, but uses only flatpak as installation package format.

Re: [R] Merging RData files

2018-01-16 Thread Bert Gunter
?load Read this carefully. Pay attention to its instructions re: overwriting existing objects. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On

Re: [R] Information installation package sjPlot

2018-01-16 Thread Paul Bivand
This depends on the resources of your computer. If it's very small, some dependencies can take a long time. My record is the glmmTMB dependency with over 24 hours compilation (on an old netbook). One helpful way round can be to download the .tar.gz of the package, close down all other programs,

Re: [R] Merging RData files

2018-01-16 Thread Duncan Murdoch
On 16/01/2018 7:13 AM, Steven Yen wrote: Understood. In my case, a.RData and b.RData contain identical variables/data, plus simulation outputs from separate runs. The codes deliver what I need. Good to know the three lines work. Thank you. You might also want to investigate saveRDS/readRDS.

[R] Letters group Games-Howell post hoc in R

2018-01-16 Thread David Bars Cortina
Hello everybody, I use the sweetpotato database included in R package: data(sweetpotato) This dataset contains two variables: yield(continous variable) and virus(factor variable). Due to Levene test is significant I cannot assume homogeneity of variances and I apply Welch test in R instead of

Re: [R] Packages couldn't load

2018-01-16 Thread Thierry Onkelinx
You need to make sure that the rJava package is working. Consider using the readxl package instead of xlsx. Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST

Re: [R] Merging RData files

2018-01-16 Thread Steven Yen
Understood. In my case, a.RData and b.RData contain identical variables/data, plus simulation outputs from separate runs. The codes deliver what I need. Good to know the three lines work. Thank you. On 1/16/2018 8:06 PM, Duncan Murdoch wrote: > On 16/01/2018 6:33 AM, Steven Yen wrote: >> Hi

[R] Packages couldn't load

2018-01-16 Thread Emeka Don
Dear All, I have been trying to install Xlsx package in R but i have been getting this error after the installation. Please can anyone help? > any(grepl("xlsx",installed.packages())) [1] TRUE > library("xlsx") Loading required package: rJava Error: package or namespace load failed for ‘rJava’:

Re: [R] Merging RData files

2018-01-16 Thread Duncan Murdoch
On 16/01/2018 6:33 AM, Steven Yen wrote: Hi all, This is great. Again, here is what I need. I run two separate jobs (a.R and b.R) with results (say regression outputs) going to a.RData and b.RData. I like to put all results in one place (where I can retrieve them in one place, ab.RData). The

Re: [R] Merging RData files

2018-01-16 Thread Steven Yen
Hi all, This is great. Again, here is what I need. I run two separate jobs (a.R and b.R) with results (say regression outputs) going to a.RData and b.RData. I like to put all results in one place (where I can retrieve them in one place, ab.RData). The following codes do it (I am not sure if

Re: [R] Merging RData files

2018-01-16 Thread PIKAL Petr
Huh. I may by completely wrong but you cannot do such "merging". .RData files are AFAIK places where all objects from given session are stored. However you could load each .RData file and save/export result (one object). BTW, what do you mean exactly by "combine/consolidate"? And finally,

Re: [R] Merging RData files

2018-01-16 Thread Duncan Murdoch
On 16/01/2018 3:43 AM, Steven Yen wrote: I ran two separate hours-long projects. Results of each were saved to two separate .RData files. Content of each includes, among others, the following:    me    se  t p sig pc21.age    0.640 0.219  2.918 0.004 *** pc21.agesq 

Re: [R] sum multiple csv files

2018-01-16 Thread Alejandra Lopez-Galan
Hi all, Thanks for your help and sorry for the confusion. Also Thanks Jeff, your solution worked well, I was trying to perform matrix (element-wise) addition as you mentioned, but I didn't know how to formulate my question. Thanks for the references, they also help me to understand more. Cheers,

[R] Merging RData files

2018-01-16 Thread Steven Yen
I ran two separate hours-long projects. Results of each were saved to two separate .RData files. Content of each includes, among others, the following:    me    se  t p sig pc21.age    0.640 0.219  2.918 0.004 *** pc21.agesq  0.000 0.000    NaN   NaN pc21.inc 

[R] [R-pkgs] Natural Language Processing for non-English languages with udpipe

2018-01-16 Thread Jan Wijffels
Dear R users, I'm happy to announce the release of version 0.3 of the udpipe R package on CRAN (https://CRAN.R-project.org/package=udpipe). The udpipe R package is a Natural Language Processing toolkit that provides language-agnostic 'tokenization', 'parts of speech tagging', 'lemmatization',