Thanks.The code you gave me at the end works correctly.. I was wondering if
there is more efficient way to access each element withouth this classic for
loop.
RegardsAlex
On Wednesday, April 1, 2015 5:54 PM, David Winsemius
wrote:
On Apr 1, 2015, at 3:34 AM, Alaios via R-help wr
Using Windows 8.1
I have an Arduino connected and I am trying to read from and write to a
serial connection using R. The problem involves the reading. I am able to
establish the connection using the following:
> system("mode COM4 baud=9600 parity=n data=8", show.output.on.console=T)
> a = file(
Before (I hope!) someone else answers in an unkind tone (and someone
probably will), I have a few suggestions:
1) please use plain text email (an option somewhere in your email
software). Using HTML email usually makes the email harder to read on
r-help.
2) if at all possible, please try to const
Hello,
I am new to R and am encountering an error message that I cannot find a
solution for.
I am attempting to calculate MPD (mean pairwise distance), without weighting
for abundance, with a community species list and a phylogenetic tree in newick
format with branch lengths.
I have read in both
Apologies for cross-posting
We would like to announce the following 2 statistics courses in Perth,
Australia.
Course1: Data exploration, regression, GLM & GAM with introduction to R
Location: UWA, Perth, Australia
Date: 20-24 July 2015
Price: 500 GBP
Course website: http://www.hi
Greetings, I am working on a project where we are applying the
Kruskal-Wallace test to some factor data to evaluate their correlation with
existing grade data. I know that the grade data is nonnormal therefore we
cannot rely on ANOVA or a similar parametric test. What I would like to
find is a me
David,
In data.table v1.9.5 (current development version, which you can get
from here: https://github.com/Rdatatable/data.table/wiki/Installation),
new features were added to both `melt` and `cast` for data.tables.
They both can handle multiple columns simultaneously. I think this
would be of inte
Dear anja,
You shouldn't really need XLConnect -- if it's absent, the only consequence
is that you won't be able to import Excel files directly in the Rcmdr. Just
say "no" when the Rcmdr asks to install XLConnect, and the Rcmdr GUI should
start up normally (unless there's some other problem). If
This is really a question about statistics rather than R but see below
On 01/04/2015 06:28, Fix Ace wrote:
I tried to run the sample code from R:
dd <- data.frame(a = gl(3,4), b = gl(4,1,12)) a b
1 1 1
2 1 2
3 1 3
4 1 4
5 2 1
6 2 2
7 2 3
8 2 4
9 3 1
10 3 2
11 3 3
12 3 4
options("contr
On Apr 1, 2015, at 3:34 AM, Alaios via R-help wrote:
> Dear all,I have a R structure that was created with replicate.The data sets
> looks to be a matrix with each cell being a list.
> str(error_suburban_0[,1],max.level=1)
> List of 4
> $ vaR :List of 20
> ..- attr(*, "class")= chr "variog
On Wed, Apr 1, 2015 at 10:14 AM, a b wrote:
> Thanks for the quick response!
>
> While I agree Rcommander is not the same thing as either ESS or RStudio, it
> can also be useful as a wrapper when testing out functions and scripts. I
> learned R on it and it's a more comfortable environment for me
On Wed, 1 Apr 2015, Prof Brian Ripley wrote:
I would start by trying LANGUAGE=en , e.g.
More specifically, you can use en_US or en_GB.
Rich
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo
Thanks for the quick response!
While I agree Rcommander is not the same thing as either ESS or RStudio, it
can also be useful as a wrapper when testing out functions and scripts. I
learned R on it and it's a more comfortable environment for me than ESS.
(Thank you for writing it!)
Strangely tcl
BTW I've also tried this as non-root:
R CMD javareconf -e
and there's still a problem with rJava not being able to access the library
that was supposedly compiled and installed in my home R directory.
I think it may have to do with the fact we're using an older version of R.
We're using Java 1.
On 01/04/2015 15:14, Alaios via R-help wrote:
Hi all,I am a linux R user and my default R environemnt (after writing R in
linux console) returns the error messages in German (I am not the system
adminitstrator and I can not change system settings). I know that the English
package is also insta
On 01/04/2015 11:06, Prof Brian Ripley wrote:
On 01/04/2015 09:52, Thomas wrote:
Hi,
I believe you are looking for 'text connections': see the 'text'
argument to read.table() and ?textConnection.
Thanks, that's it !
__
R-help@r-project.org maili
Hi all,I am a linux R user and my default R environemnt (after writing R in
linux console) returns the error messages in German (I am not the system
adminitstrator and I can not change system settings). I know that the English
package is also installed so I guess I need to set some environmental
Dear Angela,
There's very little to go on here. The messages to which you refer concern
primarily Mac OS X, where the most common problem is failure to install
XQuartz or to reinstall it after an OS upgrade. Help for this and other Mac
OS X problems is available in the Rcmdr installation notes, at
PCA 1, 2, and 3 refer to the scores not the loadings.
Check out the help for princomp.
?princomp
pc.cr <- princomp(USArrests, cor = TRUE)
pc.cr$scores[1:3, ]
Jean
On Tue, Mar 31, 2015 at 4:26 PM, im db wrote:
> Dear All, I want to use princomp() function in R in order to calculate
> Principl
Dear all,I have a R structure that was created with replicate.The data sets
looks to be a matrix with each cell being a list.
str(error_suburban_0[,1],max.level=1)
List of 4
$ vaR :List of 20
..- attr(*, "class")= chr "variogram"
$ Shadowing:List of 2
..- attr(*, "class")= chr "geodata"
On 01/04/2015 09:52, Thomas wrote:
Hi,
Is there a way to create "memory connections" in R which are valid
connections to read.table (and associated function)? By saying "memory
connection" I refer to something like a connection created from a simple
character object (of length 1) - instead of ha
Hi,
Is there a way to create "memory connections" in R which are valid
connections to read.table (and associated function)? By saying "memory
connection" I refer to something like a connection created from a simple
character object (of length 1) - instead of having the content in a
physical f
I tried to run the sample code from R:
dd <- data.frame(a = gl(3,4), b = gl(4,1,12)) a b
1 1 1
2 1 2
3 1 3
4 1 4
5 2 1
6 2 2
7 2 3
8 2 4
9 3 1
10 3 2
11 3 3
12 3 4
options("contrasts")
model.matrix(~ a + b, dd)(Intercept) a2 a3 b2 b3 b4
11 0 0 0 0 0
21 0 0
23 matches
Mail list logo