[R] showing the image

2008-09-04 Thread rostam shahname
Hi everyone, I have a matrix containing color values of an image same as following, [1,] #44 #44 #434343 #404040 #3D3D3D #3D3D3D #3E3E3E [2,] #414141 #414141 #414141 #404040 #3F3F3F #3F3F3F #3F3F3F [3,] #3E3E3E #3E3E3E #3F3F3F #404040 #404040 #404040 #404040 [4,] #3E3E3E #3D3D3D #3E3E3E

[R] bmp

2008-08-14 Thread rostam shahname
Hi R users, I already had post this question under the title of bmp header, there was a mistake in my post. The following is the same post without the mistake. Thanks Rostam I have a xml file. A value of one of the nodes of the xml file is a bmp image encoded in base64. I would like to read

[R] bmp header

2008-08-13 Thread rostam shahname
Hi R users, I have a xml file. A value of one of the nodes of the xml file is a bmp image(RAW format) encoded in base64. I would like to read this image by R. I think I should do the following steps: 1. Decoding it from base64 to binary. 2. Removing the header of the image file 3. building the

[R] converting rgb() output to 0-255

2008-08-12 Thread rostam shahname
Hi, I have three matrices, Red, Green and Blue. I would like to produce a matrix which is the combined values of Red, Green and Blue matrices. I know rgb() does the job, but the values are not between 0-255, they are in the following format: #2C312C I would like to have the values between 0-255.

[R] number of an element in a matrix

2008-08-11 Thread rostam shahname
Hi, I wonder if there is any function which gives the number of times which an element is repeated in the matrix. Let say there is a matrix, I would like to find out how many times number 2 has been repeated in the matrix, or in other words, how many elements of the matrix are equal 2. Thanks for

[R] max size of a matrix

2008-08-05 Thread rostam shahname
Hi R users, I am trying to create a matrix, but R has problem with the size of dim, wondering if there is anything that I can do? a - diag(147456) Error in array(0, c(n, p)) : 'dim' specifies too large an array Thanks for your help Rostam [[alternative HTML version deleted]]

[R] creating image using RGB values

2008-08-01 Thread rostam shahname
Hi R users, I would like to create an image using three matrices which contain the values of Red, Green, and Blue of each pixel, i.e. one matrix which has values of red, one which has values of green, and one which has values of blue. The values are between 0 and 1 instead of 0-255. I have

[R] Running external python script

2008-05-11 Thread rostam shahname
Hi R users, I have a python script. Assume that I would like to run this external python script when executing a R script or command line R. I don't know how to this using R code. I really appreciate if you could help me. Thanks for your help Rostam [[alternative HTML version deleted]]

Re: [R] Running external python script

2008-05-11 Thread rostam shahname
mac os X On Sun, May 11, 2008 at 8:24 PM, Rolf Turner [EMAIL PROTECTED] wrote: On 12/05/2008, at 11:17 AM, rostam shahname wrote: Hi R users, I have a python script. Assume that I would like to run this external python script when executing a R script or command line R. I don't know