[R] Where precision change

2010-10-18 Thread Alaios
Hello everyone. I need some help to understand when number precision in R is set. For this please consider the following example for (i in c(2:length(final))){ sizex - c(sizex,(final[i]-final[i-1],digits=2))) # round is used to remove values that are too small like e-17.

[R] Directive for first and last array arguments

2010-10-18 Thread Alaios
Hello everyone, could you help me learn if there are any directives that can be used to address the first and last element of a matrix array? I would like to thank you in advance for your help Best Regards Alex [[alternative HTML version deleted]]

Re: [R] Directive for first and last array arguments

2010-10-18 Thread Alaios
you need? -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Alaios Sent: 18 October 2010 15:59 To: Rhelp Subject: [R] Directive for first and last array arguments Hello everyone, could you help me learn if there are any directives

[R] Looking for covariance function -OR- how do you search

2010-10-18 Thread Alaios
Hello everyone., I am looking for a covariance function this not the first time I have this type of problem (to find which function does something). I try in google with R cran covariance function but usually this ends with different results that do not help me that much. Could you please

[R] R step-by-step execution

2010-10-22 Thread Alaios
Hello! I wouldl ike to ask you if R supports step by step execution. I have written some nested loops and I would like to check on every step what are the values of some variables. Printing all the variables just creates a really big output of numbers. Could you please

[R] create sequence of numbers

2010-10-22 Thread Alaios
Hello. I want to create some sequence of numbers . So far I used sequence which does not work always seq(CRagent[[1]]$xy[1],CRagent[[2]]$xy[1],by=0.01) Error in seq.default(CRagent[[1]]$xy[1], CRagent[[2]]$xy[1], by = 0.01) : wrong sign in 'by' argument Calls: seq - seq.default if the

[R] cvs fpr R

2010-10-24 Thread Alaios
Hello everyone. These days I am writing some code for a small project. I have started having problems with different versions of the files I keep (in case I need to move to older files). I need some easy cvs platform ( I do not know if cvs is the general name or a specific program) that is easy

[R] plot does not work

2010-10-25 Thread Alaios
Hello everyone The following two commands plot.default(seq(1,5),seq(2,6)) plot(seq(1,5),seq(2,6)) plot nothing. One day ago this would create a simple plot diagram but unfortunately right now no plot appears. ?plot returns Help on topic 'plot' was found in the following packages: Plot a

Re: [R] plot does not work

2010-10-25 Thread Alaios
if no X11 available). Uwe Ligges On 25.10.2010 11:44, Alaios wrote: Hello everyone The following two commands plot.default(seq(1,5),seq(2,6)) plot(seq(1,5),seq(2,6)) plot nothing. One day ago this would create a simple plot diagram but unfortunately right now no plot appears. ?plot

[R] Zoom in in a plot

2010-10-26 Thread Alaios
in a simple plot. When i do plot is it possible to zoom in or out or this is not possible at all? Best Regards Alex [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] Zoom in in a plot

2010-10-27 Thread Alaios
. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Alaios Sent: Tuesday, October 26, 2010 9:31 AM To: Rhelp Subject: [R] Zoom

[R] How Plot, Axis and Rect work together?

2010-10-27 Thread Alaios
Hello everyone, I am trying to understand how plot axis and rect might work together I would like to plot some values on a plot with x(0,100) and y(0,100) i want to see all the values from 0,1,2,3,4,5,.100 written in the x and y axis. At the same time I want some grid to easily see when y

[R] Increase R precision

2010-10-27 Thread Alaios
Hello everyone. When I execute the following in R (18-46)/(45-93) [1] 0.583 I get small precision for what I am trying to deal with . Is it possible to increase the precision for this and for other operations? For example openoffice calc for this operation returns

Re: [R] Increase R precision

2010-10-27 Thread Alaios
Subject: Re: [R] Increase R precision Hi, It is not a problem of precision but a problem of display. options(digits=15) (18-46)/(45-93) [1] 0.583 Alain On 27-Oct-10 13:49, Alaios wrote: Hello everyone. When I execute the following in R (18-46)/(45-93) [1] 0.583 I get small

