Re: [R] Help with R

2016-11-19 Thread Jackson Hooten
Rui Barradas, Thank you very much for your help! This isn't an actual homework assignment, it's an independent project that I'm conducting that my teacher was just giving me a tutorial to help me. Thank you again! Sincerely, Jackson Sent from my iPhone > On Nov 19, 2016, at 3:33 PM, Rui B

Re: [R] Run a Python code from R

2016-11-19 Thread Robert Baer
From https://www.r-bloggers.com/rpithon-vs-rpython/ "Similar to rPython, the rPithon package (http://rpithon.r-forge.r-project.org) allows users to execute Python code from R and exchange the data between Python and R. However, the underlying mec

Re: [R] Help with R

2016-11-19 Thread Rui Barradas
Hello, First of all, there's a no homework policy in R-Help, but since it's the first time you post I'll try to give some help. Now, you are trying to call two functions in one statement, system.file and readPNG. If you separate the calls, you will see that the call to system.file is returni

Re: [R] Help with R

2016-11-19 Thread Duncan Murdoch
On 19/11/2016 1:32 PM, Jackson Hooten wrote: Hello R Help, I am fairly new to R and have been scouring the internet trying to find useful tips, tricks and advice with how to solve my problems with R. I finally was able to find you guys, and am now asking for your help. You can find a fairly re

Re: [R] Help with R

2016-11-19 Thread Jeff Newmiller
This question is a bit too vague for the R mailing lists. For general advice on using this list, read the Posting Guide linked in the footer of this and every post on this list. One key recommendation made there is to send plain text emails because html frequently corrupts your example code so

Re: [R] load and

2016-11-19 Thread Bert Gunter
... and in addition are the files in your current working directory? (see ?setwd) . If not you'll need a full path to the file. -- 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 C

Re: [R] Help with R

2016-11-19 Thread Bert Gunter
If you haven't already done so, I strongly recommend that you stop doing what you're doing until you first spend some time with an R tutorial or two. You can find some good suggestions here: https://www.rstudio.com/online-learning/#R rseek.org is also a good resource for R queries; "plot maps" br

[R] Help with R

2016-11-19 Thread Jackson Hooten
Hello R Help, I am fairly new to R and have been scouring the internet trying to find useful tips, tricks and advice with how to solve my problems with R. I finally was able to find you guys, and am now asking for your help. I have a number of different questions regarding R. My most pressing ques

Re: [R] load and

2016-11-19 Thread Jeff Newmiller
But if save.image() was used with objects that have the same names then load will overwrite the object making comparing difficult. The solution to that is to use the envir argument to load your objects into distinct environments, as in [1]. [1] https://stat.ethz.ch/pipermail/r-help/2016-August

Re: [R] load and

2016-11-19 Thread Rui Barradas
Hello, 1) You don't need to do t1 = load(...), use just load(...). The objects saved in the file will be created with the same name they had when they were saved. 2) If the object dat256 was not found try file_dat256 <- file.choose() load(file = file_dat256) Hope this helps, Rui Barradas E

[R] load and

2016-11-19 Thread Val
Hi all, I have two *.RData objects saveds in different time. They do have the same number of columns but different number of rows. I was trying to load and compare the two files by the first columns but face problem. t1=load(file="dat.RData") t2=load(file="dat256.RData") Error: object 'dat256' no

[R] Average of x normalizations

2016-11-19 Thread Guillaume Tahon
Dear all, I am currently using R to normalize data (an OTU table). This all happens by using the Vegan package. An example of the script that I'm using is posted below. What happens is the following: I first read a text file in which the OTU table is stored. In this table every column represent

Re: [R] Replace a dot in a string (".") with a space (" ")

2016-11-19 Thread Rui Barradas
And here is another. sub("\\.", " ", "c.t") Rui Barradas Em 19-11-2016 01:35, Bert Gunter escreveu: Well of course. See ?regexp where it says: "The period . matches any single character." (Always a good idea to read man pages, although this *is* a complex one) Setting the fixed argument to