[R] How am i able to create Box plots of a factor (weight) separated by other factors (breed)?

2015-03-14 Thread Lyle Warren
> > > I have data with columns for animal ID, breed, and weight. > > I'd like to create a box plot of weight, separated by breed (there are 4 > breeds). > > Any ideas? > > Here's a sample of the data (there are 100 rows): > > id weight breed > 1 453 brahman > 2 527 brahman

[R] Persons with objects –> Objects and persons

2015-03-14 Thread marekl
Hi, I have a table with persons in rows and objects associated to these persons. And I need to transform it to table with objects in rows and persons next to them. As it is shown on the picture. Can you please help me how to

[R] A simple For-Loop doesn't work

2015-03-14 Thread Nicolae Doban
Hello, my name is Nick and I'm working on a project. I'm having trouble with building a simple for-loop. In this loop I want to read csv files, perform a corr function and save it to a pdf file. I tried to solve this problem by looking for solutions online but couldn't figure it out. Could you als

Re: [R] measure of goodness of fit for the model without an intercept

2015-03-14 Thread kamaraju kusumanchi
On Thu, Jan 29, 2015 at 6:41 PM, Yan Wu wrote: > Hi, > > When I fit the regression model without an intercept term, R-squared tends > to much larger than the R-squared in the model with an intercept. So in this > case, what¹s a more reasonable measure of the goodness of fit for the model > without

Re: [R] Is RcppOctave package available for Mac to install?

2015-03-14 Thread C W
Hi David, Thanks for the detail information. I think I will probably work in Octave instead, and fix the problem when I have a little more time. Mike On Sat, Mar 14, 2015 at 2:13 AM, David Winsemius wrote: > > > On Mar 13, 2015, at 11:50 PM, C W wrote: > > > > Hi everyone, > > > > When I tri

Re: [R] Course and book announcements on r-help

2015-03-14 Thread Spencer Graves
While answering a question, I believe it's acceptable (even encouraged) to cite a relevant book, even if it's yours ;-) Spencer On 3/14/2015 9:53 AM, Martin Maechler wrote: John Kane on Fri, 13 Mar 2015 06:16:19 -0800 writes: > I have the feeling that this was discuss

Re: [R] Course and book announcements on r-help

2015-03-14 Thread Martin Maechler
> John Kane > on Fri, 13 Mar 2015 06:16:19 -0800 writes: > I have the feeling that this was discussed 3-4 years ago > and the overall opinion seems to be that if the course or > book was relevant then it was acceptable on an occasional > basis. No spamming-type or mass

Re: [R] Help with error: arguments imply differing number of rows

2015-03-14 Thread Boris Steipe
Not the same. Read carefully... > $ edge : int [1:15, 1:2] 10 11 12 13 14 14 13 12 15 15 ... > $ edge : int [1:15, 1:2] 10 11 12 13 14 15 15 14 16 16 ... ^^... etc B. On Mar 14, 2015,

Re: [R] Help with error: arguments imply differing number of rows

2015-03-14 Thread Aman Gill
Thanks for the reply. The results of str() are indeed the same. Is there anything else I can check that might explain the difference? > str(phyl_tree) List of 4 $ edge : int [1:15, 1:2] 10 11 12 13 14 14 13 12 15 15 ... $ Nnode : int 7 $ tip.label : chr [1:9] "Heliantheae" "Eupatori

Re: [R] iconv() replaces invalid characters with " " instead of " " (two spaces instead of one) on unix?

2015-03-14 Thread Prof Brian Ripley
On 14/03/2015 11:07, Anthony Damico wrote: hello, i am trying to replace non-ASCII characters in a character string with a single space. the iconv() function works as i expect it to on windows, but on unix, non-ASCII characters are getting replaced with two spaces instead of one. i suppose i co

Re: [R] graphs

2015-03-14 Thread John Kane
I suspect that this does look a bit easier to interpret. It certainly beats 68 lines on one graph. Still it's a lot of individual subplots. What I was suggesting was grouping all NASS, HASS, etc. together and graphing each so that you get several lines per subplot. I don't know if this makes se

Re: [R] Help with Programmin-1 submission.

2015-03-14 Thread John McKown
Gary, First off, I doubt anyone here will really be able to help you with a question which is, basically, "How do I submit the R code that I've worked on to my college as an answer to a programming assignment". Unless by chance someone else here happens to be taking that course and knows how to. I

Re: [R] Help with Programmin-1 submission.

2015-03-14 Thread Sarah Goslee
Hi Gary, We have no idea what you're talking about. This is the general world-wide R-help group; you need to ask on a forum specific to your course. This group doesn't help with homework anyway, and this is a problem with your course's stuff, not a general R question. Sarah On Friday, March 1

Re: [R] evaluating spatial autocorrelation in a raster

2015-03-14 Thread Roger Bivand
Julie Lee-Yaw yahoo.ca> writes: > > Hi > I am attempting to explore the scale of spatial autocorrelation in a raster (eventually across a stack of 10 > but for now a single layer) and consequently in a potential sample of points across the landscape (ie. if we > wanted to know what sampling desi

[R] Help with Programmin-1 submission.

2015-03-14 Thread Gary Baggett
Help. First of all, I admit being a noob when it comes to dealing with R and Git-hub (but not new to programming[embedded mostly]). That being said, this first programming submission with this course is giving me fits. I have the first part of the assignment done, loaded the "submit" sourc

[R] iconv() replaces invalid characters with " " instead of " " (two spaces instead of one) on unix?

2015-03-14 Thread Anthony Damico
hello, i am trying to replace non-ASCII characters in a character string with a single space. the iconv() function works as i expect it to on windows, but on unix, non-ASCII characters are getting replaced with two spaces instead of one. i suppose i could write a workaround for my code, but i'm w

[R] evaluating spatial autocorrelation in a raster

2015-03-14 Thread Julie Lee-Yaw
Hi I am attempting to explore the scale of spatial autocorrelation in a raster (eventually across a stack of 10 but for now a single layer) and consequently in a potential sample of points across the landscape (ie. if we wanted to know what sampling design in terms of distance would minimize aut