Re: [R] Newbie Question on R versus Matlab/Octave versus C

2019-01-30 Thread Alan Feuerbacher
On 1/30/2019 7:44 AM, Martin Møller Skarbiniks Pedersen wrote: On Mon, 28 Jan 2019 at 22:58, Alan Feuerbacher > wrote: [...] > These all have advantages and > disadvantages for certain tasks, but as I'm new to R I hardly know how > to evaluate them. Any suggestion

Re: [R] Newbie Question on R versus Matlab/Octave versus C

2019-01-30 Thread Martin Møller Skarbiniks Pedersen
On Mon, 28 Jan 2019 at 22:58, Alan Feuerbacher wrote: [...] > These all have advantages and > disadvantages for certain tasks, but as I'm new to R I hardly know how > to evaluate them. Any suggestions? If you have one-hour left, you can download pdf file (8 pages total) "Getting started in R"

Re: [R] Newbie Question on R versus Matlab/Octave versus C

2019-01-29 Thread Alan Feuerbacher
On 1/29/2019 8:11 AM, Gabor Grothendieck wrote: Two additional comments: - depending on the nature of your problem you may be able to get an analytic solution using branching processes. I found this approach successful when I once had to model stem cell growth. That sounds very interesting! Pl

Re: [R] Newbie Question on R versus Matlab/Octave versus C

2019-01-29 Thread Gabor Grothendieck
Two additional comments: - depending on the nature of your problem you may be able to get an analytic solution using branching processes. I found this approach successful when I once had to model stem cell growth. - in addition to NetLogo another alternative to R would be the Julia language which

Re: [R] Newbie Question on R versus Matlab/Octave versus C

2019-01-28 Thread Gabor Grothendieck
R has many similarities to Octave. Have a look at: https://cran.r-project.org/doc/contrib/R-and-octave.txt https://CRAN.R-project.org/package=matconv On Mon, Jan 28, 2019 at 4:58 PM Alan Feuerbacher wrote: > > Hi, > > I recently learned of the existence of R through a physicist friend who > use

[R] Newbie Question on R versus Matlab/Octave versus C

2019-01-28 Thread Alan Feuerbacher
Hi, I recently learned of the existence of R through a physicist friend who uses it in his research. I've used Octave for a decade, and C for 35 years, but would like to learn R. These all have advantages and disadvantages for certain tasks, but as I'm new to R I hardly know how to evaluate t

Re: [R] Newbie question: error message with install.packages

2015-08-21 Thread Peter Wicher
Peter, Thank you. I tried a different mirror (in TX) and install.packages(“RWeka”) worked. I really appreciate your help. Best, Peter > On Aug 20, 2015, at 3:06 PM, Peter Langfelder > wrote: > > From an older post by Uwe Ligges: > > Anyway: R tried to download the package but got an html

Re: [R] Newbie question: error message with install.packages

2015-08-20 Thread Peter Langfelder
>From an older post by Uwe Ligges: Anyway: R tried to download the package but got an html page, obviously, hence either the mirror you are using is corrupted or someone in between (like some proxy?) delivers html pages rather than packages... In other words, check your proxy/internet settings,

Re: [R] Newbie question: error message with install.packages

2015-08-20 Thread Peter Wicher
Many thanks. Yes, I am using the R.app GUI: [R.app GUI 1.66 (6996) x86_64-apple-darwin13.4.0] At startup, > getOption("repos") CRAN "@CRAN@" Then when attempting again to install RWeka I'm able to select the mirror, and after that the result is the same as yours: > getOption("repos")

Re: [R] Newbie question: error message with install.packages

2015-08-19 Thread David Winsemius
> On Aug 19, 2015, at 9:13 PM, Peter Wicher wrote: > > Hi, > > I’m starting to work my way through “Machine Learning With R” by Brett Lantz. > > > Running on Mac OS X 10.10.4 > > I’ve downloaded and installed R and the R Console comes up fine. > > Whenever I use the install.packages com

[R] Newbie question: error message with install.packages

2015-08-19 Thread Peter Wicher
Hi, I’m starting to work my way through “Machine Learning With R” by Brett Lantz. Running on Mac OS X 10.10.4 I’ve downloaded and installed R and the R Console comes up fine. Whenever I use the install.packages command, regardless of the package I get the same error message: > install.pac

Re: [R] Newbie question: ROC function in TTR package

2014-11-16 Thread Joshua Ulrich
On Nov 16, 2014 8:10 PM, "Ernie Stokely" wrote: > > One of the great frustrations for a newbie to R is the documentation uses the same syntax in its description as the items it is trying to describe, a general no-no when giving language definitions. Why does the documentation not include the equat

