Re: [R] Sorted index of values in matrix

2022-04-15 Thread Eliza Botto
Thankyou very much. It worked. Eliza From: Bert Gunter Sent: Friday 15 April 2022 17:00 To: Jeff Newmiller Cc: R-help ; Eliza Botto Subject: Re: [R] Sorted index of values in matrix ... But Ivan's solution -- which I had to think about -- is better, a

[R] Sorted index of values in matrix

2022-04-15 Thread Eliza Botto
deaR useRs, I have this following simple dataset > dput(qq) structure(1:6, .Dim = 3:2, .Dimnames = list(c("1", "2", "3"), c("1", "2"))) I want to extract row and column index of the sorted values of this matrix For example, sort(qq) command will execute the sorted values of this matrix as

[R] Raster map in R

2022-03-07 Thread Eliza Botto
deaR expeRts, I have the following data > dput(Tuto) structure(list(X = c(-114.028, -114.011, -114.442, -113.937, -114.187, -114.083, -113.949, -114.15, -114.068, -114.203, -113.958, -114.248, -114.18, -114.14, -114.071, -114.042, -114.187, -114.03, -113.97, -113.824, -114.084, -114.152, -114.468

Re: [R] Rising and falling bar-plots simultaneously

2021-10-18 Thread Eliza Botto
Thanks everyone. It helped. From: Jim Lemon Sent: Monday 18 October 2021 04:01 To: Eliza Botto ; r-help mailing list Subject: Re: [R] Rising and falling bar-plots simultaneously Hi Eliza, Try this: BAS1<- structure(c(3, 4, 2, 3, 3, 4, 3, 3, 3, 3, 2, 3, 3

[R] Rising and falling bar-plots simultaneously

2021-10-17 Thread Eliza Botto
Dear useRs, Sorry for a very basic question. I have the following data set containing 2 columns. > dput(BAS1) structure(c(3, 4, 2, 3, 3, 4, 3, 3, 3, 3, 2, 3, 3, 4, 3, 2, 2, 3, 2, 3, 3, 3, 4, 5, 3, 4, 3, 4, 4, 3, 4, 4, 3, 3, 3, 4, 3, 3, 3, 4, 3, 3, 4, 5, 4, 4, 4, 3, 4, 3, 3, 3, 3, 4, 4, 5, 4, 3,

[R] plotting some rows in different color

2021-09-02 Thread Eliza Botto
Dear useRs, For the following dataset, dput(BFA3) structure(c(17532, 17533, 17534, 17535, 17536, 17537, 17538, 17539, 17540, 17541, 17542, 17543, 17544, 17545, 17546, 17547, 17548, 17549, 17550, 17551, 17552, 17553, 17554, 17555, 17556, 17557, 17558, 17559, 17560, 17561, 17562, 17563, 17564, 175

Re: [R] conditional replacement of elements of matrix with another matrix column

2021-09-01 Thread Eliza Botto
I thank you all. But the code doesn't work on my different dataset where A and B have different column lengths. For example, > dput(A) structure(c(17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 178

[R] conditional replacement of elements of matrix with another matrix column

2021-09-01 Thread Eliza Botto
n match. Is there a single line loop or code for that? Thanks in advance, Eliza Botto [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-hel

[R] Converting characters back to Date and Time

2021-08-31 Thread Eliza Botto
very much in advance. Eliza Botto [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] Finding if numbers fall within a range

2021-08-29 Thread Eliza Botto
Thanks Jeff, It worked!! From: Jeff Newmiller Sent: Saturday 28 August 2021 16:32 To: r-help@r-project.org ; Eliza Botto ; r-help@r-project.org Subject: Re: [R] Finding if numbers fall within a range You messed up the dput somehow... but I think this works: m

[R] Finding if numbers fall within a range

2021-08-28 Thread Eliza Botto
Dear useRs, Is there a way in R to see if the numbers in a matrix-row fall within the given range or not? For example, I have the following data; > dput(EB) structure(c(1, 57, 59, 271, 279, 59, 179, 279, 278, 359, 52, 118, 178, 239, 334), .Dim = c(3L, 5L)) The ranges for which these numbers ar

[R] Sectors covered by the Nearest Neighbors

2021-08-16 Thread Eliza Botto
deaR useRs, I have a very basic question. I am for putting up a real long text. But I tried searching for some clues in the previous help posts but unfortunately, I could get any. I have the following data called "el". > dput(el) structure(c(1.00451374640952, 1.88100123102175, 0.20188756668034

[R] Shading specific region in R

2018-03-27 Thread Eliza Botto
Dear useRs, Following the given codes below, I generated a plot that has 6 regions around a center point (IL), with 5 regions containing a point (L1, L2 to L5) and sixth vacant region. I want background of all the filled regions turned "green", while "red" for the vacant region. Can it be done

Re: [R] adding percentage secondary y-axis

2017-11-23 Thread Eliza Botto
Thank you very much peter. It worked out nicely. I have additional question. How can I get Y-axis on log-scale? Thank you very much in Advance, Eliza UoS PP From: PIKAL Petr Sent: 23 November 2017 16:22:39 To: Eliza Botto; r-help@r-project.org Subject: RE

[R] adding percentage secondary y-axis

2017-11-23 Thread Eliza Botto
Dear useRs, I have this dataset (D) with three columns. > dput(D) structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 2.990484802, 3.005018792, 3.019552781, 3.03408677, 3.048620759, 3.063154749, 3.077688738, 3.09727, 3.106756717, 3.121290706, 3.135824695, 3.1

Re: [R] test hypothesis in R

2016-03-23 Thread Eliza Botto
.org Subject: Re: [R] test hypothesis in R Hello, Try ?t.test t.test(mA, mB, alternative = "greater") Hope this helps, Rui Barradas Citando Eliza Botto : Dear All, I want to test a hypothesis in R by using student' t-test (P-values). The hypothesis is that

[R] test hypothesis in R

2016-03-23 Thread Eliza Botto
Dear All, I want to test a hypothesis in R by using student' t-test (P-values). The hypothesis is that model A produces lesser error than model B at ten stations. Obviously, Null Hypothesis (H0) is that the error produces by model A is not lower than model B. The error magnitudes are #model A >

[R] arranging axis within plotting area

2016-03-22 Thread Eliza Botto
Dear useRs, I have defined two matrices "prop" and "ELE" in the following manner > dput(prop) structure(c(122.4667, 87.1500875, 94.3647755102041, 84.8471625, 95.2767755102041, 84.15558125, 121.8467, 90.75970625, 98.2028979591837, 87.1500875, 88.2953043478261, 72.81219375, 88.234,

[R] Problem with Downloading TRMM

2015-11-11 Thread Eliza Botto
Dear Users of R, I have this following confusion. I want to download 3 hourly TRMM data from NASA website by using R, from the following website ##main Link http://giovanni.gsfc.nasa.gov/giovanni/#service=ArAvTs&starttime=2008-12-31T00:00:00Z&endtime=2009-12-31T23:59:59Z&bbox=67,-50,67,-50&data=

[R] TRMM download loop

2015-11-11 Thread Eliza Botto
Dear Users of R, I have this following confusion. Some months ago I use to download 3 hourly TRMM data from NASA website by using the R from the following website http://giovanni.gsfc.nasa.gov/giovanni/#service=ArAvTs&starttime=2008-12-31T00:00:00Z&endtime=2009-12-31T23:59:59Z&bbox=67,-50,67,-50&

[R] TRMM download loop

2015-11-11 Thread Eliza Botto
Dear Users of R, I have this following confusion. Some months ago I use to download 3 hourly TRMM data from NASA website by using the R from the following website http://giovanni.gsfc.nasa.gov/giovanni/#service=ArAvTs&starttime=2008-12-31T00:00:00Z&endtime=2009-12-31T23:59:59Z&bbox=67,-50,67,-50&

[R] 6 regions around a point

2014-12-21 Thread eliza botto
Dear UseRs, A point was plotted by the following command plot(2,4,ylim=c(0,10),xlim=c(0,5)) how to divide the space around the plotted point into six regions each of 60 degree as shown in the Figure 2a) in the following link http://infolab.usc.edu/csci599/Fall2007/papers/b-2.pdf. Thankyou very m

Re: [R] replacing columns with same names

2014-11-14 Thread eliza botto
Thankyou very much Berend. It worked!!! Have a great weekend!! :) Eliza > Subject: Re: [R] replacing columns with same names > From: b...@xs4all.nl > Date: Fri, 14 Nov 2014 16:24:03 +0100 > CC: r-help@r-project.org > To: eliza_bo...@hotmail.com > > > On 14-11-2014, at 1

[R] replacing columns with same names

2014-11-14 Thread eliza botto
Dear useRs, I have two matrices > dput(EB) structure(1:15, .Dim = c(3L, 5L), .Dimnames = list(NULL, c("A", "B", "C", "D", "E"))) > dput(EA) structure(31:36, .Dim = c(3L, 2L), .Dimnames = list(NULL, c("D", "E"))) I have two question 1-Generally speaking, How can I replace the columns of matrix wit

[R] R memory issues

2014-11-11 Thread eliza botto
Dear useRs, I have this funny thing going on with me since morning. I am 32 bit window 7 system with 4 GB RAM(2.95 usable). I tried to run a code on it but when I tried to convert dataframe to matrix by using the following code mat<-matrix(as.numeric(unlist(SFI)),nrow=nrow(SFI)) *where SFI is my

Re: [R] lat/log to meter

2014-10-31 Thread eliza botto
gt; 925-423-1062 > > > > > > On 10/31/14, 8:22 AM, "eliza botto" wrote: > > >Dear UseRs,Is there a way in R to convert latitude and longitude in > >degree.minute.second to meter? (e.g. 45'55'')Thankyou

[R] lat/log to meter

2014-10-31 Thread eliza botto
Dear UseRs,Is there a way in R to convert latitude and longitude in degree.minute.second to meter? (e.g. 45'55'')Thankyou very much in Advance,Eliza [[alternative HTML version deleted]] __ R-help@r-project.

Re: [R] distance from fitted line

2014-10-20 Thread eliza botto
] distance from fitted line > > > On 20/10/14 23:00, eliza botto wrote: > > > Thankyou very much Joachim. Actually I already know the residual() > > command. I only wanted to know that is there a way to account for the > > fitted lines? its more of a criosity rather t

Re: [R] distance from fitted line

2014-10-20 Thread eliza botto
IERTEELT.BE From: eliza botto To: "r-help@r-project.org" Date: 19/10/2014 22:08 Subject: [R] distance from fitted line Sent by: r-help-boun...@r-project.org Dear useRs, I have the following dataset. > dput(EB) c(77.724, 76.70

[R] distance from fitted line

2014-10-19 Thread eliza botto
Dear useRs, I have the following dataset. > dput(EB) c(77.724, 76.708, 84.836, 85.09, 118.11, 65.024, 121.412, 63.5, 102.87, 81.3, 108.7, 110.7, 71.9, 42.2, 101, 151.4, 94, 112, 48, 73.4, 76.6, 62.2, 59.4, 114.3, 214.3, 110.5, 46, 84.7, 128.1, 45.2, 109.5, 102.3, 77.5, 61, 97.3, 78, 142, 88.2, 5

[R] standard deviation

2014-10-07 Thread eliza botto
Dear useRs, Is there a direct command in R to calculate standard deviation of BURR distribution in R? I know the direct function in VBA and worksheet. but is there a similar function in R? VBA =BurrStdev(k,alpha,beta,[gamma]) Worksheet: =BurrStdev(k;alpha;beta;[gamma])=DistStdev("Burr(k;alpha

[R] (no subject)

2014-10-02 Thread eliza botto
Dear UseRs, I obtained following results from Anderson-Darling Goodness of fit test. > dput(EB) structure(c(2.911, 0.9329, 0.818, 1.539, 0.604, 0.5142, 0.4344, 0.801, 0.963, 0.9925, 0.933, 0.956, 0.883, 0.572), .Dim = c(7L, 2L), .Dimnames = list(c("EXP", "GUM", "GENLOG", "GENPARETO", "GEV", "LN",

Re: [R] Best Distribution

2014-09-30 Thread eliza botto
Dear Turner and Murphy, Thankyou so very much for replying. It fixed the issue. :) Eliza > Date: Wed, 1 Oct 2014 11:04:32 +1300 > From: r.tur...@auckland.ac.nz > To: eliza_bo...@hotmail.com; r-help@r-project.org > Subject: Re: [R] Best Distribution > > On 01/10/14 08:50,

[R] Best Distribution

2014-09-30 Thread eliza botto
Dear useRs, I have this following data > dput(Prec) c(42.2, 45.2, 46, 48, 54, 54.1, 59.4, 61, 62.2, 63.5, 65.024, 71.9, 73.4, 76.6, 76.708, 77.5, 77.724, 78, 81.3, 84.7, 84.836, 85.09, 88.2, 91.4, 94, 95.8, 96, 97.3, 101, 101, 101.5, 102.3, 102.87, 108.7, 109.5, 110.5, 110.7, 112, 114.3, 118.11,

[R] fitting distribution

2014-09-29 Thread eliza botto
Dear UseRs, I have a dataset in the following form. > dput(Da) structure(c(0.0238095238095238, 0.0476190476190476, 0.0714285714285714, 0.0952380952380952, 0.119047619047619, 0.142857142857143, 0.167, 0.19047619047619, 0.214285714285714, 0.238095238095238, 0.261904761904762, 0.285714

[R] adding rows

2014-09-25 Thread eliza botto
Dear useRs, Here is my data with two columns and 20 rows. > dput(TT) structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 24, 48, 72, 96, 120, 144, 168, 192, 216, 240, 264, 288, 312, 336, 360, 384, 408, 432, 456, 480), .Dim = c(20L, 2L), .Dimnames = list(NULL, c("",

Re: [R] column names to row names

2014-09-17 Thread eliza botto
uld be factors and station > would be character. > > ----- > David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77840-4352 > > Original Message- > From: r-help-boun...@r-project.org [mailto:r-hel

Re: [R] column names to row names

2014-09-17 Thread eliza botto
> 26 1961 1 2 G26 > 27 1961 1 3 G27 > 28 1961 1 4 G28 > 29 1961 1 1 H29 > 30 1961 1 2 H30 > 31 1961 1 3 H31 > 32 1961 1 4 H32 > 33 1961

[R] column names to row names

2014-09-17 Thread eliza botto
Dear useRs, I have a data frame "y" starting from 1961 to 2010 in the following manner (where A,B,C .., I are station names and the values uder these are "discharge" values.) > dput(y) structure(c(1961, 1961, 1961, 1961, 1, 1, 1, 1, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,

[R] chi-square test

2014-09-15 Thread eliza botto
Dear useRs of R, I have two datasets (TT and SS) and i wanted to to see if my data is uniformly distributed or not?I tested it through chi-square test and results are given at the end of it.Now apparently P-value has a significant importance but I cant interpret the results and why it says that

Re: [R] splitting data

2014-09-09 Thread eliza botto
ut > 3 times slower than data.table. This is about as fast as you can get > it in reshape2. > > HTH, > Dennis > > PS: I agree with David about the HTML postings. You've been on this > list long enough to know what is expected. All it takes is a change or > two in t

[R] splitting data

2014-09-08 Thread eliza botto
Dear R members, I have this data frame of 100 years in the following format yearmonth day A B C D where A,B,C and D are item number sold each day. I am trying 1-split the data w.r.t the monthly values for each year 2-then, sum them up I

Re: [R] data format setting

2014-06-14 Thread eliza botto
metods are available in R: google for R + impute. Best Regards Frede Sendt fra Samsung mobil Oprindelig meddelelse ---- Fra: eliza botto Dato:13/06/2014 20.48 (GMT+01:00) Til: r-help@r-project.org Emne: Re: [R] data format setting Thanks dennis, It worked but I had to do some

Re: [R] data format setting

2014-06-13 Thread eliza botto
ape2) > L <- split(DF, DF$year) > L2 <- llply(L, function(d) dcast(d, month + day ~ year, value.var = > "discharge")) > > Obviously untested, so caveat emptor. The idea is to use the dcast > function to reshape the data from long to wide format within year. >

[R] data format setting

2014-06-13 Thread eliza botto
Dear R family, I hope you all be doing great. I have a dataset of following format. The data file is of the following format. st year month day discharge 1 A 2004 1 1 6.752828 2 A 2004 1 2 7.602053 3 A 2004 1 3 5.583619 4 A 2004 1 4 5.019562

[R] row mean

2014-05-27 Thread eliza botto
Dear R family, I have this matrix say AAA<-matrix(sample(1:240),ncol=2) I first want to combine every 13th row in both columns. precisely, starting from row-1 1,13,25,37,49, then starting from row-2 2,14,26,38,50 also 3,15,27,39,51 and similarly starting from row 4, row number 5, row 6... ti

Re: [R] gumbel distribution

2014-05-14 Thread eliza botto
mobil Oprindelig meddelelse Fra: eliza botto Dato:14/05/2014 15.19 (GMT+01:00) Til: smartpink...@yahoo.com,r-help@r-project.org Emne: Re: [R] gumbel distribution Dear Arun, Rolf and Frede, Thankyou very much for youe help. I managed to draw gumbel plot by using following

Re: [R] gumbel distribution

2014-05-14 Thread eliza botto
Gumbel > ?pGumbel > ?rGumbel > A.K. > > > > > On Tuesday, May 13, 2014 1:58 PM, eliza botto wrote: > Dear useRs, > I need some examples of gumbel probability plots in R. i'll be extremely > grateful if you coul

Re: [R] gumbel distribution

2014-05-13 Thread eliza botto
m/legal/notice > If you have received this e-mail in error please contact the sender. > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > > On Behalf Of eliza botto > > Sent: 13. maj 2014 19:57 > > To:

[R] gumbel distribution

2014-05-13 Thread eliza botto
Dear useRs, I need some examples of gumbel probability plots in R. i'll be extremely grateful if you could share the codes of a working example. Eliza [[alternative HTML version deleted]] __ R-help@r-p

Re: [R] adding rows

2014-05-10 Thread eliza botto
unNew) > fun2c <- cmpfun(fun2) > system.time(r5 <- funOldc(el1,3)) > # user system elapsed > # 7.458 0.000 7.476 > > system.time(r6 <- funNewc(el1,3)) > # user system elapsed > # 3.529 0.000 3.536 > sapply(paste0("r",2:6),function(x) a

Re: [R] adding rows

2014-05-09 Thread eliza botto
2), function(i) sum(el[i:(i+2), ])) > > > but with number of rows instead of 30. > > Hope this helps, > > Rui Barradas > > Em 09-05-2014 22:35, eliza botto escreveu: > > Dear useRs, > > I have a matrix, say "el" of 30 rows and 10 columns, as > > el&l

[R] adding rows

2014-05-09 Thread eliza botto
Dear useRs, I have a matrix, say "el" of 30 rows and 10 columns, as el<-matrix(sample(1:300),ncol=10) I want to sum up various sets of three rows of each column in the following manner sum(el[c(1,2,3),]) ##adding row number 1, 2 and 3 of each column sum(el[c(2,3,4),])##adding row number 2, 3 and 4

[R] multiple plots on same sheet in R

2014-04-16 Thread eliza botto
Dear useRs, I drew 12 separate raster maps. I want to combine them in such a way the they appear on the same sheet in R, which will later on be saved. Each row should contain three raster maps, so in total we should have 4 rows with each row containing 3 rasters. I know that mfrow() can do it

Re: [R] calling in inverted commas

2014-04-14 Thread eliza botto
be an advantage to use the URLencoding () function on queryUrl. I'll check later. Br. Frede Sendt fra Samsung mobil Oprindelig meddelelse Fra: arun Dato:12/04/2014 12.45 (GMT+01:00) Til: Frede Aakmann T©ªgersen Cc: Eliza Botto ,"R. Help" Emne: Re: [R] callin

[R] calling in inverted commas

2014-04-11 Thread eliza botto
Dear useRs, Here are three steps for downloading a file from a certain website in R. Here you see that in "URL" command (west=68.25&north=24.75&east=68.25&south=24.75) are actually the first and second column values of 1st row of a matrix called df2 (300 rows and 2 columns). more precisely, df2[

Re: [R] operating website through R

2014-04-11 Thread eliza botto
project.org > > You just need to pass the parameters on Giovanni_cgi.pl with > action=ASCII+Output > > On 11 April 2014 17:19, eliza botto wrote: > > Dear Users of R, > > I wanted to operate certain slots of this website > > (http://disc2.nascom.nasa.gov/Giovann

[R] operating website through R

2014-04-11 Thread eliza botto
Dear Users of R, I wanted to operate certain slots of this website (http://disc2.nascom.nasa.gov/Giovanni/tovas/TRMM_V7.3B42_daily.2.shtml) through R. I wanted to operate Latitude, longitude section, plot type, begin and end year and ASCII Output Resolution. The filling of these slot will produ

Re: [R] average of rows of each column

2014-04-04 Thread eliza botto
t; From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of eliza botto > Sent: Friday, April 4, 2014 1:08 PM > To: r-help@r-project.org > Subject: [R] average of rows of each column > > > Dear useRs, > I have a matrix of 120 row and 1000 col

[R] average of rows of each column

2014-04-04 Thread eliza botto
Dear useRs, I have a matrix of 120 row and 1000 columns.What I want is to get an average of a set of 12 rows starting from 1 till 120 for each column. Precisely, for column 1 the average of 1:10 rows, 11:20 rows 111:120. similarly for column 2, 3, 4 1000. So in the end i should have a m

[R] importing multiple text files in R

2014-04-01 Thread eliza botto
Dear useRs, I have a number of text file located at a certain location with the following names. s1.txt,s2.txt,s3.txt,s4.txt,s5.txt...s120.txt when i read them, before opening them, by using filelist = list.files(pattern = ".s*.txt") The are opened in the following order [1] "s1.txt"

Re: [R] monthly sum

2014-03-31 Thread eliza botto
l_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_,

Re: [R] monthly sum

2014-03-31 Thread eliza botto
gt; > Also, please use dput() to post data examples. > > Hope this helps, > > Rui Barradas > > Em 31-03-2014 18:31, eliza botto escreveu: > > Dear useRs, > > I have the data of following format. I have only pasted some part of the > > data. The data starts f

[R] to NA

2014-03-31 Thread eliza botto
Dear useRs, Sorry for such a ridiculous question but i really need to know that what is the difference between and NA and how to convert to NA. Thankyou very much in advance Eliza [[alternative HTML version deleted]] _

[R] monthly sum

2014-03-31 Thread eliza botto
Dear useRs, I have the data of following format. I have only pasted some part of the data. The data starts from 1961 and ends up in december 1987. dat <- read.table(text="Date A B C D1-Jan-61 0.00 1.27 8.128 0.252-Jan-61 6.10 9.144 94.742 15.493-Jan-61 0.00 0.508 1.27 0.004-Jan-61 0.00 0 NA 0.00

Re: [R] reading dataset

2014-03-27 Thread eliza botto
echnology & Service Solutions > > T +45 9730 5135 > > M +45 2547 6050 > > fr...@vestas.com > > http://www.vestas.com > > > > Company reg. name: Vestas Wind Systems A/S > > This e-mail is subject to our e-mail disclaimer statement. > > Please ref

Re: [R] reading dataset

2014-03-27 Thread eliza botto
t;flag", "precip", "rstn", "flag", > "precip", "rstn", "flag"... > > Hope this helps, > Pascal > > On Thu, Mar 27, 2014 at 9:45 AM, eliza botto wrote: > > Dear useRs, > > A similar question has previously be

[R] reading dataset

2014-03-26 Thread eliza botto
Dear useRs, A similar question has previously been asked by another user (https://stat.ethz.ch/pipermail/r-sig-geo/2011-September/012791.html) but i'll try to discuss it from another angle. Its about data reading. I am trying to read to read a data-set APHRO_MA_050deg_V1101R2.1961.gz from http:

Re: [R] points with-in boundaries of a map

2014-03-24 Thread eliza botto
Thanks ray, I really appreciate your concern. Eliza > Date: Tue, 25 Mar 2014 08:35:15 +1300 > From: ray.brownr...@ecs.vuw.ac.nz > To: fr...@vestas.com; eliza_bo...@hotmail.com; r-help@r-project.org > Subject: Re: [R] points with-in boundaries of a map > > On 24/03/14 20:09, Frede Aakmann Tøgersen

Re: [R] points with-in boundaries of a map

2014-03-24 Thread eliza botto
ance & Modeling > > Technology & Service Solutions > T +45 9730 5135 > M +45 2547 6050 > fr...@vestas.com > http://www.vestas.com > > Company reg. name: Vestas Wind Systems A/S > This e-mail is subject to our e-mail disclaimer statement. > Please refer to www.

Re: [R] points with-in boundaries of a map

2014-03-23 Thread eliza botto
-project.org > Subject: Re: [R] points with-in boundaries of a map > > On 03/23/2014 10:29 PM, eliza botto wrote: > > Thankyou very much jim. it worked! but regarding second part of my > > question, isn't there a way to read the coordinates of intersecting > > lines with

Re: [R] points with-in boundaries of a map

2014-03-23 Thread eliza botto
m > CC: r-help@r-project.org > Subject: Re: [R] points with-in boundaries of a map > > On 03/23/2014 01:01 PM, eliza botto wrote: > > Dear UseRs, > > I have a question regarding reading the coordinates within a country' map. > > I drew map of ireland

[R] points with-in boundaries of a map

2014-03-22 Thread eliza botto
Dear UseRs, I have a question regarding reading the coordinates within a country' map. I drew map of ireland by using the following commands library("maps") library("mapproj") map("world", "ireland") map.axes() You can clearly see the axis labelled. What is want to do is to draw lines (both verti

Re: [R] Latest question

2014-03-22 Thread eliza botto
er: > res2 <- matrix(as.vector( mat1[row.names(mat1) %in% df1$Ry,colnames(mat1) > %in% df1$Rx]),nrow=120, dimnames=list(NULL,colnames(res))) > > identical(res,res2) > #[1] TRUE > A.K. > > > > > > On Saturday, March 22, 2014 4:14 PM, eliza botto > wro

Re: [R] plotting vectors of different lengths

2014-03-22 Thread eliza botto
Dear Bert and Arun, Thankyou very much for your help. I am really obliged. :D Eliza > Date: Sat, 22 Mar 2014 08:17:31 -0700 > Subject: Re: [R] plotting vectors of different lengths > From: gunter.ber...@gene.com > To: smartpink...@yahoo.com; jorgeivanve...@gmail.com; eliza_bo...@hotmail.com > CC

Re: [R] plotting vectors of different lengths

2014-03-22 Thread eliza botto
engths To: eliza_bo...@hotmail.com CC: r-help@r-project.org You are welcome, Eliza. If I understand correctly, the following will do: x <- 1:8y <- 1:5 matrix(apply(expand.grid(x = y, y = x), 1, function(r) paste0("(", r[1], ",", r[2], ")")), ncol = length(x

Re: [R] plotting vectors of different lengths

2014-03-22 Thread eliza botto
: eliza_bo...@hotmail.com CC: r-help@r-project.org Hi Eliza, Perhaps the following? matpoints(t(dat), type = 'l') HTH,Jorge.- On Sat, Mar 22, 2014 at 10:18 PM, eliza botto wrote: Dear useRs, I have two column vectors of different lengths say x=1,2,3,4,5,6,7,8 and y=1,2,3,4,5. I

[R] plotting vectors of different lengths

2014-03-22 Thread eliza botto
Dear useRs, I have two column vectors of different lengths say x=1,2,3,4,5,6,7,8 and y=1,2,3,4,5. I wanted to plot them by using "points()" command over an already existed image but got an error, "Error in xy.coords(x, y) : 'x' and 'y' lengths differ".What i actually wanted to do was to plot th

[R] geoghraphical coordinate

2014-03-21 Thread eliza botto
Dear R-family, I want to draw a map of the world with 0.5 degree*0.5 degree resolution and then want to extract the geographical coordinates of my beloved country Ireland in the same resolution. I hope there is a way of doing it in R. Thank you very much in advance, Eliza

[R] Error: cannot allocate vector of size 5.2 Gb

2014-03-20 Thread eliza botto
Dear R family, I am trying to read a real large dataset in R (~ 2Gb). Its in binary format. When i tried to read it by using following command readBin("DAT.dat.nc", numeric(), n=9e8, size=4, signed=TRUE, endian='little') I got the following error Error: cannot allocate vector of size 5.2 Gb I have

Re: [R] reading row title

2014-03-19 Thread eliza botto
> 5-Jan-61á 0.00á 0á 0 0.00 > 6-Jan-61áá 0.00á NAá 0 0.00 > 7-Jan-61á 0.00á 0á 0 0.00 > 8-Jan-61á 0.00á NAá 0 0.00 > 9-Jan-61á 0.00á NAá 0 NA > 10-Jan-61 0.00 4.064 4.826 0.76",sep="",header=TRUE,stringsAsFactors=FALSE) > > res <-á as.data.frame(apply(dat[,-1],2,FU

[R] reading row title

2014-03-19 Thread eliza botto
Dear R-Family, I have a data-set of the following format. I am only presenting a part of it. DateA B C D 1-Jan-61 0.00 1.27 8.128 0.25 2-Jan-61 6.10 9.144 94.742

Re: [R] open unknown file format in R

2014-03-18 Thread eliza botto
an store in a Raster* object then extract the grid > points you need, with the coordinates. > > HTH > Pascal > > > > On Tue, Mar 18, 2014 at 9:21 PM, eliza botto wrote: > > Hi Pascal, > > > > Your code worked out perfectly but I have one question though. You

Re: [R] open unknown file format in R

2014-03-18 Thread eliza botto
#x27;t use stations. But to read the gridded > format, I used: > > > readBin(fid, numeric(), n=1e8, size=4, signed=TRUE, endian='little') > > where file is the connection created with file() > > Hope this helps, > Pascal > > > > > On

Re: [R] open unknown file format in R

2014-03-18 Thread eliza botto
ile() > > Hope this helps, > Pascal > > > > > On Tue, Mar 18, 2014 at 4:06 AM, eliza botto wrote: > > Dear R-Family, > > I have just downloaded a massive data file from internet > > (AphroJP_62STN_V1005.1900.gz). Apparently, the file is compres

[R] open unknown file format in R

2014-03-17 Thread eliza botto
Dear R-Family, I have just downloaded a massive data file from internet (AphroJP_62STN_V1005.1900.gz). Apparently, the file is compressed with .gz. When I uncompressed it, the file was saved in the name (AphroJP_62STN_V1005.1900) of unknown format. How can I open it in R? thankyou very much ind

Re: [R] predefined area under the curve

2014-01-17 Thread eliza botto
.242003/1.42607687227 = 0.1696984 to each of those 12 values. > 4. To distribute unequally, you'll need to work that out yourself, but > knowing the relative weights will be the key. > Dave > > > >Date: Thu, 16 Jan 2014 13:24:41 + > >From: eliza botto > &g

[R] predefined area under the curve

2014-01-16 Thread eliza botto
Dear UseRs of R, My sincere apologizes in advance if my question isn't relevant to the operations in R. I actually have the following two columns data, with 12 rows in it. > dput(el) structure(c(-1.42607687227285, -1.0200762327862, -0.736315917376129, -0.502402223373355, -0.293381232121193, -0

Re: [R] label in scatter3d plot

2013-12-24 Thread eliza botto
r. > > Best, > Uwe Ligges > > > > On 25.12.2013 00:26, eliza botto wrote: > > Dear Users of R, > > I plotted the following data by > >> scatterplot3d(x,y,z, main="3D Scatterplot") > > Then i wanted to label the points on that plo

[R] label in scatter3d plot

2013-12-24 Thread eliza botto
Dear Users of R, I plotted the following data by >scatterplot3d(x,y,z, main="3D Scatterplot") Then i wanted to label the points on that plot w.r.t column 4. i unsuccessfully tried textxy() & text3d() Kindly guide me through > dput(test) structure(list(x = c(458750L, 460350L, 415750L, 356250L, 387

Re: [R] plot two columns against one

2013-12-14 Thread eliza botto
.423 0.270 121093 > 0.463 0.315 131019",sep="",header=TRUE) > library(ggplot2) > ggplot(s,aes(x=A,y=B,colour=C))+geom_text(label=s$C) + theme_bw() > A.K. > > > On Saturday, December 14, 2013 9:30 AM, eliza botto > wrote: > Dear users of R, >

[R] plot two columns against one

2013-12-14 Thread eliza botto
Dear users of R, How can i plot the values in column "C" with "A" on x-axis and "B" on y-axis?s <- "A BC 0.451 0.333 1134 0.491 0.270 1433 0.389 0.249 7784 0.425 0.819 6677 0.457 0.429 99053 0.436 0.524 111049 0.423

Re: [R] method default for hclust function

2013-12-12 Thread eliza botto
Absolute distance is the default distance in hclust. v<-c(1,2,3,4,5,6) dist(v) 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1 Eliza > Date: Thu, 12 Dec 2013 15:09:19 -0800 > From: capri...@yahoo.com > To: r-help@r-project.org > Subject: [R] method default for hclust function > > I c

Re: [R] function inside a function

2013-12-12 Thread eliza botto
_len(nrow(A)),function(i) nleqslv(x.start,fun,krow=i)$x)) > [,1] [,2] > [1,] 1.052828 0.2725286 > [2,] 1.131672 0.4487542 > [3,] 1.109174 0.4534483 > [4,] 1.093078 0.4935468 > [5,] 1.098613 0.4420152 > [6,] 1.088997 0.4384237 > [7,] 1.005843 0.2912907 > > A.

Re: [R] function inside a function

2013-12-12 Thread eliza botto
time.Thanks for your help.Eliza > Subject: Re: [R] function inside a function > From: b...@xs4all.nl > Date: Thu, 12 Dec 2013 19:35:58 +0100 > CC: r-help@r-project.org > To: eliza_bo...@hotmail.com > > > On 12-12-2013, at 17:10, eliza botto wrote: > > > De

[R] function inside a function

2013-12-12 Thread eliza botto
Dear users of R, I am trying to inculcate a function inside a function. For that to be done, i copied following function from internet. library(nleqslv) fun <- function(x) { f <- numeric(length(x)) f[1] <- A[,1]+x[2] - 1/x[1] f[2] <- A[,2]+x[2] - sin(x[1]) f } x.start

Re: [R] solving simultaneous Equations in R

2013-12-12 Thread eliza botto
rg > To: eliza_bo...@hotmail.com > > > On 11-12-2013, at 23:56, eliza botto wrote: > > > Dear Berend, > > > > Thankyou very much indeed for you reply. By taking help from your previous > > reply @ http://r.789695.n4.nabble.com/Simultaneous-equations-td2524645.htm

Re: [R] solving simultaneous Equations in R

2013-12-11 Thread eliza botto
; From: b...@xs4all.nl > Date: Wed, 11 Dec 2013 12:43:02 +0100 > CC: r-help@r-project.org > To: eliza_bo...@hotmail.com > > > On 11-12-2013, at 12:16, eliza botto wrote: > > > Dear users of R, > > I'm trying to solve the following 2 equations simultaneo

[R] solving simultaneous Equations in R

2013-12-11 Thread eliza botto
Dear users of R, I'm trying to solve the following 2 equations simultaneously in R for "x" and "y". I couldn't get through due to my limited knowledge of R. 3=1-[(x-1)!(2x-y-1)!/(2x-1)!(x-y-1)!] 6={[(x-y-1)!/(x-1)!]-[3(2x-y-1)!/(2x-1)!]+[2(3x-y-1)!/(3x-1)!]}/{[(x-y-1)!/(x-1)!]-[(2x-y-1)!/(2x-1)

Re: [R] date format

2013-11-28 Thread eliza botto
m = 1:3, dd = 4:6) > > apply(dat, 1, function(x) paste(rev(x), collapse = ".")) > > > Hope this helps, > > Rui Barradas > > Em 28-11-2013 13:54, eliza botto escreveu: > > Dear Users of R, > > I have a data frame with three column, the first column

  1   2   3   >