[R] keep adding elements to the matrix

2010-10-27 Thread Alaios
Hello everyone, I would like to create a dynamic array to keep storing number in it for (i in c(2:length(final))){ myarray -final[i]-final[i-1] myarray2-2*final[i] } At the end I would like to use myarray as the x values of an array and the myarray2 as the yvalues of the same

[R] one function with 2 returnh points

2010-10-30 Thread Alaios
Hello everyone. I have written quite a big function that at the end correctly returns the values I want. I found a rare exception that I want to cover also. The easier for me would be to write something like that function(){ if (rare exception happened) return that value # The

Re: [R] one function with 2 returnh points

2010-10-30 Thread Alaios
Thanks a lot :) From: Liviu Andronic landronim...@gmail.com Cc: Rhelp r-help@r-project.org Sent: Sat, October 30, 2010 11:31:35 AM Subject: Re: [R] one function with 2 returnh points Hello everyone. I have written quite a big function that at the end

[R] reduce print accuracy

2010-11-17 Thread Alaios
Hello everyone. Consider the following number below:  0.9333 0.9333 0.06667 Is it possible to print them with less digits like 0.93 0.93 0.06 (but without losing the R's accuracy). I would like to thank you in advance Best Regards Alex

Re: [R] reduce print accuracy

2010-11-17 Thread Alaios
Thanks a lot. Worked :) --- On Wed, 11/17/10, Henrique Dallazuanna www...@gmail.com wrote: From: Henrique Dallazuanna www...@gmail.com Subject: Re: [R] reduce print accuracy To: Alaios ala...@yahoo.com Cc: Rhelp r-help@r-project.org Date: Wednesday, November 17, 2010, 10:58 AM Try this: print

[R] Variable Editor

2010-11-17 Thread Alaios
Hello everoyne, If you have ever used matlab you should know the variable editor. You click over the value of a variable in the workspace and it opens like a excel sheet. Do you know if there is something like that in R . This will make easier for me to understand what values are stored in a

[R] Give me all operator

2010-11-17 Thread Alaios
Hello is there in R any operator that give you all the data of a matrix for example in matlab x(2,3) returns the 2ndth row and 3rdth column x(2,:) returns all the columns of the 2nd row. In R now I would like to print all the  CRagent[[i]][2]  CRagent[[:]][2] doesnot work of course. Other

Re: [R] Variable Editor

2010-11-17 Thread Alaios
17, 2010, 1:38 PM On Wed, 17 Nov 2010 04:11:17 -0800, Alaios wrote: Hello everoyne, If you have ever used matlab you should know the variable editor. You click over the value of a variable in the workspace and it opens like a excel sheet. Do you know if there is something like that in R

Re: [R] Give me all operator

2010-11-17 Thread Alaios
it). You don't need the :, you just don't write anything in R. Ivan Le 11/17/2010 14:34, Alaios a écrit : Hello is there in R any operator that give you all the data of a matrix for example in matlab x(2,3) returns the 2ndth row and 3rdth column x(2,:) returns all the columns of the 2nd row

Re: [R] Give me all operator

2010-11-17 Thread Alaios
to help you. And what is Mystruct by the way!? Could you send us the output from dput(your_objects) and/or str(your_objects)? I think you're really confused about the structure of your objects. You probably need to read more stuff about that! Ivan Le 11/17/2010 14:56, Alaios a écrit : Thanks a lot

[R] Find in R and R books

2010-11-17 Thread Alaios
Hello everyone. In matlab  (again) there is a fucntion find that returns you the indexes where the condition in find was met. I want the same functionality in R i.e find(Mydata2) to return all the indexes where the condition is met. Do you know something like that? Also when I try to search in

[R] How to catch warnings