Re: [R] Newbie question: ROC function in TTR package

2014-11-16 Thread David Winsemius
On Nov 16, 2014, at 5:54 PM, Ernie Stokely wrote: > One of the great frustrations for a newbie to R is the documentation uses the > same syntax in its description as the items it is trying to describe, a > general no-no when giving language definitions. Why does the documentation > not include

[R] Newbie question: ROC function in TTR package

2014-11-16 Thread Ernie Stokely
One of the great frustrations for a newbie to R is the documentation uses the same syntax in its description as the items it is trying to describe, a general no-no when giving language definitions. Why does the documentation not include the equation being represented by the function, thereby cl

Re: [R] Newbie Question: Repeatable Tasks

2013-11-04 Thread Patrick Burns
mx.de Sent: Mon, 4 Nov 2013 09:34:54 +0100 To: r-help@r-project.org Subject: [R] Newbie Question: Repeatable Tasks Hello mailing list, I am new to R using RStudio in Windows and I just want to have repeated tasks each day but could not find an answer to that reading a lot of intros, scrolling th

Re: [R] Newbie Question: Repeatable Tasks

2013-11-04 Thread csvirtual
--Original Message- > From: csvirt...@gmx.de > Sent: Mon, 4 Nov 2013 09:34:54 +0100 > To: r-help@r-project.org > Subject: [R] Newbie Question: Repeatable Tasks > > Hello mailing list, > > > > I am new to R using RStudio in Windows and I just want to have > r

Re: [R] Newbie Question: Repeatable Tasks

2013-11-04 Thread John Kane
- > From: csvirt...@gmx.de > Sent: Mon, 4 Nov 2013 09:34:54 +0100 > To: r-help@r-project.org > Subject: [R] Newbie Question: Repeatable Tasks > > Hello mailing list, > > > > I am new to R using RStudio in Windows and I just want to have repeated > tasks each day but c

[R] Newbie Question: Repeatable Tasks

2013-11-04 Thread csvirtual
Hello mailing list, I am new to R using RStudio in Windows and I just want to have repeated tasks each day but could not find an answer to that reading a lot of intros, scrolling through even more and reading on S.O. I connect to a database, load data, do calculation, write results to the

Re: [R] Newbie question : selecting subset of a Matrix

2012-11-07 Thread arun
3 A.K. - Original Message - From: "tho...@free.fr" To: r-help@r-project.org Cc: Sent: Wednesday, November 7, 2012 5:20 PM Subject: [R] Newbie question : selecting subset of a Matrix I have a matrix, I would like to use it like I use where query on an SQL table Let's sa

[R] Newbie question : selecting subset of a Matrix

2012-11-07 Thread thocar
I have a matrix, I would like to use it like I use where query on an SQL table Let's say my matrix is > wok who task 1 joe task1 2 joe task2 3 joe task3 4 jack task1 5 jack task2 I want to extract a matrix that contains only rows where who = "joe" and task != "task2" The result

Re: [R] Newbie Question on making subsets for every element of a table column

2012-04-23 Thread Petr Savicky
On Mon, Apr 23, 2012 at 02:33:22PM -0700, cyclondude wrote: > Yes. That is what I was looking for. Is there a simple way to (in this > scenario) > > > > out[[1]] > > v1 v2 > 1 a 1 > 4 a 2 > 7 a 3 > > > a <- out[[1]] > > for each one? Hi. If you want to generate variable nam

Re: [R] Newbie Question on making subsets for every element of a table column

2012-04-23 Thread R. Michael Weylandt
There are, but it's generally considered better style to keep them all in a single list and use lapply() if you want to do things to each element. Michael On Mon, Apr 23, 2012 at 5:33 PM, cyclondude wrote: > Yes. That is what I was looking for.  Is there a simple way to (in this > scenario) > >

Re: [R] Newbie Question on making subsets for every element of a table column

2012-04-23 Thread cyclondude
Yes. That is what I was looking for. Is there a simple way to (in this scenario) > out[[1]] v1 v2 1 a 1 4 a 2 7 a 3 > a <- out[[1]] for each one? Thanks! -- View this message in context: http://r.789695.n4.nabble.com/Newbie-Question-on-making-subsets-for-every-element-of-a

Re: [R] Newbie Question on making subsets for every element of a table column

2012-04-23 Thread Petr Savicky
On Mon, Apr 23, 2012 at 10:58:26AM -0700, cyclondude wrote: > Hello, very new to R, playing with tables, and I am trying to do > > x <- subset(data, columnlabel == x) > > for every element in my column that I could find by using > > table (data [,"columnlabel"]) Hi. The following may be clos

