Re: [R] Controlling number of numbers before R rewrites to "+e18" etc

2010-10-25 Thread ZeMajik
ses to see how to do this. > > Provide a subset of your data and the statements that you are using to > read in the data. > > On Fri, Oct 22, 2010 at 1:15 PM, ZeMajik wrote: > > Hey, > > > > I'm using R as a pre-processor for a large dataset with IDs which are &g

[R] Controlling number of numbers before R rewrites to "+e18" etc

2010-10-22 Thread ZeMajik
Hey, I'm using R as a pre-processor for a large dataset with IDs which are numeric (but has no numeric meaning so can be seen as factors). I do some data formating and then write it out to a csv file. However the problem is that the IDs are very long, 18-22 chars long more precisely. R is constan

Re: [R] Creating table from data frame

2010-09-23 Thread ZeMajik
On Tue, Sep 21, 2010 at 8:39 AM, ZeMajik wrote: > >> Hey, >> >> I have a dataset where two columns are factors and another column consists >> of values. Each combination of factors can only have a single value >> assigned >> to it. >> I'd like t

[R] Creating table from data frame

2010-09-21 Thread ZeMajik
Hey, I have a dataset where two columns are factors and another column consists of values. Each combination of factors can only have a single value assigned to it. I'd like to represent this as a matrix or table where the rows are the first column factors and the columns the second column factors.

[R] Dividing one column of form xx-yy into two columns, xx and yy

2010-02-08 Thread ZeMajik
I have a data set where one column consists of two numerical factors, separated by a "-". So my data looks something like this: 43-156 43-43 1267-18 . . . There are additional columns consisting of single factors as well, so reading the csv file (where the data is stored) with the sep="-" additio

[R] R-squared for ANOVA model

2009-12-07 Thread ZeMajik
Hey, In SAS after doing an ANOVA you also get the aptness of fit as R-squared in the ANOVA table. I've tried getting the R-squared from R but have failed miserably. I've tried searching google and the manual as well Is it possible to extract R-squared from ANOVA models in R? [[alternativ

Re: [R] Treating variables as symbols

2009-10-01 Thread ZeMajik
quot; Same thing with expressions such as yacas("x*x") However > yacas("2*2") expression(4) So it seems there is a successful connection between yacas and R. I didn't find any info on the problem by googling it unfortunately! Any ideas what it might be? Thanks again, M

[R] Treating variables as symbols

2009-10-01 Thread ZeMajik
Hey, I'm trying to find how to perform operations with a variable treated as a symbol. For, an extremely simple, example I want to integrate a*x with respect to x and I want to find the indefinite integral of this, (a*x^2/2), or the definite integral with some interval for x. Another example of su

[R] Supressing the enumeration of output in console

2009-05-20 Thread ZeMajik
Hi! Pretty low content question but I've had major trouble finding an answer for it so I hope it's alright. I'm obviously new to R, and have been trying to get rid of the numerated output I get in the console. What I mean more specifically is that X<-4;X comes out as [1] 4 and I'd like to get