Re: [R] accessing an object with a variable ?

2014-01-18 Thread Marius 't Hart
Does this help you? http://stackoverflow.com/questions/3971844/access-variable-value-where-the-name-of-variable-is-stored-in-a-string-in-r On Sat, 18 Jan 2014, ce wrote: I want access and object , its name is in an variable : require(xts) data(sample_matrix) head(sample_matrix)

Re: [R] accessing an object with a variable ?

2014-01-18 Thread Marius 't Hart
Does this help you? http://stackoverflow.com/questions/3971844/access-variable-value-where-the-name-of-variable-is-stored-in-a-string-in-r On 14-01-18 04:21 PM, ce wrote: I want access and object , its name is in an variable : require(xts) data(sample_matrix) head(sample_matrix)

Re: [R] Very basic statistics in R

2013-05-06 Thread Marius 't Hart
Dear Xavier, Jeffs answer was to point out two things to you: 1: How to find these functions on your own. 2: These functions are definitely available in R Good luck, Marius On Mon, 6 May 2013, Xavier Prudent wrote: Dear Jeff, Thanks for your fast answer, I could for sure implement the

[R] Three-way ANOVA shows me two-way results

2010-11-23 Thread Marius 't Hart
Hi all, I'm doing a 3-way ANOVA like this: summary(aov(formula('FP ~ (lum * obj * man)^3 - Error(vp/(lum * obj * man)^3)'),data=dataf)) But in the output I only get 1- and 2-way effects, like this one: Error: vp:obj:man Df Sum Sq Mean Sq F value Pr(F) obj:man 1 1.5291e-34 1.5291e-34 5.7011

[R] Three-way ANOVA shows me two-way results

2010-11-23 Thread Marius 't Hart
Hi all, I'm doing a 3-way ANOVA like this: summary(aov(formula('FP ~ (lum * obj * man)3 - Error(vp/(lum * obj * man)3)'),data=dataf)) But in the output I only get 1- and 2-way effects, like this one: Error: vp:obj:man Df Sum Sq Mean Sq F value Pr(F) obj:man 1 1.5291e-34 1.5291e-34 5.7011

Re: [R] how to test if a vector contain a value?

2010-08-16 Thread Marius 't Hart
mylist = c(1,2,3) if (any(mylist == 3)) { print(3) } [1] 3 On 08/16/2010 03:06 PM, Hyunchul Kim wrote: Hi all, How to convert following simple python script to R if x in a_list: print x OR simply, how to test if a vector contain a value? Thank you in advance, Hyunchul

Re: [R] R plotting on linux, regardless of architecture of local machine

2010-06-04 Thread Marius 't Hart
Hi, If one wants to see an X GUI from a remote application, there's no other way than to run an X server locally (the easiest way to do that on Windows is with Xming IMHO). So if you don't want an X server locally, you should not use an X GUI. R can of course also be installed on Windows,