Re: [R] Scatterplot of many variables against a single variable

2017-11-27 Thread Ismail SEZEN
> On 27 Nov 2017, at 11:56, Engin YILMAZ wrote: > > Dear > > I try to realize one scatter matrix which draws *one single variable to all > variables* with *regression line* . You can see my eviews version in the > annex . > > How can I draw this graph with R studio? A

Re: [R] Scatterplot of many variables against a single variable

2017-11-27 Thread Ismail SEZEN
> On 27 Nov 2017, at 13:59, Engin YILMAZ wrote: > > Dear Berger and Jim > > Can you see my eviews example in the annex? (scattersample.jpg) > > Sincerely > Engin Please, use an image hosting service (i.e. https://imgbb.com/) to share images in the list and share the

Re: [R] My function and NA Values Problem

2017-10-27 Thread Ismail SEZEN
> On 27 Oct 2017, at 10:43, Engin YILMAZ wrote: > > Dear R Staff > > My working file is in the annex. "g1.csv" > I have only 2 columns. Rice and coke. > I try to execute following(below) function, but do not work. > Because "Coke" value has NA values. > I try to add

Re: [R] create a loop

2017-10-21 Thread Ismail SEZEN
you sould look at "boot" package. also search "bootstrap R" keywords in google. 20 Eki 2017 23:12 tarihinde "Marna Wagley" yazdı: > Hi R Users, > I do have very big data sets and wanted to run some of the analyses many > times with randomization (1000 times). > I have

Re: [R] How to use depmix for HMM with intial parameters

2017-09-20 Thread Ismail SEZEN
> On 20 Sep 2017, at 11:14, niharika singhal > wrote: > > Hello, > > I have initial parameters for HMM model and I want to use depmixS4 package. > The parameters are in the form > > intial_prob_matrix=matrix(c(0.07614213, 0.45177665, 0.47208122), nrow=1, >

Re: [R] Regarding Principal Component Analysis result Interpretation

2017-09-15 Thread Ismail SEZEN
First, see the example at https://isezen.github.io/PCA/ > On 15 Sep 2017, at 13:43, Shylashree U.R wrote: > > Dear Sir/Madam, > > I am trying to do PCA analysis with "iris" dataset and trying to interpret > the result. Dataset contains 150 obs of 5 variables > >

Re: [R] require help

2017-09-15 Thread Ismail SEZEN
> On 15 Sep 2017, at 12:38, yadav neog wrote: > > hello to all. I am working on macroeconomic data series of India, which in > a yearly basis. I am unable to convert my data frame into time series. Do you really need to convert your data to time series/xts/zoo? I don’t

Re: [R] Fwd: Find maxima of a function

2017-08-27 Thread Ismail SEZEN
Dear Niharika, As I said before, the problem is basically an optimization issue. You should isolate the problematic part from the rest of your study. Sometimes, more information does not help to solution. All the answers from us (Ulrik, David, me) are more or less are correct to find a maximum

Re: [R] Find maxima of a function

2017-08-26 Thread Ismail SEZEN
> On 26 Aug 2017, at 16:39, niharika singhal > wrote: > > Hi, > > Thanks for your mail, and time > > It is not working for some arguments, when mean value is like >6. > > > case > > mc0 <- c(0.0886,0.1744455,0.1379778,0.1209769,0.1573065,0. >

Re: [R] Find maxima of a function

2017-08-26 Thread Ismail SEZEN
> On 26 Aug 2017, at 14:18, Ulrik Stervbo wrote: > > Please keep the list in cc. > > Sorry, it didn't work as expected. Maybe someone else have an appropriate > solution. > > Best, > Ulrik > > On Sa., 26. Aug. 2017, 12:57 niharika singhal

Re: [R] How to benchmark speed of load/readRDS correctly

2017-08-23 Thread Ismail SEZEN
First of all I want to mention the _warmup_ parameter to _control_argument of microbenchmark function. Default value is 2 and function runs the code 2 times before count the time intervals. See ?microbenchmark > However, the first iteration always takes the longest. I'm wondering if I > should

Re: [R] Help Required in looping visuals

2017-08-21 Thread Ismail SEZEN
> On 21 Aug 2017, at 09:30, Venkateswara Reddy Marella (Infosys Ltd) via R-help > wrote: > > Hi Team , > > I have a requirement of building set of panels in which each panel has > multiple visuals based on single set of dataset values and this thing is > repeated for

Re: [R] Creating New Variable Using Ifelse

2017-08-09 Thread Ismail SEZEN
> On 10 Aug 2017, at 06:54, Courtney Benjamin wrote: > > Hello R Help List, > > I am an R novice and trying to use the ifelse function to create a new binary > variable based off of the responses of two other binary variables; NAs are > involved. I pulled it off almost

Re: [R] about saving format

2017-08-05 Thread Ismail SEZEN
> On 6 Aug 2017, at 03:47, lily li <chocol...@gmail.com> wrote: > > In the lower right panel of R-studio interface, there is the "Export" button. > I saved as PDF from there directly, rather than using functions > > On Sat, Aug 5, 2017 at 6:18 PM, Ismail S

Re: [R] about saving format

2017-08-05 Thread Ismail SEZEN
> On 6 Aug 2017, at 03:01, lily li wrote: > > I am using the plot() function, but have a problem. When saving as pdf > format, the ‰ sign in the x-axis label becomes (...) sign. I prefer to save > in pdf, as this format has a higher resolution than jpeg or other picture >

Re: [R] Extracting numeric part from a string

2017-08-02 Thread Ismail SEZEN
> On 3 Aug 2017, at 02:59, Christofer Bogaso > wrote: > > Hi again, > > I am struggling to extract the number part from below string : > > "\"cm_ffm\":\"563.77\"" > > Basically, I need to extract 563.77 from above. The underlying number > can be a whole number,

Re: [R] STL - time series seasonal decomposition sensitive to data points?

2017-07-19 Thread Ismail SEZEN
> On 19 Jul 2017, at 21:34, Eridk Poliruyt wrote: > > Hi all, > > I am trying to analyse a time series data and want to make > trend-season decomposition using STL approach in R. However I found > the decomposition result seems to be sensitive to data points even > with the

Re: [R] fedback from foreach

2017-06-13 Thread Ismail SEZEN
> > On 13 Jun 2017, at 23:05, Bond, Stephen wrote: > > Hi useRs, > > I am running a foreach loop and hoped to get a small message when it hits a > multiple of 1000, but it does not work. > >p <- foreach(i=1:1, .combine='c') %dopar% { >

Re: [R] Memory leak in nleqslv()

2017-06-12 Thread Ismail SEZEN
> On 12 Jun 2017, at 00:16, Andrew Leach wrote: > > Hello all, > > I am relatively new to R, but enjoying it very much. I am hoping that > someone on this list can help me with an issue I am having. > > I am having issues with iterations over nleqslv, in that the solver >

Re: [R] Reversing one dimension of an array, in a generalized case

2017-06-01 Thread Ismail SEZEN
> On 1 Jun 2017, at 22:42, Roy Mendelssohn - NOAA Federal > wrote: > > Thanks to all for responses/. There was a question of exactly what was > wanted. It is the generalization of the obvious example I gave, > junk1 <- junk[, rev(seq_len(10), ] > > > so

Re: [R] Reversing one dimension of an array, in a generalized case

2017-06-01 Thread Ismail SEZEN
And my 2 cents, Rev <- function(x, margin) { newdim <- rep("", length(dim(x))) newdim[margin] <- paste(dim(x), ":1", sep = "")[margin] z <- eval(parse(text = gettextf("x[%s,drop = F]", paste(newdim, sep = "", collapse =

Re: [R] Question on function "scatterplot3d"

2017-05-31 Thread Ismail SEZEN
> On 1 Jun 2017, at 03:41, li li wrote: > > Hi all, > I have a question with regard to making plots using function > "scatterplot3d". > Please see the example below. It looks like, for y axis, the tickmark text > was cutoff. > The number "10" does not show up completely.

Re: [R] seek non-black box alternative to randomForest

2017-05-30 Thread Ismail SEZEN
I’m interested in the subject. If you send the question to another platform, please share the link here to follow up. Also, I wish to see the manuscript and rejected parts and detailed reasons. Most of the time, scientists want to reveal/discuss underlying physical process in an event and it’s

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Ismail SEZEN
ata$year, c(2005, 2010, 2016)) [1] 1 1 1 1 1 2 2 2 2 2 2 3 1 1 1 1 1 2 2 2 2 2 2 3 1 1 1 1 1 2 2 2 2 2 2 3 1 1 1 1 1 2 2 2 2 2 2 3 1 1 1 1 1 2 2 2 2 2 2 3 and see the result of palette function. palette() "black" "red" "green3" "blue""cyan"

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Ismail SEZEN
guments to findInterval according your data. If you would send a minimal example as stated in posting guide [1], you will have your answer in second email :). 1- http://www.R-project.org/posting-guide.html <http://www.r-project.org/posting-guide.html> > Cheers > >

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Ismail SEZEN
on running? > Maybe it is not running because the years as single numbers are already > contained in my data-frame? > Cheers, > > Toby > > > Am 30.05.2017 um 18:26 schrieb Ismail SEZEN: >>> On 30 May 2017, at 19:02, Tobias Christoph <s3toc...@uni-bayreuth.de>

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Ismail SEZEN
> On 30 May 2017, at 19:02, Tobias Christoph wrote: > > Hey Guys, > > I just try to differentiate certain values in my plot by colour or symbol. > > I have panel data with three dimensions (number of stations, revenue, > years). To integrate the third dimension

Re: [R] R package recommendation - recursively partition data frame, calculate summaries of node data frames, plot and print summaries

2017-05-30 Thread Ismail SEZEN
Hello Ross, > On 30 May 2017, at 14:51, Ross Gayler wrote: > > I am after R package recommendations. > > I have a data frame with ~5 million rows and ~50 columns. (I could do what > I want with a sample of the rows, but ideally i would use all the rows.) Very nice question

Re: [R] about Rstudio

2017-05-29 Thread Ismail SEZEN
You need to search a bit harder. At least give 60 minutes yourself. Check date of resultant pages hence be sure that you don’t follow an outdated instruction. Hence, you can learn how to search in time. Please, read;

Re: [R] MDS plot in Random Forest

2017-05-26 Thread Ismail SEZEN
> On 25 May 2017, at 20:35, Elahe chalabi via R-help > wrote: > > Thanks for your reply Bert. But the question on how to plot MDS on predicted > data I guess belong to here! Actually, You have 2 questions in conflict. 1- how can I plot MDS on predicted data? 2- Is MDS

Re: [R] How to extract text contexts after clustering.

2017-05-21 Thread Ismail SEZEN
1- PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 2- PLEASE, first _read_ help for kmeans (?kmeans) function before using function. > On 22 May 2017, at 05:33, θ ” wrote: > > hi: > I need to extract the text contexts of top 1 group after

Re: [R] violin plot help

2017-05-18 Thread Ismail SEZEN
> On 16 May 2017, at 17:06, Abdelrahman, Omar (RER) > wrote: > > I am trying to produce multiple violin plots by 3 categorical variables, each > violin representing 1 year worth of data. The variables are: > > Watershed (7 levels: county canals) > > Geography

Re: [R] apply and cor()

2017-05-12 Thread Ismail SEZEN
> On 12 May 2017, at 17:57, Micha Silver wrote: > > I have two data.frames, one with a single row of 31 columns, and the second > with 269 rows and the same 31 columns. > > dim(compare_data) > [1] 269 31 > > dim(test_data) > [1] 1 31 > > I want to apply cor() between the

Re: [R] visualization of KNN results in text classification

2017-05-12 Thread Ismail SEZEN
he model identified 2 G1 classes as G2 and 1 G2 class as G1. # Hence, 3 elements are misclassified. (you can distinguish them on the plot) gm <- gmodels::CrossTable(test.guess.cluster, test.real.cluster, prop.chisq = FALSE) sum(diag(gm$prop.tbl)) # overall success of the model (34 - 3)/34

Re: [R] visualization of KNN results in text classification

2017-05-08 Thread Ismail SEZEN
As far as I know, kNN groups by Eucledian distance. So, you need numerical data as input. You said your dataset has only “speeches” and “type of people”. Are these input? or one of them is input and the latter one is output? Type of people should be a factor variable (I guess). I don’t know how

Re: [R] Strip height in latticeExtra:::useOuterStrips

2017-04-17 Thread Ismail SEZEN
> On 18 Apr 2017, at 06:20, Duncan Mackay wrote: > > Hi all > > I use latticeExtra::useOuterStrips quite a bit. > The problem of strip height using useOuterStrips came up some time ago but > did not have the time then to work something out so made do with the > default

Re: [R] how to plot three dimension data to filled contour plot or surface plot in R Ask Question

2017-04-12 Thread Ismail SEZEN
> On 12 Apr 2017, at 09:08, dncdd wrote: > > Sorry, I might make the question complicated. > > I can use filled.contour() to plot mini data 1(three dimension on flat > surface). Now my problem is on mini data 2. Let's unfold the mini data 2. > > > r1dn r2dn tdn

Re: [R] how to plot three dimension data to filled contour plot or surface plot in R Ask Question

2017-04-11 Thread Ismail SEZEN
> On 11 Apr 2017, at 20:55, dncdd <dn...@aliyun.com <mailto:dn...@aliyun.com>> > wrote: > > Thank you Ismail SEZEN. > The link you give is filled.contour code which only works with my first mini > data . filled.contour + lattice::levelplot solution can handle eit

Re: [R] how to plot three dimension data to filled contour plot or surface plot in R Ask Question

2017-04-11 Thread Ismail SEZEN
After lon long search, my best shot was to use filled.contour + lattice::levelplot together [a] to represent 3 dimensional data on a flat surface. a) http://r.789695.n4.nabble.com/Creating-smooth-color-regions-with-panel-contourplot-td866253.html

[R] Need class/object type advice to store a particular data structure

2017-03-25 Thread Ismail SEZEN
? I’m asking this question, because I want to take advantage of a ready class for statistical calculations. Thanks in advance; Ismail SEZEN __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Identifying Gender

2016-12-01 Thread Ismail SEZEN
> On 1 Dec 2016, at 23:42, Rich Shepard wrote: > > On Thu, 1 Dec 2016, Saba Sehrish via R-help wrote: > >> I have a csv file of Names based on male and female managers. Is there >> some code in R to identify the gender by names? > > Saba, > > Despite the

Re: [R] Identifying Gender

2016-12-01 Thread Ismail SEZEN
> On 1 Dec 2016, at 22:40, Saba Sehrish via R-help wrote: > > Hi > I have a csv file of Names based on male and female managers. Is there some > code in R to identify the gender by names? > ThanksSaba > A simple google search gives the what you are after [1]. But I

Re: [R] Question about ‘The R Project’.

2016-11-14 Thread Ismail SEZEN
> On 14 Nov 2016, at 11:00, 김세희 wrote: > > Hello, > > I’m Jane Kim from Zenith and Company. > > We have a question about ‘The R Project’. > > It looks like it’s an open source software, but the document from the website > shows that it’s free of use not free of price. >

Re: [R] Frequency of a character in a string

2016-11-14 Thread Ismail SEZEN
> On 14 Nov 2016, at 11:44, Ferri Leberl wrote: > > > Dear All, > Is there a function to count the occurences of a certain character in a > string resp. in a vector of strings? > Thank you in advance! > Yours, Ferri > library(stringr) ?str_count

Re: [R] Euler & Runge-Kutta

2016-11-07 Thread Ismail SEZEN
> On 07 Nov 2016, at 19:26, Tom Mosca wrote: > > Can someone help me with R code to perform approximations to second order > differential equations and systems of first order differential equations > using Euler's method and Runge-Kutta? I am not a student and this is not for

Re: [R] Memory not release when an environment is created

2016-09-22 Thread Ismail SEZEN
> On 22 Sep 2016, at 18:41, Olivier Merle wrote: > > Dear, > > When I use big data for a temporary use it seems that the memory is not > released when a function/environement is created nearby. > Here the reproducible exemple: > > test<-function(){ >

Re: [R] lm model with many categorical variables

2016-09-20 Thread Ismail SEZEN
> On 20 Sep 2016, at 11:34, Michael Haenlein wrote: > > Dear all, > > I am trying to estimate a lm model with one continuous dependent variable > and 11 independent variables that are all categorical, some of which have > many categories (several dozens in some cases).

Re: [R] How to plot the regression line of multivariable linear model?

2016-09-18 Thread Ismail SEZEN
> Specifically my model has one response and two predictors, i.e. it's of the > form > > Y = b_0+b_1*X_1+b_2*X_2 > > Plotting the regression line for a single predictor model > > Y = b_0+b_1*X_1 > > is simple enough, just call abline() with the coefficients returned by lm(). Single variable

Re: [R] Accelerating binRead

2016-09-17 Thread Ismail SEZEN
I noticed same issue but didnt care much :) On Sat, Sep 17, 2016, 18:01 jim holtman wrote: > Your example was not reproducible. Also how do you "break" out of the > "while" loop? > > > Jim Holtman > Data Munger Guru > > What is the problem that you are trying to solve? >

Re: [R] Accelerating binRead

2016-09-17 Thread Ismail SEZEN
I suspect that rbind is responsible. Use list and append instead of rbind. At the end, combine elements of list by do.call(“rbind”, list). > On 17 Sep 2016, at 15:05, Philippe de Rochambeau wrote: > > Hello, > the following function, which stores numeric values extracted from a

Re: [R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-12 Thread Ismail SEZEN
It should be strptime for character vectors. strptime("Thu, 25 Aug 2016 6:34 PM",format="%a, %d %b %Y %I:%M %p”) > On 12 Sep 2016, at 08:57, Chris Evans wrote: > >> strftime("Thu, 25 Aug 2016 6:34 PM",format="%a, %d %b %Y %I:%M %p") [[alternative HTML version

Re: [R] Time format issue

2016-07-27 Thread Ismail SEZEN
>> The time column is factor. I want to convert each time to the following >> format: >> >> 20111211003000 >> >> 20111211013000 >> >> 2011121102 >> >> (Year)(month)(date)(hr)(min)(sec) > >> newTimeDt <- strptime(Time, format="%d%b%y:%H:%M") >> newTimeDt > [1] "2011-12-27 00:30:00 PST"

Re: [R] installing the lubricate package

2016-07-21 Thread Ismail SEZEN
You don't have to download and install from github. You can install lubridate package easly from cran repository. If you really intend to install from github, i advise you install devtools package first and use install_github function.

Re: [R] about interpolating data in r

2016-07-21 Thread Ismail SEZEN
> On 22 Jul 2016, at 01:54, lily li wrote: > > Thanks, I meant if there are missing data at the beginning and end of a > dataframe, how to interpolate according to available data? > > For example, the A column has missing values at the beginning and end, how > to

Re: [R] about interpolating data in r

2016-07-21 Thread Ismail SEZEN
> On 22 Jul 2016, at 01:34, lily li wrote: > > I have a question about interpolating missing values in a dataframe. First of all, filling missing values action must be taken into account very carefully. It must be known the nature of the data that wanted to be filled and

Re: [R] Dates in R (Year Month)

2016-07-13 Thread Ismail SEZEN
You can not convert numeric vectors directly to yearmon object. You must convert the X variable to character and add “-“ between year and month. Then as.yearmon function will work properly. Please, read help pages of ?as.character, ?strptime and ?as.yearmon. Example: > library(zoo) > aaa <-

Re: [R] gsl package installation problem: gsl-config not found (even though gsl has been installed)

2016-07-12 Thread Ismail SEZEN
> $ /home/pyangac/dev/bin/gsl-config --libs > -L/home/pyangac/dev/lib -lgsl -lgslcblas -lm > > $ /home/pyangac/dev/bin/gsl-config --cflags > -I/home/pyangac/dev/include > > $ LDFLAGS="-L/home/pyangac/dev/lib -lgsl -lgslcblas -lm"; export LDFLAGS > $ CPPFALGS="-I/home/pyangac/dev/include";

Re: [R] Writing data onto xlsx file without cell formatting

2016-07-10 Thread Ismail SEZEN
I think, this is what you are looking for: http://stackoverflow.com/questions/11228942/write-from-r-into-template-in-excel-while-preserving-formatting > On 11 Jul 2016, at 03:43,

Re: [R] a package-building opinion question, please

2016-07-08 Thread Ismail SEZEN
I would suggest Hadley's guide as Roy. Life is easier by shortcuts that RStudio has. Especially in package development stage. You can run your test by or build your package by on the go. When it comes to package development, these are life saving. > On 08 Jul 2016, at 22:05, Roy Mendelssohn -

Re: [R] netcdf data precision or least significant digit

2016-07-07 Thread Ismail SEZEN
wrote: > I have moved this over to the netcdf-group mail list, which I think is the > more appropriate place at this point. You are copied, and hopefully > someone from ESRL will see it and provide the proper response. > > HTH, > > -Roy > > > On Jul 7, 2016

Re: [R] netcdf data precision or least significant digit

2016-07-07 Thread Ismail SEZEN
;- round(uwind, digits = 2) > > > and see if that gives you the results you would expect. > > HTH, > > -Roy > >> On Jul 7, 2016, at 4:49 PM, Ismail SEZEN <sezenism...@gmail.com> wrote: >> >> Thank you Roy. >> >> I use NCEP/NCAR

Re: [R] netcdf data precision or least significant digit

2016-07-07 Thread Ismail SEZEN
while. I am pretty certain the scale factor is > 0.01 and what you are seeing in rounding error (or mor precisely I should say > problems with representations of floating point numbers), but i would like > to see if there is away around this. > > Thank, > > -Roy > &g

Re: [R] netcdf data precision or least significant digit

2016-07-07 Thread Ismail SEZEN
l display of extra digits prior to >> presentation (output). >> -- >> Sent from my phone. Please excuse my brevity. >> >> On July 7, 2016 12:50:54 AM PDT, Ismail SEZEN <sezenism...@gmail.com> >> wrote: >>> Hello, >>> >>&g

[R] netcdf data precision or least significant digit

2016-07-07 Thread Ismail SEZEN
Hello, I use ncdf4 and ncdf4.helpers packages to get wind data from ncep/ncar reanalysis ncetcdf files. But data is in the form of (9.18, 8.78, 7.98, 3.08, -6.818, …). I’m aware of precision and least_significant_digit attributes of ncdf4 object [1]. For uwnd data,