Displaying 5 results from an estimated 5 matches for "zemajik".
2009 Oct 01
2
Treating variables as symbols
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 such a use would be to create a function
y<-function(x) {a*x}
and by typig y(2) I would get the
2010 Feb 08
3
Dividing one column of form xx-yy into two columns, xx and yy
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="-" addition
won't work since the rest of the factors are separated by commas.
So first
2010 Sep 21
1
Creating table from data frame
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. So that each cell
a_ij in the matrix represents the associated value for the factor
combination
2010 Oct 22
1
Controlling number of numbers before R rewrites to "+e18" etc
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 constantly rewriting these IDs to the abbreviated +eX which
hinders me from exporting the data to the
2009 May 20
1
Supressing the enumeration of output in console
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 rid of the listing [1].
This isn't usually a problem when working with the