[R] scaling data to png indexed

2010-11-30 Thread Josep coca
p { margin-bottom: 0.21cm; } Hi all I have a numeric matrix data I scale it linearly to be able to reduce it to unsigned 8bits. I create a raster object from scaled data and setting data type to INT1U.I want to export this data to png indexed

Re: [R] Scaling data

2009-09-30 Thread Dry, Jonathan R
Hello all I am manipulating some data and wish to expand/unmerge (i.e. do the opposite of aggregate) rows in a data matrix based on the values in a particular column and a seperator, e.g. Col1Col2 n1;n2 6 ...separating by ; becomes Col1Col2 num16 num26 Any ideas? Also

Re: [R] Scaling data

2009-09-30 Thread Henrique Dallazuanna
Try this: as.data.frame(sapply(sapply(DF, as.character, simplify = FALSE), strsplit, ;)) On Wed, Sep 30, 2009 at 1:18 PM, Dry, Jonathan R jonathan@astrazeneca.com wrote: Hello all I am manipulating some data and wish to expand/unmerge (i.e. do the opposite of aggregate) rows in a data

[R] Scaling data

2009-09-28 Thread Dry, Jonathan R
Hello all I have a data frame representing a matrix of data. For each of my variables (rows) I want to scale the data between 0 (representing the minimum value in that row) and 1 (representing the maximum value in that row). I was wondering if there is a simple function anywhere that does

Re: [R] Scaling data

2009-09-28 Thread Ted Harding
On 28-Sep-09 09:55:04, Dry, Jonathan R wrote: Hello all I have a data frame representing a matrix of data. For each of my variables (rows) I want to scale the data between 0 (representing the minimum value in that row) and 1 (representing the maximum value in that row). I was wondering if

Re: [R] Scaling data

2009-09-28 Thread baptiste auguie
Try this, library(ggplot2) apply(matrix(10*rnorm(10),2), 1, ggplot2::rescale) HTH, baptiste 2009/9/28 Dry, Jonathan R jonathan@astrazeneca.com: Hello all I have a data frame representing a matrix of data.  For each of my variables (rows) I want to scale the data between 0

Re: [R] Scaling data

2009-09-28 Thread Jim Lemon
On 09/28/2009 07:55 PM, Dry, Jonathan R wrote: Hello all I have a data frame representing a matrix of data. For each of my variables (rows) I want to scale the data between 0 (representing the minimum value in that row) and 1 (representing the maximum value in that row). I was wondering if

Re: [R] Scaling data

2009-09-28 Thread Peter Dalgaard
Jim Lemon wrote: On 09/28/2009 07:55 PM, Dry, Jonathan R wrote: Hello all I have a data frame representing a matrix of data. For each of my variables (rows) I want to scale the data between 0 (representing the minimum value in that row) and 1 (representing the maximum value in that row).