[R] Newbie Question on making subsets for every element of a table column

2012-04-23 Thread cyclondude
Hello, very new to R, playing with tables, and I am trying to do x <- subset(data, columnlabel == x) for every element in my column that I could find by using table (data [,"columnlabel"]) I'd appreciate any useful help and I'm sorry if I didn't get the terminology perfect. Thanks. -- Vie

Re: [R] newbie question: strategy

2012-04-08 Thread sys ott
thanks for the heads up, I am checking all my providers EULAs to see which one I can share online... I imagine that as long as it is delayed 24 hours, there might be no issues... we will see... either way, worst case, I lost $9 for a registration... best case... I can share most ETF's with the comm

Re: [R] newbie question: strategy

2012-04-08 Thread R. Michael Weylandt
Just a heads up: I'm pretty sure Josh and the other QS developers have access to intra-day data, but they can't provide an example using it in the package because the EULAs of most data providers won't allow direct redistribution of their data. The examples included all go online and download data

Re: [R] newbie question: strategy

2012-04-07 Thread sysot1t
yes, I would have expected documented samples for something simple.. as I said, I am not asking for anything complex but something rather simple that I can use to learn from and build upon.. not a highly complex example that provides me with little explanation of what is going on... quanstrat is gr

Re: [R] newbie question: strategy

2012-04-07 Thread Joshua Ulrich
On Apr 7, 2012 7:55 PM, "sysot1t" wrote: > > I am not asking anyone to deliver anything, to the best of my understanding You asked for documented code examples of the items you listed in your original email. > all that I requested in terms of functionality is more than likely done in > quantstra

Re: [R] newbie question: strategy

2012-04-07 Thread sysot1t
I am not asking anyone to deliver anything, to the best of my understanding all that I requested in terms of functionality is more than likely done in quantstrat as you point out. Issues is: quantstrat has extremely poor documentation. Yes, there are "samples", but they are certainly not simple and

Re: [R] newbie question: strategy

2012-04-07 Thread R. Michael Weylandt
So you want us to deliver an entire backtesting architecture for you? That's a pretty hefty request... But being R, it's already been done. This has all basically been made available in the quantstrat project (google it) -- the documentation is online and you can see lots of worked examples in the

[R] newbie question: strategy

2012-04-06 Thread sysot1t
newbie to R, less than a week, and I ordered some books about R, but I learn better by examples.. and thus far I cant find a good example of what I am trying to do... which follows: assuming one is using any instrument intra-day data... I want to.. open a file (lets name it signal) that will cont

Re: [R] Newbie question: Converting Table

2011-09-23 Thread David Winsemius
e geschreven: [R] Newbie question: Converting Table Hi, I'm new to R, and I have searched helpfiles and this forum on my 2 questions. Hope you guys can help me out! :-) You did not search enough. You probably want table or xtabs Q1 untested res <- xtabs(~subject+class, data=your.file) ife

Re: [R] Newbie question: Converting Table

2011-09-23 Thread Metronome123
23 sep. 2011 (w38), om 14:12 heeft Petr Pikal [via R] het volgende geschreven: > > [R] Newbie question: Converting Table > > Hi, > > I'm new to R, and I have searched helpfiles and this forum on my 2 > questions. Hope you guys can help me out! :-) You did not s

[R] Newbie question: Converting Table

2011-09-23 Thread Metronome123
Hi, I'm new to R, and I have searched helpfiles and this forum on my 2 questions. Hope you guys can help me out! :-) Many thanks in advance! Cheers, Lars Q1: I imported a csv file with columnames subject and class. There are about 1000 different classes... It looks like this: subject1, class

Re: [R] Newbie question - struggling with boxplots

2011-08-16 Thread Glen Barnett
something like this? par(mfrow=c(2,2)) boxplot(Sepal.Length~Species,data=iris,main='Sepal Length') boxplot(Sepal.Width~Species,data=iris,main='Sepal Width') boxplot(Petal.Length~Species,data=iris,main='Petal Length') boxplot(Petal.Width~Species,data=iris,main='Petal Width') par(mfrow=c(1,1))

Re: [R] Newbie question - struggling with boxplots

