search for: devkota

Displaying 20 results from an estimated 23 matches for "devkota".

Did you mean: devdata
2013 Apr 18
5
Subsetting a large number into smaller numbers and find the largest product
...674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557 I have a problem subsetting the small numbers out of the big number. Any help is highly appreciated. Best Regards, Janesh Devkota [[alternative HTML version deleted]]
2013 Apr 19
5
how to subtotal by rows
Dear R-users, I have a dataset as like below, and I want to subtotal the values of rice,wheat and maize by year for each fid. fid      year     rice     wheat      maize ------------------------------------------------ 1        1995      5        NA           NA 1        1995      NA        3           NA 1        1995      NA       NA           2 1        1996      4        NA           NA 1  
2013 Feb 07
4
low pass filter analysis in R
Hello R users, I am trying to use R to do the low pass filter analysis for the tidal data. I am a novice in R and so far been doing only simple stuffs on R. I found a package called signal but couldn't find the proper tutorial for the low pass filter. Could anyone point me to the proper tutorial or starting point on how to do low pass filter analysis in R ? Thank you so much. Janesh
2013 Jan 21
1
Faceting in ggplot with 3 series in each plot
...estion then I could try on ggplot. I know how to create basic plot with 3 series in ggplot but don't know how to use facet and then use 3 series in each sub plot. As I am a new user in R and ggplot and on a learning curve please excuse me if this question is very naive. Best Regards, Janesh Devkota [[alternative HTML version deleted]]
2013 Feb 19
5
Converting the data in year month day hour and minutes to date
Hi , I am trying to convert the date as factor to date using "as.date" function in R. I have the date in the following format 2008-01-01 02:30 I tried to use the following command : as.Date(mydata$Date, format="%y-%m-%d ") Can somebody help me with this ? I was able to convert the format with no hour but getting difficulty with hour included. Thank you.
2013 Jan 21
1
Very slow in processing the equation in the scatter plot ggplot
...on(x,y) viewport(layout.pos.row=x,layout.pos.col=y) print(p,vp=vplayout(1,1)) print(p1,vp=vplayout(1,2)) print(p,vp=vplayout(2,1)) print(p1,vp=vplayout(2,2)) The data for the above code can be found on https://www.dropbox.com/s/1xrgvnge0prf0a6/dataset.csv Thank you so much. Best Regards, Janesh Devkota [[alternative HTML version deleted]]
2013 Feb 16
2
Interpret R-squared and cor in R
Hi I am trying to find the relationship between two variables. First I fitted a linear model between two variables and I found the following results: Residual standard error: 0.03253 on 2498 degrees of freedom Multiple R-squared: 0.5551, Adjusted R-squared: 0.5549 F-statistic: 3116 on 1 and 2498 DF, p-value: < 2.2e-16 Then I used the cor function to see the correlation between two variable
2013 Feb 01
2
Summary of data for each year
Hello All, I have a data with two columns. In one column it is date and in another column it is flow data. I was able to read the data as date and flow data. I used the following code: creek <- read.csv("creek.csv") library(ggplot2) creek[1:10,] colnames(creek) <- c("date","flow") creek$date <- as.Date(creek$date, "%m/%d/%Y") The link to my data
2013 Jan 24
1
Insert segment only on particular facets in ggplot
...l=label,size=3),show_guide=F) p1 Now, I want to add the arrows and segment based on the overall graph. My data is attached along. My output is also attached : The output shows the annotation I want but it is on all the facets. I want only on the bottom one. Thank you so much. Regards, Janesh Devkota -------------- next part -------------- A non-text attachment was scrubbed... Name: output.png Type: image/png Size: 32197 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130124/f3875cf5/attachment.png>
2013 Jan 21
2
How to read a file with two data sets in text format
Hello All, I have a data file in a text format and there are two data sets. The data set are continuous. For each data set there is a header which has the number of data rows and the name of data series. For example first data set has "6240 Terry Cove-Model". Then the data for that series follows upto 6240 rows. Then another data would start and it will have the header such as
2013 Jan 22
1
How to assign time series to a vector with one leap year
Hello All, I am trying to do the time series analysis in R and I want to assign a vector as a time series. The data I provided is hourly. The data is from Jan 1 2008 to Dec 31 2009. How can I assign the data such that the first year is leap year and second is not ? airtemp <- read.csv("airtemp.csv",header=T,sep="") aw <- ts(airtemp,start=2008,frequency=8784,end=2009)
2013 Jan 19
1
Is it possible to create color ramp legend in spplot for discontinuous data ?
Hello All, I have a discontinuous dataset and I used spplot to plot the points. I was wondering whether it is possible to show the legend of the plot as color ramp. I saw that on continuous data. If anyone could tell me that would be great. Another thing I would like to know is how can we create the horizontal legend. By default, the legend is vertical. I was able to shift the legend inside
2013 Apr 09
1
Solving an integral in R gives the error “The integral is probably divergent”
I am trying to solve an integral in R. However, I am getting an error when I am trying to solve for that integral. The equation that I am trying to solve is as follows: $$ C_m = \frac{{abs{x}}e^{2x}}{\pi^{1/2}}\int_0^t t^{-3/2}e^{-x^2/t-t}dt $$ [image: enter image description here] The code that I am using is as follows: a <- seq(from=-10, by=0.5,length=100) ## Create a function to compute
2013 Apr 11
2
Read the data from a text file and reshape the data
I have a data set for different time intervals. The data has three comment lines before data for each time interval. For each time interval there are 500 data points. I want to change the dataset such that I have the following format: t1 t2 t3 ................ 0.00208 0.00417 0.00625 ................. a1 a2 a3 ...................
2013 Jan 22
0
Plotting error while using ggplot facet
...)),each=6239)) p <- ggplot(data=watersurf,aes(x=time,y=data,group=id))+geom_line(aes(linetype=group1),size=1)+facet_wrap(~coupleid) p Is it also possible to add third series in the graph but of unequal length i.e not same interval ? Thanks. Best Regards, Janesh Devkota [[alternative HTML version deleted]]
2013 Mar 19
1
Convert to date and time of the year
Dear R Users, I have data for more than 3 years. For each year I want to find the day corresponding to Jaunary 1 of that year. For example: > x <- c('5/5/2007','12/31/2007','1/2/2008') > #Convert to day of year (julian date) - > strptime(x,"%m/%d/%Y")$yday+1 [1] 125 365 2 I want to know how to do the same thing but with time added. But I still
2013 Feb 14
1
Clip a contour with shapefile while using contourplot
Hi, I have done the interpolation for my data and I was able to create the contours in multipanel with the help of Pascal. Now, I want to clip the contour with the shapefile. I want only the portion of contour to be displayed which falls inside the boundary of the shapefile. The data mydata.csv can be found on https://www.dropbox.com/s/khi7nv0160hi68p/mydata.csv The data for shapefile can be
2007 Apr 18
1
Domain membership problem in OpenSuse 10.2
Dear Everyone, I am trying to use an OpenSuse 10.2 computer on a Windows 2000 domain using winbind authentication (join to domain). I added a few lines to the smb.conf for extracting sfu attributes, and my smb.conf looks like this: [global] idmap backend = ad idmap gid = 1000-100000 idmap uid = 1000-100000 winbind uid =
2004 Jun 25
6
Samba 3.0.4 acl problem
...he net for an answer, but I haven't found a solution yet. The strange thing is that when the user list is displayed in the acl select dialog, I get several weird lines in my samba machine log file. I'm including the log lines with this letter. I hope you can help me. Thanks Prajjwal Devkota ------------------------------------------------------------------------------------------------ Strange log lines: %m.log lines: A. domain sid conflicts? log lines: rpc_parse/parse_samr.c:init_sam_user_info21A(5988) init_sam_user_info_21A: User root has Primary Group SID S-1-5-32-544, whi...
2013 Jan 20
0
Data interpolation using R from the user given data
I have a time series of more than 2500 points. I also have observed data set but it is not continuous. I want to use the observed data set and find out the modeled data from the time series data. After the modeled data has been found out for the same time I want to plot the correlation plot and display the equation and coefficient of correlation on the plot. The sample time series can be found on