search for: janesh

Displaying 20 results from an estimated 20 matches for "janesh".

Did you mean: ganesh
2013 Apr 18
5
Subsetting a large number into smaller numbers and find the largest product
...9225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557 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
...ata. 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 [[alternative HTML version deleted]]
2013 Feb 19
5
Converting the data in year month day hour and minutes to date
...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. Janesh [[alternative HTML version deleted]]
2013 Feb 01
2
Summary of data for each year
...ames(creek) <- c("date","flow") creek$date <- as.Date(creek$date, "%m/%d/%Y") The link to my data is https://www.dropbox.com/s/eqpena3nk82x67e/creek.csv Now, I want to find the summary of each year. I want to especially know mean, median, maximum etc. Thanks. Janesh [[alternative HTML version deleted]]
2013 Jan 21
1
Faceting in ggplot with 3 series in each plot
...ny suggestion 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 Mar 19
1
Convert to date and time of the year
...what is the better way to find the julian date with date and time ? > x1 <- c('5/5/2007 02:00','12/31/2007 05:58','1/2/2008 16:25') > #Convert to day of year (julian date) - > strptime(x1,"%m/%d/%Y %H:%M")$yday+1 [1] 125 365 2 Thank you so much. Janesh [[alternative HTML version deleted]]
2013 Jan 19
1
Is it possible to create color ramp legend in spplot for discontinuous data ?
...l2,l3,l4,l5),axes=T,xlab="Eastings",cuts=cuts, ylab="Northings",lwd=2,cex=1.2,col.regions = rainbow(100, start = 3/15, end = 1)) # Legend in Spplot names(p1$legend) <- "inside" p1$legend$inside$x <- 0.15 p1$legend$inside$y <- 0.9 plot(p1) Thank you so much. Janesh [[alternative HTML version deleted]]
2013 Jan 21
1
Very slow in processing the equation in the scatter plot ggplot
...function(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 Jan 21
2
How to read a file with two data sets in text format
...ing I need to do is create another sub data set where both the series have common data. One data might have more intervals than another. After I find two data sets of same interval then I want to plot a correlation graph. I hope I made it clear what I want to do. Thank you so much. Best Regards, Janesh [[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 14
1
Clip a contour with shapefile while using contourplot
...our data mydata <- read.csv("mydata.csv") head(mydata ) summary(mydata) #Create a contourplot contourplot(Salinity ~ Eastings+Northings | Time, mydata, cuts=30,pretty=TRUE) Thank you so much. I would welcome any other ways to do this aside from contourplot and lattice. Best Regards, Janesh [[alternative HTML version deleted]]
2013 Jan 24
1
Insert segment only on particular facets in ggplot
...=y,label=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 Apr 11
2
Read the data from a text file and reshape the data
...those data on different columns will be combined in 1 column of data. So, I want to arrange the data columns such that first the data on row 1 will be used and then data on second row and so on. This way, we will have one column for one time. Thank you for your help and suggestion. Best, Janesh [[alternative HTML version deleted]]
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 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 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 16
0
Is it possible to create a html file by using shiny in Windows ?
Dear R users, I have just started using Shiny in R. I can run the program using R on my local computer but I don't know how can I create the html file on my local server. Can you guys suggest how can I proceed to create a html file on my computer in Windows interface ? Thanks. Janesh [[alternative HTML version deleted]]
2013 Apr 09
1
Solving tridiagonal matrix in R
Dear R Users, I am trying to solve a tridiagonal matrix in R. I am wondering if there is an inbuilt R function or package to solve that. I tried looking on google but couldn't find something that would help directly. Any help is highly appreciated. Thanks. Janesh [[alternative HTML version deleted]]
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