2011-08-16 Thread David Winsemius
On Aug 16, 2011, at 5:24 PM, Geoffrey Stoel wrote: Hopefully I will not be flamed for this on the list, but I am starting out with R and having some trouble with combining plots. I am playing with the famous iris dataset (checking out example dataset in R while reading through Introductio

Re: [R] Newbie question - struggling with boxplots

2011-08-16 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Ista Zahn > Sent: Tuesday, August 16, 2011 4:13 PM > To: g.st...@hourglazz.com > Cc: r-help@r-project.org > Subject: Re: [R] Newbie question - struggling

Re: [R] Newbie question - struggling with boxplots

2011-08-16 Thread Ista Zahn
On Tue, Aug 16, 2011 at 5:24 PM, Geoffrey Stoel wrote: > Hopefully I will not be flamed for this on the list, but I am starting out > with R and having some trouble with combining plots. > > I am playing with the famous iris dataset (checking out example dataset in R > while reading through Introd

[R] Newbie question - struggling with boxplots

2011-08-16 Thread Geoffrey Stoel
Hopefully I will not be flamed for this on the list, but I am starting out with R and having some trouble with combining plots. I am playing with the famous iris dataset (checking out example dataset in R while reading through Introduction to datamining) What I would like to do is create three gr

Re: [R] newbie Question on Generic and Method

2011-02-09 Thread Greg Snow
ject.org] On Behalf Of Laura Smith > Sent: Tuesday, February 08, 2011 7:59 PM > To: r-help@r-project.org > Subject: [R] newbie Question on Generic and Method > > Hi! > > Here is a newbie question, please: what is the difference between a > generic > and a method? >

[R] newbie Question on Generic and Method

2011-02-08 Thread Laura Smith
Hi! Here is a newbie question, please: what is the difference between a generic and a method? Thanks, Laura [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] newbie question on str output

2010-12-17 Thread Dieter Menne
Laura Smith wrote: > > What do the nfnGroupdata, nfGroupdata mean, please? > > ??nfnGroupedData (not nfnGroupdata) gives some information, and tells you, that it is related to package nlme. This package is one of the most useful and has a good documenting book (Pinheiro/Bates), but the groupe

Re: [R] newbie question on str output

2010-12-16 Thread David Winsemius
On Dec 16, 2010, at 11:10 PM, Laura Smith wrote: Hi! Here is some output from an str command: str(CO2) Classes ‘nfnGroupedData’, ‘nfGroupedData’, ‘groupedData’ and 'data.frame': 84 obs. of 5 variables: $ Plant: Ord.factor w/ 12 levels "Qn1"<"Qn2"<"Qn3"<..: 1 1 1 1 1 1 1 2 2 2 .

[R] newbie question on str output

2010-12-16 Thread Laura Smith
Hi! Here is some output from an str command: > str(CO2) Classes ‘nfnGroupedData’, ‘nfGroupedData’, ‘groupedData’ and 'data.frame': 84 obs. of 5 variables: $ Plant: Ord.factor w/ 12 levels "Qn1"<"Qn2"<"Qn3"<..: 1 1 1 1 1 1 1 2 2 2 ... $ Type : Factor w/ 2 levels "Quebec","Mississip

Re: [R] newbie question on importing and parsing file by row

2010-11-05 Thread Gerrit Eichner
Hello, Emily, take a look at read.table() for importing (with or without header depending on your file which holds the data). Maybe X <- read.table( "yourfilename", header = FALSE, row.names = 1) and then pvalues <- apply( X, 1, function( x) fisher.test(

[R] newbie question on importing and parsing file by row

2010-11-05 Thread Emily Wong
Hi, I'm new to R and I have a file with many rows of values. Each row contains a title and values for a contingency table e.g. row 1= title8 0 37796 47 which is a table called 'title' with values 8 0 37796 47 I would like to know how I can import this using R and for each

Re: [R] Newbie question

2010-04-30 Thread John Kane
. This assumes col1, c2 and col3 are separate vectors. plot(col, col2) lines(col1,col3) The package ggplot does very nice graphs but completely differently :) --- On Fri, 4/30/10, William Clapham wrote: > From: William Clapham > Subject: [R] Newbie question > To: r-help@r-pr

Re: [R] Newbie question

2010-04-30 Thread Tal Galili
Hi Bill (or William) What plot do you want to create ? (scatter plot, boxplot, so on?) Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebre

[R] Newbie question

2010-04-30 Thread William Clapham
If I have 3 columns of data, col 1 = Independent Var; cols 2 and 3 are Dep. Vars. I would like to produce a plot with both: col2=f(col1) and col3=f(col1). How do I do this such that I can control line parameters (line type, color, etc). I know that if I stack the data and col2 and col3 are trea

Re: [R] Newbie question on precision

2010-01-08 Thread Magnus Torfason
On 1/8/2010 1:29 PM, Magnus Torfason wrote: Paul Evans wrote: How can I get R to change the default precision value? For example: x=0.9 1-x [1] 0 Is there a way that I can get a non-zero value using some parameter, or some package? many thanks. The 'gmp' package allows calcu

Re: [R] Newbie question on precision

2010-01-08 Thread Magnus Torfason
Paul Evans wrote: How can I get R to change the default precision value? For example: x=0.9 1-x [1] 0 Is there a way that I can get a non-zero value using some parameter, or some package? many thanks. The 'gmp' package allows calculation with arbitrary precision rationals (

Re: [R] Newbie question on precision

2010-01-08 Thread jim holtman
FAQ 7.31 The precision of a floating point number is about 16 digits and your 'x' is at that limit. If you reduce it, you will see a result: > x=0.9 > 1-x [1] 0 > print(1-x, digits=20) [1] 0 > x=0.99 > print(1-x, digits=20) [1] 0.00999200722162641 > On F

Re: [R] Newbie question on precision

2010-01-08 Thread Ted Harding
On 08-Jan-10 16:56:25, Paul Evans wrote: > Hi all, > How can I get R to change the default precision value? For example: >> x=0.9 >> 1-x > [1] 0 > > Is there a way that I can get a non-zero value using some parameter, > or some package? > many thanks. The problem here is that, as

[R] Newbie question on precision

2010-01-08 Thread Paul Evans
Hi all, How can I get R to change the default precision value? For example: > x=0.9 > 1-x [1] 0 > Is there a way that I can get a non-zero value using some parameter, or some package? many thanks. [[alternative HTML version deleted]] __

Re: [R] newbie question

2009-12-31 Thread David Winsemius
Shall we assume that you are using a Mac? If so what version? This information would be neatly summarized if you posted the results of sessionInfo(). Using my web-browser I find there is no directory at R-Forge with this name: http://R-Forge.R-project.org/bin/macosx/universal/contrib/2.10

[R] newbie question

2009-12-31 Thread André Deboer
Hello, When I install the package Rsafd, I get the following message. > install.packages("Rsafd",repos="http://R-Forge.R-project.org ",dependecies=TRUE) Warning in install.packages("Rsafd", repos = "http://R-Forge.R-project.org";, : argument 'lib' is missing: using '/Users/aajd/Library/R/2.10/l

Re: [R] Newbie question Multcomp

2009-11-05 Thread Richard M. Heiberger
qwe84 wrote: Hello, I'm a totally newbie to R and I'm taking a class using S+. In the class we use the multcomp command which takes a aov object and calculates confidence intervals for all pairwise differences by the Fisher least significant differences method. How can I do this in R. Thank

[R] Newbie question Multcomp

2009-11-05 Thread qwe84
Hello, I'm a totally newbie to R and I'm taking a class using S+. In the class we use the multcomp command which takes a aov object and calculates confidence intervals for all pairwise differences by the Fisher least significant differences method. How can I do this in R. Thank you for taking

Re: [R] Newbie Question About Setting Plot Axis Limits

2009-09-23 Thread Thomas Lumley
On Wed, 23 Sep 2009, Jason Rupert wrote: Using the following: plot(c(1,1), ylim=c(0, 15), xlim=c(0, 13)) This is not what I expected because I would have expected the origin to be (0, 0), but on the plot it looks a little different on the plot. The y axis also appears to extend a little be

Re: [R] Newbie Question About Setting Plot Axis Limits

2009-09-23 Thread andrew
This is not a complete answer, but try the following in order plot(c(1,1), ylim=c(0, 15), xlim=c(0, 13), axes = FALSE) axis(1) axis(2) box() If you want lines, use abline. Hacking something together can be done with these commands. On Sep 24, 9:36 am, Jason Rupert wrote: > Using the following

[R] Newbie Question About Setting Plot Axis Limits

2009-09-23 Thread Jason Rupert
Using the following: plot(c(1,1), ylim=c(0, 15), xlim=c(0, 13)) However, it produces the following: http://n2.nabble.com/Simple-Plot-Axis-Limits-Question-td3703091.html This is not what I expected because I would have expected the origin to be (0, 0), but on the plot it looks a little different

Re: [R] Newbie question re stddev, quantmod and performanceanalytics

2009-08-18 Thread John Kane
What package or library are you using? What is YHOO.Close ? Try str(retYHOO) to see what it looks like. --- On Mon, 8/17/09, afx111 wrote: > From: afx111 > Subject: [R] Newbie question re stddev, quantmod and performanceanalytics > To: r-help@r-project.org > Received: Mo

Re: [R] Newbie question re stddev, quantmod and performanceanalytics

2009-08-18 Thread jim holtman
try: ?sd sd(retYHOO, na.rm=TRUE) On Mon, Aug 17, 2009 at 1:43 AM, afx111 wrote: > > Hi, > > I am trying to calculate the std dev of returns of YHOO so far i got: > > getSymbols("YHOO") > retYHOO <- Return.calculate(Cl(YHOO)) >> sd(retYHOO) > > YHOO.Close >        NA > > but i received an NAc

Re: [R] Newbie question re stddev, quantmod and performanceanalytics

2009-08-17 Thread Stefan Grosse
On Sun, 16 Aug 2009 22:43:14 -0700 (PDT) afx111 wrote: A> getSymbols("YHOO") A> retYHOO <- Return.calculate(Cl(YHOO)) A> > sd(retYHOO) A> A> YHOO.Close A> NA A> A> but i received an NAcan any assist? tks! You receive NA because getSymbols went wrong, so YHOO was empty. Try getSym

[R] Newbie question re stddev, quantmod and performanceanalytics

2009-08-17 Thread afx111
Hi, I am trying to calculate the std dev of returns of YHOO so far i got: getSymbols("YHOO") retYHOO <- Return.calculate(Cl(YHOO)) > sd(retYHOO) YHOO.Close NA but i received an NAcan any assist? tks! -- View this message in context: http://www.nabble.com/Newbie-question-re-stdd

Re: [R] Newbie Question About Histograms

2009-01-28 Thread Eik Vettorazzi
How about > dta<-read.table("clipboard",header=T) > means<-aggregate(dta$Length,by=list(YearC=dta$YearC),FUN=mean) > barplot(means[,2],names.arg=means[,1]) you may have a look at ?barplot to see (lots of) options for fine tuning the plot. hth. pfc_ivan schrieb: Also I forgot to say that The

Re: [R] Newbie Question About Histograms

2009-01-28 Thread pfc_ivan
Also I forgot to say that The Y-axis values for each YearC would be the mean value of all the Lenghts that happen in that YearC. Basically I cant figure out how to put the mean values of Lengths for each YearC on Y axis. Thanks in advance! -- View this message in context: http://www.nabble.co

Re: [R] Newbie Question About Histograms

2009-01-28 Thread Peter Alspach
Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of pfc_ivan > Sent: Thursday, 29 January 2009 9:04 a.m. > To: r-help@r-project.org > Subject: [R] Newbie Question About Histograms > > > He

[R] Newbie Question About Histograms

2009-01-28 Thread pfc_ivan
Hello everyone. Just have a question , cant figure out how to make this histogram. I have this table, that i stored in a variable name new.data2. Table looks like this Year GeoArea SmpNo Month Gear Maturity Length Age YearC 1989 1 36210 221225 1 1988 1991 1

Re: [R] Newbie question about "grouping"

2009-01-28 Thread hadley wickham
On Wed, Jan 28, 2009 at 8:13 AM, Rixon, John C. wrote: > Hi folks: > > I am a SQL guy who just downloaded and installed R yesterday. I am > trying to evaluate some "complex" aggregations we are currently > performing with Syncsort (and have tried in Oracle) with R. I have > loaded data in a data

Re: [R] Newbie question about "grouping"

2009-01-28 Thread Thomas Lumley
Some useful commands are: by(), aggregate(), ave(), split(). eg by(market_value, account_id, sum) -thomas On Wed, 28 Jan 2009, Rixon, John C. wrote: Hi folks: I am a SQL guy who just downloaded and installed R yesterday. I am trying to evaluate some "complex" aggregations we are

Re: [R] Newbie question about "grouping"

2009-01-28 Thread David Winsemius
?by ?aggregate ?ave Further specifics might be forthcoming if self-contained example data and desired output were offered. The help pages will have worked examples, of course. -- David Winsemius On Jan 28, 2009, at 9:13 AM, Rixon, John C. wrote: Hi folks: I am a SQL guy who just downl

[R] Newbie question about "grouping"

2009-01-28 Thread Rixon, John C.
Hi folks: I am a SQL guy who just downloaded and installed R yesterday. I am trying to evaluate some "complex" aggregations we are currently performing with Syncsort (and have tried in Oracle) with R. I have loaded data in a dataframe and have performed some of the simple aggregations on a subs

Re: [R] Newbie question

2009-01-04 Thread Don MacQueen
Also, subset( abntest, abntesr > 90 ) -Don At 8:55 PM -0700 1/3/09, greggal...@gmail.com wrote: Hi: I'm loading in students test scores with: abntest <- read.table("scores.txt") if I type: abntest I get ALL the values. I want to be able to filter it by various things such as:

Re: [R] Newbie question

2009-01-04 Thread Daniel Malter
surus - -Ursprüngliche Nachricht- Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im Auftrag von greggal...@gmail.com Gesendet: Saturday, January 03, 2009 10:55 PM An: r-help@r-project.org Betreff: [R] Newbie question Hi: I'm loading in students test s

Re: [R] Newbie question

2009-01-03 Thread cruz
abntest[abntest$abntesr > 90,] On Sun, Jan 4, 2009 at 11:55 AM, wrote: > Hi: > > I'm loading in students test scores with: > >> abntest <- read.table("scores.txt") > > if I type: > >>abntest > > I get ALL the values. I want to be able to filter it by various things such > as: > > > if( abntes

[R] Newbie question

2009-01-03 Thread greggallen
Hi: I'm loading in students test scores with: > abntest <- read.table("scores.txt") if I type: >abntest I get ALL the values. I want to be able to filter it by various things such as: if( abntesr > 90) Print abntest; and other logical operators. I'm sure this is simple for someone experie

Re: [R] Newbie Question: parts of a dataframe

2008-12-30 Thread Patrick Burns
I believe you are looking for: Test[1, 2:6, drop=TRUE] Patrick Burns patr...@burns-stat.com +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Unwilling S User") glenn wrote: Assuming I have dataframe ³test² with dim = (2,10) say; And that I can choose some o

Re: [R] Newbie Question: parts of a dataframe

2008-12-30 Thread Alexandre Swarowsky
not sure what you want either but reshape package may help, melt function. Sarah Goslee wrote: > On Tue, Dec 30, 2008 at 11:57 AM, glenn wrote: >> Assuming I have dataframe ³test² with dim = (2,10) say; >> >> And that I can choose some of the data; >> >> Test[1,2:6] >> >> How do I turn this data

Re: [R] Newbie Question: parts of a dataframe

2008-12-30 Thread Sarah Goslee
On Tue, Dec 30, 2008 at 11:57 AM, glenn wrote: > Assuming I have dataframe ³test² with dim = (2,10) say; > > And that I can choose some of the data; > > Test[1,2:6] > > How do I turn this data into a list [which I would like to run a function > across]. > Tried as.list but doesn¹t look or feel rig

[R] Newbie Question: parts of a dataframe

2008-12-30 Thread glenn
Assuming I have dataframe ³test² with dim = (2,10) say; And that I can choose some of the data; Test[1,2:6] How do I turn this data into a list [which I would like to run a function across]. Tried as.list but doesn¹t look or feel right. Thanks in advance, it is simple I am sure so apologies for

Re: [R] newbie question on tcltk

2008-12-22 Thread Gabor Grothendieck
*** WARNING *** Just a warning to anyone thinking of copying the code below into their workspace -- the second line in the code below will erase your entire workspace. On Mon, Dec 22, 2008 at 5:57 PM, eugen pircalabelu wrote: > Hi List, > > Can anyone tell me how could i put the "BACK" button in

[R] newbie question on tcltk

2008-12-22 Thread eugen pircalabelu
Hi List, Can anyone tell me how could i put the "BACK" button in the following code, just under the "AAA" menu? I want this button to go back to the previous page, and since it has nothing to do with the "1" and "2" buttons, i want it somehow separated from these two buttons, but i don't know h

Re: [R] newbie question on snow/Rmpi

2008-12-19 Thread Whit Armstrong
Thanks, Dirk. I had read your very long conversation on the openMPI list but wasn't sure if there was a resolution. I had overlooked the fact that there is an hpc list, will post there from now on. Cheers, Whit On Fri, Dec 19, 2008 at 11:52 AM, Dirk Eddelbuettel wrote: > > Whit, > > On 19 Dec

Re: [R] newbie question on snow/Rmpi

2008-12-19 Thread Dirk Eddelbuettel
Whit, On 19 December 2008 at 10:17, Whit Armstrong wrote: | Does anyone know if these errors can be safely ignored? | | [linuxsvr.kls.corp:16242] mca: base: component_find: unable to open | osc pt2pt: file not found (ignored) | | this is on RHEL5 w/ openMPI 1.2.7 Yes. Hao (of Rmpi fame) and I

Re: [R] newbie question on snow/Rmpi

2008-12-19 Thread Whit Armstrong
Does anyone know if these errors can be safely ignored? [linuxsvr.kls.corp:16242] mca: base: component_find: unable to open osc pt2pt: file not found (ignored) this is on RHEL5 w/ openMPI 1.2.7 -Whit On Mon, Dec 15, 2008 at 6:31 PM, Dirk Eddelbuettel wrote: > On Mon, Dec 15, 2008 at 01:16:4

Re: [R] newbie question on snow/Rmpi

2008-12-16 Thread Whit Armstrong
Thanks very much. the presentation is very helpful. -Whit On Mon, Dec 15, 2008 at 6:31 PM, Dirk Eddelbuettel wrote: > On Mon, Dec 15, 2008 at 01:16:46PM -0500, Whit Armstrong wrote: >> I have a network of four machines set up. I'm having trouble spawning >> my slaves on these machines. >> >>

Re: [R] newbie question on snow/Rmpi

2008-12-15 Thread Dirk Eddelbuettel
On Mon, Dec 15, 2008 at 01:16:46PM -0500, Whit Armstrong wrote: > I have a network of four machines set up. I'm having trouble spawning > my slaves on these machines. > > All the examples I have found so far use makeCluster with type="MPI", > and I guess I'm missing some kind of cluster configura

[R] newbie question on snow/Rmpi

2008-12-15 Thread Whit Armstrong
I have a network of four machines set up. I'm having trouble spawning my slaves on these machines. All the examples I have found so far use makeCluster with type="MPI", and I guess I'm missing some kind of cluster configuration in my environment variables because all my clusters are formed on the

Re: [R] R Newbie Question

2008-10-20 Thread Gabor Grothendieck
tIs a bit neater to create list objects for each of star1 and star2 and then, since the various functions are not used outside of gravitation stick them right in gravitation. Also we can use distance for len as well by giving it a default second arg of 0 and sqr does not seem to do much so we can

Re: [R] R Newbie Question

2008-10-20 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Johannes Bauer > Sent: Monday, October 20, 2008 10:42 AM > To: r-help@r-project.org > Subject: [R] R Newbie Question > > Hello list, > > I just started R today and t

[R] R Newbie Question

2008-10-20 Thread Johannes Bauer
Hello list, I just started R today and tried something quite simple. I wanted to create a colored plot and eventually after hours of fiddling around got it working. However, my solution seems very suboptimal and I'd really appreciate your hints on how to improve. I believe that R already offers ma

[R] Newbie question - how to do it 'right'

2008-09-02 Thread JohnDoe365
I read the documentation carefully, yet I miss the experience to do it right Suppose I have a data.frame DS with this data: Homepage? Willhaveone?When? HP WHP WHEN levels='Yes', 'No' levels='Yes', 'No', 'NV'l

Re: [R] Newbie question: How to use tapply() on several vectorssimultaneously

2008-08-01 Thread ONKELINX, Thierry
Meyer CC: r-help@r-project.org Onderwerp: Re: [R] Newbie question: How to use tapply() on several vectorssimultaneously something like that should work : aggregate(test, list(test[,1]), mean) 2008/8/1 Bertolt Meyer <[EMAIL PROTECTED]> > Dear R users, > > I have a newbie-question tha

Re: [R] Newbie question: How to use tapply() on several vectors simultaneously

2008-08-01 Thread Dimitris Rizopoulos
one option is aggregate(), e.g., test <- as.data.frame(cbind(c(rep(1,5),rep(2,5)), rnorm(10), rnorm(10))) names(test)[1] <- "groupID" aggregate(test[c("V2", "V3")], list(test$groupID), mean) I hope it helps. Best, Dimitris -- Dimitris Rizopoulos Biostatistical Centre School of Public Health C

Re: [R] Newbie question: How to use tapply() on several vectors simultaneously

2008-08-01 Thread Stephan Kolassa
Hi Bertolt, by(test,INDICES=test$groupID,FUN=mean) And today's a holiday in Switzerland, so stop working already ;-) HTH Stephan Bertolt Meyer schrieb: Dear R users, I have a newbie-question that I couldn't resolve after reading through several pieces of documentation and searching the ar

Re: [R] Newbie question: How to use tapply() on several vectors simultaneously

2008-08-01 Thread David Hajage
something like that should work : aggregate(test, list(test[,1]), mean) 2008/8/1 Bertolt Meyer <[EMAIL PROTECTED]> > Dear R users, > > I have a newbie-question that I couldn't resolve after reading through > several pieces of documentation and searching the archive. > > I have a data.frame cont

[R] Newbie question: How to use tapply() on several vectors simultaneously

2008-08-01 Thread Bertolt Meyer
Dear R users, I have a newbie-question that I couldn't resolve after reading through several pieces of documentation and searching the archive. I have a data.frame containing experimental data from a group experiment in psychology. Each line represents a single participant, but participants

Re: [R] Newbie question about vector matrix multiplication

2008-05-14 Thread apjaworski
r-help@r-project.org Subject Re: [R] Newbie question about 05/14/2008 02:28 vector matrix multip

  1   2   >