2010-11-17 Thread Alaios
Hello when my code executes I receive the message that were some warnings. I want to catch warning messages at run time so to print some local variables and try to understand why this warning happens. I searched on internet and I tried withCallingHandlers( which seems to work but as I used

Re: [R] How to catch warnings

2010-11-18 Thread Alaios
. Best REgards Alex --- On Thu, 11/18/10, Michael Bedward michael.bedw...@gmail.com wrote: From: Michael Bedward michael.bedw...@gmail.com Subject: Re: [R] How to catch warnings To: Alaios ala...@yahoo.com Cc: Rhelp r-help@r-project.org Date: Thursday, November 18, 2010, 1:26 AM Hi Alex, Something

[R] Why some times R-halts?

2010-11-18 Thread Alaios
Hello everyone. I have written a small function that returns a 3*n array where n is typicall between 5-55. I issued in R shweights-shadowing_weights(x,xr) and I got the result in less that one sec. then I tried to see what is inside the shweights array and thus I issued the edit(shweights) which

[R] why help ignores some values

2010-11-18 Thread Alaios
Please take a look at the values below . [31,] 30.000 30.000 [32,] 31.000 31.000 [33,] 32.000 32.000 [34,] 33.000 33.000 [35,] 34.000 34.000 [36,]

Re: [R] why help ignores some values

2010-11-18 Thread Alaios
Goslee sarah.gos...@gmail.com wrote: From: Sarah Goslee sarah.gos...@gmail.com Subject: Re: [R] why help ignores some values To: Alaios ala...@yahoo.com Cc: Rhelp r-help@r-project.org Date: Thursday, November 18, 2010, 11:27 AM Possibly because R has no idea what the 35.872-th element

Re: [R] How to catch warnings

2010-11-18 Thread Alaios
...@gmail.com Subject: Re: [R] How to catch warnings To: Alaios ala...@yahoo.com Cc: Michael Bedward michael.bedw...@gmail.com, Rhelp r-help@r-project.org Date: Thursday, November 18, 2010, 11:37 AM -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/18/2010 11:11 AM, Alaios wrote: Dear Michael, I would

Re: [R] Give me all operator

2010-11-18 Thread Alaios
works nice : lapply( Mystruct, [, xy)  # should return a list with xy elements Thanks --- On Wed, 11/17/10, David Winsemius dwinsem...@comcast.net wrote: From: David Winsemius dwinsem...@comcast.net Subject: Re: [R] Give me all operator To: Alaios ala...@yahoo.com Cc: r-help@r-project.org

[R] Help me with R plotting

2010-11-18 Thread Alaios
Hello everyone. I want some help with plots. I have some robots in an area. Every robot is placed on x,y coordinates and every robot has a power consumption of some watts. I would like to show where are the robots by showing in a map dots (where every dots is the x,y coordinate). Below that

Re: [R] plot does not work

2010-11-18 Thread Alaios
Dear jim, just to update this. My problem is now fixed. Regards Alex --- On Mon, 10/25/10, jim holtman jholt...@gmail.com wrote: From: jim holtman jholt...@gmail.com Subject: Re: [R] plot does not work To: Alaios ala...@yahoo.com Cc: Rhelp r-help@r-project.org Date: Monday, October 25, 2010, 12

Re: [R] Help me with R plotting

2010-11-18 Thread Alaios
any box that will cover part of the image. Best Regards Alex --- On Thu, 11/18/10, Tal Galili tal.gal...@gmail.com wrote: From: Tal Galili tal.gal...@gmail.com Subject: Re: [R] Help me with R plotting To: Alaios ala...@yahoo.com Cc: Rhelp r-help@r-project.org Date: Thursday, November 18, 2010, 2

Re: [R] Help me with R plotting

2010-11-18 Thread Alaios
Thanks a lot :) nice one --- On Thu, 11/18/10, baptiste Auguié baptiste.aug...@googlemail.com wrote: From: baptiste Auguié baptiste.aug...@googlemail.com Subject: Re: [R] Help me with R plotting To: Alaios ala...@yahoo.com Cc: Rhelp r-help@r-project.org Date: Thursday, November 18, 2010, 3:34 PM

[R] Sample covariance matrix in R

2010-11-18 Thread Alaios
Hello everyone. I would like to find the sample covariance matrix using R. So far I read on the wikipedia what a sample_covariance is http://en.wikipedia.org/wiki/Sample_covariance according to wikipedia one vector is enough to calculate the sample covariance matrix. In R I tried cov(myvector)

[R] Merge two ggplots

2010-11-20 Thread Alaios
Hello everyone. I am using ggplot and I need some help to merge these two plots into one. plot_CR-function(x,y,agentid,CRagent){   library(ggplot2)     agent-CRagent[[agentid]] # To make following expression shorter   ggplot((data.frame(x=CRX,y=CRY,sr=agent$sr)))+  

[R] Merge two ggplots

2010-11-21 Thread Alaios
Sorry it was a typo: my code looks like: plot_shad_CR-function(x,y,agentid,CRagent,f){   library(ggplot2)      plotdata-melt(f)   names(plotdata)-c('x','y','z')   agent-CRagent[[agentid]] # To make following expression shorter   ggplot((data.frame(x=CRX,y=CRY,sr=agent$sr)))+  

[R] plot inside function does not work

2010-11-22 Thread Alaios
Hello everyone, when I commit a plot using console(command line?) plot works fine. I have created a function that plots based on the input. This function is called plot_shad. When I call this function alone in the command line I get my plot. Then I tried to use another function as

Re: [R] plot inside function does not work

2010-11-22 Thread Alaios
PM Alex, this may be FAQ 7.22 Claudia On 11/22/2010 02:19 PM, Alaios wrote: Hello everyone, when I commit a plot using console(command line?) plot works fine. I have created a function that plots based on the input. This function is called plot_shad. When I call this function alone

[R] Syntax Highlightning and Editor for Linux

2010-07-23 Thread alaios
Hello to the community . First post :) I would like to ask you which text editor do you use in Linux and how did you setup the syntax highlightning? one more question is it possible to debug any program in R by inserting breakpoints? I would like to thank you in advance for your help Best

Re: [R] Syntax Highlightning and Editor for Linux

2010-07-23 Thread Alaios
that are inside the file without executing the source(myfile.R) command first? Best Regards Alex - Original Message From: Duncan Murdoch murdoch.dun...@gmail.com To: alaios ala...@yahoo.com Cc: r-help@r-project.org Sent: Fri, July 23, 2010 2:13:48 PM Subject: Re: [R] Syntax Highlightning

Re: [R] Syntax Highlightning and Editor for Linux

2010-07-23 Thread Alaios
/article/using-gedit-or-rgedit-r simple send code to terminal shortcuts (much simpler than emacs, in my [[elided Yahoo spam]] /federico On Fri, Jul 23, 2010 at 2:42 PM, Rainer M Krug r.m.k...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23/07/2010 14:17, Alaios wrote: I

[R] Creating a map .

2010-07-26 Thread Alaios
Hello. I would try to explain what I would like to implement so to suggest me what to try out. I would like to create an area of X*X km that would be used to Simulate an area map (eg. city's area, suburban area). -X would be a parameter so I do not want it to be fixed -In this map I would

[R] what is a vignette?

2010-07-26 Thread Alaios
I am trying to find a simple R guide that explain what a vignette is but so far I didnt make any progress. I tried to search inside R's built in help.start() but it only returns results how to see vignettes. So could you please tell me what a vignette is and if you can also could you give some

[R] = vs - operator

2010-07-26 Thread Alaios
Hello I notice that in Linux the = operator works like the - operator So a=3 is similar to a-3. Could you please verify me that is correct? I would like to use = operator. Do you think that might be a problem in the future? Best Regards Alex __

[R] Understanding how R works

2010-07-28 Thread Alaios
Hello everyone. I am more than new into R. Today I have started reading about grf function that is included in geoR package. According the manual (vignette?) grf() generates (unconditional) simulations of Gaussian random fields for given covariance parameters. geoR2RF converts model

[R] Beginner stucked with raster + geoR package.

2010-07-28 Thread Alaios
Hello everyone. I am trying to build up understanding in R by trying to develop just some simple scenarios. I would like to explain you what I am trying to do and what I did so far. I would like to put inside a RasterLayer (raster package) a Gaussian field (for given covariance) using grf

Re: [R] Beginner stucked with raster + geoR package.

2010-07-28 Thread Alaios
Can someone help me please with step 5? r - setValues(r,temp) # Unfortunately this ends with the message: Error in setValues(r, temp) : values must be a vector How to make temp a vector? To: r-help@r-project.org Sent: Wed, July 28, 2010 3:55:54 PM Subject:

[R] Question about geoR package.

2010-07-29 Thread Alaios
Hello in geoR package there is a function called grf() According to the geoR short manual grf() takes the following arguments * n number of points (spatial locations) in each simulations. * grid optional. An n × 2 matrix with coordinates of the simulated data. * nx

Re: [R] Beginner stucked with raster + geoR package.

2010-07-29 Thread Alaios
. Professor, City and Regional Planning University of North Carolina nikhil.l...@gmail.com On Jul 28, 2010, at 6:53 PM, Alaios wrote: Can someone help me please with step 5? r - setValues(r,temp) # Unfortunately this ends with the message: Error in setValues(r, temp) : values must be a vector

[R] georR package users

2010-08-02 Thread Alaios
Greeting to everyone. I am looking for geoR users In geoR package there is a function called grf() According to the geoR short manual grf() takes the following arguments * n number of points (spatial locations) in each simulations. * grid optional. An n × 2 matrix with coordinates of

[R] Installing packages and passing parameters

2010-08-05 Thread Alaios
Hello I am trying to install the RandomFields package by using install.packages(RandomFields) but the process fails. I think that if I pass to the g++ compiler the -lgfortran option might work. Could you please help me do this? I would like to thank you in advance for your help Best Regards

[R] Two images functions

2010-09-06 Thread Alaios
Hello everyone. I would like to ask you what happens when two functions with the same name exist. I discovered this today when I wrote ?images (I was trying to understand how it works) ?images gave me the following output: Help on topic 'image' was found in the following packages: Image (in

[R] How R converts data between objects

2010-09-06 Thread Alaios
Hello everyone. I would kindly request your help concerning how R converts data between different structrures. In the following example please keep attention on the following two 1) I create f - GaussRF(x=x, y=y, model=model, grid=TRUE,param=c(mean, variance, nugget, scale, alpha)) with

[R] How do u create a virtual map?

2010-09-07 Thread Alaios
Hello everyone. I would like to simulate a small map area and store information regarding it. I am trying to find out what might be the best way to do that and I need some feedback, as you might be more experienced. Usually a map can be described by a k * m dimensions matrix where every cell

[R] Uniform Distribution

2010-09-08 Thread Alaios
Hello, I would like to uniformly distribute values from 0 to 200. Can someone help me find the appropriate uniform distribution generator? I would like to thank you in advance for your help. Best Regards Alex [[alternative HTML version deleted]]

Re: [R] Uniform Distribution

2010-09-08 Thread Alaios
Subject: Re: [R] Uniform Distribution On Wed, 2010-09-08 at 06:36 -0700, Alaios wrote: Hello, I would like to uniformly distribute values from 0 to 200. Can someone help me find the appropriate uniform distribution generator? I would like to thank you in advance for your help. Best

[R] Matrixes inside matrixes

2010-09-08 Thread Alaios
Hello everyone, Could you please help me find out if R supports matrixes inside matrixes? This is what I would like to do I have an area map of humidity per km. I would like at every cell to keep also information about the height of this area, the current temperature etc. Is something like

[R] See what is inside a matrix

2010-09-09 Thread Alaios
Hello everyone.. Is there any graphical tool to help me see what is inside a matrix? I have 100x100 dimensions matrix and as you already know as it does not fit on my screen R splits it into pieces. I would like to thank you in advance for your help Best Regards Alex

[R] Line integral with R

2010-09-13 Thread Alaios
Hello. I would like to calculate with R the weighted line integral of a loss field. Where should I start searching about weighted integration in R? I would like to thank you in advance for your help Best Regards Alex [[alternative HTML version deleted]]

[R] print matrix values and if statement

2010-09-13 Thread Alaios
Hello everyone, I have a 2x2 matrix filled with zeros and some more values around zeros. I would like to print only the non-zero values and to keep the coords of the places that the values are not zero. Could you please help me with that? I would like to thank you in advance for your help

[R] array of objects

2010-09-13 Thread Alaios
Hello everyone. I would like to create some agents that span over a specific area map.Every agent needs to have its own data structures like one or two matrices and one list. I think that the best way to do this is to create objects and every instance of an object will be used for a single

[R] Object oriented programming in R.

2010-09-14 Thread Alaios
Hello everyone. I would like to create many objects with R. Does R support objects? The number of objects needed is not predetermined and it is a parameter specified by the user. If the user selects to create many objects like 100, would it be possible to handle each one by some index? I would

Re: [R] Object oriented programming in R.

2010-09-14 Thread Alaios
: Tue, September 14, 2010 10:11:36 AM Subject: Re: [R] Object oriented programming in R. Hello Alaios, I see a bunch of good materials here: http://www.google.co.il/search?sourceid=chromeie=UTF-8q=Object+oriented+programming+in+R Did you look into them ? Contact Details

Re: [R] Object oriented programming in R.

2010-09-14 Thread Alaios
Regards Alex From: Tal Galili tal.gal...@gmail.com Cc: Rhelp r-help@r-project.org Sent: Tue, September 14, 2010 10:11:36 AM Subject: Re: [R] Object oriented programming in R. Hello Alaios, I see a bunch of good materials here: http://www.google.co.il/search

Re: [R] Object oriented programming in R.

2010-09-14 Thread Alaios
. Hello Alaios, I see a bunch of good materials here: http://www.google.co.il/search?sourceid=chromeie=UTF-8q=Object+oriented+programming+in+R R Did you look into them ? Contact Details:--- Contact me: tal.gal

[R] Interpolate? a line

2010-09-15 Thread Alaios
Hello everyone. I have created a 100*100 matrix in R. Let's now say that I have a line that starts from (2,3) point and ends to the (62,34) point. In other words this line starts at cell (2,3) and ends at cell (62,34). Is it possible to get by some R function all the matrix's cells that this

Re: [R] Interpolate? a line

2010-09-15 Thread Alaios
Thank you very much. I am trying to execute it line by line to get some understanding how this works. Could you please explain me what these two lines do? tie - m[,2] == c(-Inf, m[-nrow(m),2]) m - m[ !tie, ] I would like to thank you in advance for your help Best Regards Alex

[R] help me understand how things work.

2010-09-16 Thread Alaios
Hello I have some strange output from R and I try to understand how R works. Could you please help me with that? temp - rbind (c(10,1),c(99,98)) temp [,1] [,2] [1,] 101 [2,] 99 98 dist(temp) 1 2 131.6435 sqrt(dist(temp)) 1 2 11.47360 so far so good.

Re: [R] help me understand how things work.

2010-09-16 Thread Alaios
, September 16, 2010 1:28:31 PM Subject: Re: [R] help me understand how things work. ?dist BTW, to me this does not happens. x - matrix(rnorm(100), nrow=5) d - dist(x) 1/sqrt(d) 1/sqrt(dist(x)) Hope it helps mario On 16-Sep-10 12:02, Alaios wrote: Hello I have some

Re: [R] Interpolate? a line

2010-09-17 Thread Alaios
I would like to thank you again for your help. But it seems that the floor function (ceiling, round too) create more dots in the matrix that line really touches. unique( floor( cbind( seq(2,62, by=0.1), linefn(seq(2,62, by=0.1)) ) ) ) You can see that in the picture below

[R] count frequency

2010-09-17 Thread Alaios
Hello everyone, please consider the following lines of a matrix [574,] 59 32 [575,] 59 32 [576,] 59 32 [577,] 59 32 [578,] 59 32 [579,] 59 32 [580,] 59 32 [581,] 60 32 [582,] 60 33 [583,] 60 33 [584,] 60 33 [585,] 60 33 [586,] 60 33 [587,] 60

Re: [R] count frequency

2010-09-17 Thread Alaios
17 29 18 18 30 19 19 29 20 20 29 Best Regards Alex From: Jorge Ivan Velez jorgeivanve...@gmail.com Cc: Rhelp r-help@r-project.org Sent: Fri, September 17, 2010 4:24:59 PM Subject: Re: [R] count frequency Alaios, Try as.data.frame(table(x[,1

Re: [R] count frequency

2010-09-17 Thread Alaios
My bad :( unfortunately does not work correct. This is some of the output of the table .. [494,] 50 27 [495,] 50 27 [496,] 50 27 [497,] 50 28 [498,] 50 28 [499,] 50 28 [500,] 50 28 [501,] 51 28 [502,] 51 28 [503,] 51 28 [504,] 51 28 [505,]

Re: [R] count frequency

2010-09-17 Thread Alaios
You are pretty good. Worked nicely :) Thanks! Alex From: Henrique Dallazuanna www...@gmail.com Cc: Rhelp r-help@r-project.org Sent: Fri, September 17, 2010 4:58:50 PM Subject: Re: [R] count frequency So try this : aggregate(rep(1, nrow(x)),

Re: [R] Interpolate? a line

2010-09-21 Thread Alaios
, Alaios wrote: I would like to thank you again for your help. But it seems that the floor function (ceiling, round too) create more dots in the matrix that line really touches. You said cells not dots. Are you trying to change the problem now? My concern is rather that it can still miss cells

[R] Indexing sublists inside lists.

2010-09-21 Thread Alaios
: Re: [R] Object oriented programming in R. On Sep 14, 2010, at 9:29 AM, Alaios wrote: I would like to thank you very much all that you helped me so far. So I tried to check how the following works fred - list(happy = 1:10, name = squash) rep(fred, 5) This returns the following : fred[1

[R] efficient list indexing

2010-09-22 Thread Alaios
Hello everyone, I need some help with lists inside lists (a good way to emulate a struct)\ Assume that there is a small list called fred: fred - list(happy = 1:10, name = squash) and a big list called bigfred that includes fred list 5 times bigfred - rep(fred,5) Is it possible somehow to

Re: [R] efficient list indexing

2010-09-22 Thread Alaios
news:4c99e118.2010...@pburns.seanet.com... I'm confused by what you are looking for. There's some slight possibility that you are looking for double bracket subscripting with a vector: list(a=1:5, b=letters)[[c(2,4)]] [1] d On 22/09/2010 10:58, Alaios wrote: Hello everyone, I need some

Re: [R] efficient list indexing

2010-09-22 Thread Alaios
For some reason I did not receive your email. Sorry for the inconvenience caused From: Dennis Murphy djmu...@gmail.com Cc: Rhelp r-help@r-project.org Sent: Wed, September 22, 2010 1:46:28 PM Subject: Re: [R] efficient list indexing Hi: I believe we had this

[R] print-show-display a matrix

2010-10-04 Thread Alaios
Hello. I want to print the value a matrix has. The matrix's size is not too big (100*100 cells). I tried print(matrixname) but as it does not fit very well on my screen R splits it into several small matrixes that do overflow my screen. IS it possible somehow to display this matrix as one (even

[R] Make a loop more efficient

2010-10-05 Thread Alaios
Hello everyone I need some advice if the following might be easier implemented. There are n matrixes each matrix needs to calculate one value for the rest n-1 matrixes (but not for itself). I implemented this one by two nested loops for (i in c(1:length(CRX))) { for (j in

[R] Linear Integration

2010-10-05 Thread Alaios
Hello I would like to calculate a weighted line integral. The integral is calculated by the cells that this lines trasverses (the small cells belong to matrix (m*n) that represent the value that a specific area has. I need to calculate the weights by finding out how much the line touches or

Re: [R] print-show-display a matrix

2010-10-06 Thread alaios
Just to confirm that it works. Thanks for help. -- View this message in context: http://r.789695.n4.nabble.com/print-show-display-a-matrix-tp2954168p2964344.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

Re: [R] Make a loop more efficient

2010-10-06 Thread alaios
Thank you very much both of you. I will check and post back later if needed. Best Regards Alex -- View this message in context: http://r.789695.n4.nabble.com/Make-a-loop-more-efficient-tp2955912p2964346.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Linear Integration

2010-10-06 Thread alaios
I would like to thank you for your reply. Yes I had this conversation of how to find the cells that are touched. I did that with these two lines: temp-(floor(cbind(seq(x[1],xr[1],by=0.01),lineeq(x,xr #. cellid2 -unique( floor(cbind(seq(x[1],xr[1], by=0.01), lineeq(x,xr)) ) ) # cell ids

[R] Looking for a book/tutorial with the following context:

2010-10-06 Thread alaios
Hello everyone. It is time to start writing more and more function and I want to read in a good reference -book ( I can buy one, especially if it is second handed :P) -online tutorial -any other guide -How functions really work in R -How to write bigger R programs -If there are local function

Re: [R] Linear Integration

2010-10-07 Thread alaios
No, because I thought something that might be easier. If you see the image again you might notice that the proportions I am looking for might also be found by using the hypotenuse which is the same (as all squares are triangles) by finding the adjacent. The adjacent are easier to be found by

Re: [R] Looking for a book/tutorial with the following context:

2010-10-07 Thread alaios
I would like to thank you for spending your time to reply to my post. So far I checked the links provided. What is still missing is to find some information how local and global variables work in R. Do you know any link for that? (checked the book but from the table of contents is not clear if

Re: [R] Looking for a book/tutorial with the following context:

2010-10-08 Thread alaios
Thanks for your reply. Do you also know more references about variables? Unfortunately this was a little bit short so I do not feel 100% sure I completely got it. Best Regards Alex -- View this message in context:

Re: [R] Looking for a book/tutorial with the following context:

2010-10-08 Thread alaios
Thanks for your reply. Do you also know more references about variables? Unfortunately this was a little bit short so I do not feel 100% sure I completely got it. Best Regards Alex -- View this message in context:

[R] Mclapply prints once

2011-07-22 Thread Alaios
Dear all I have the following code that works in paraller (and is pretty fast actually) The only problem I still have is that every core just prints only once. dimz-1000 Shadowlist-mclapply(1:dimz, function(i) {   print(sprintf('Creating the %d map',i));  

[R] postscript( does not save the plot

2011-08-16 Thread Alaios
Dear all, I am using the following code to write the plot to an eps format postscript(file=test.eps,horizontal=FALSE)

Re: [R] postscript( does not save the plot

2011-08-17 Thread Alaios
marc_schwa...@me.com Cc: R-help@r-project.org R-help@r-project.org Sent: Tuesday, August 16, 2011 7:38 PM Subject: Re: [R] postscript( does not save the plot On Aug 16, 2011, at 12:32 PM, Alaios wrote: Dear all, I am using the following code to write the plot to an eps format postscript

Re: [R] postscript( does not save the plot

2011-08-19 Thread Alaios
)) dev.off() I get the attached output which seems to be OK. Marc On Aug 17, 2011, at 10:02 AM, Alaios wrote: The problem is a bit weird. This does not work: ps.options=setEPS() postscript(file=exponcoverapprox.eps) boxplot(test[30,1:500],test[90,1:500],test[150,1:500],test[210,1:500

Re: [R] postscript( does not save the plot

2011-08-19 Thread Alaios
=0.5, pars = list(whisklwd = 0, staplelwd = 0)) dev.off() I get the attached output which seems to be OK. Marc On Aug 17, 2011, at 10:02 AM, Alaios wrote: The problem is a bit weird. This does not work: ps.options=setEPS() postscript(file=exponcoverapprox.eps) boxplot(test[30,1

Re: [R] multi process support in R

2011-03-28 Thread Alaios
values so each cores saves at the right place inside the lst matrix. Could you please help me with that? Regards Alex --- On Thu, 2/17/11, Ben Haller rh...@sticksoftware.com wrote: From: Ben Haller rh...@sticksoftware.com Subject: Re: [R] multi process support in R To: Alaios ala...@yahoo.com Cc

[R] From a list to a double-list/matrix

2011-03-28 Thread Alaios
Dear all , I would like to extend a list structure to a structure that can hold much more date. Please find a small example of my code and my questions regarding it: lst - list() for (k in c(1:mmax)){ # 1 ..max as the f.fxy gets as input order-1. for (l in c(1:nmax)){

  1   2   3   4   5   >