similar to: My function and NA Values Problem

Displaying 20 results from an estimated 3000 matches similar to: "My function and NA Values Problem"

2017 Oct 27
0
My function and NA Values Problem
> On 27 Oct 2017, at 10:43, Engin YILMAZ <ispanyolcom at gmail.com> 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 "na.rm=True" to the function but do not
2017 Nov 27
5
Scatterplot of many variables against a single variable
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? Sincerely Engin YILMAZ
2017 Nov 27
0
Scatterplot of many variables against a single variable
> On 27 Nov 2017, at 11:56, Engin YILMAZ <ispanyolcom at gmail.com> 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 tiny note; You do calculations in R not RSudio. RStudio is a tool
2017 Nov 27
3
Scatterplot of many variables against a single variable
LOL. Great reply Jim. (N.B. Jim's conclusion is "debatable" by a judicious choice of seed. e.g. set.seed(79) suggests that making the request more readable will actually lower the number of useful answers. :-)) On Mon, Nov 27, 2017 at 11:42 AM, Jim Lemon <drjimlemon at gmail.com> wrote: > Hi Engin, > Sadly, your illustration was ambushed on the way to the list. Perhaps
2017 Nov 27
0
Scatterplot of many variables against a single variable
Dear Berger and Jim Can you see my eviews example in the annex? (scattersample.jpg) Sincerely Engin 2017-11-27 13:27 GMT+03:00 Eric Berger <ericjberger at gmail.com>: > LOL. Great reply Jim. > (N.B. Jim's conclusion is "debatable" by a judicious choice of seed. e.g. > set.seed(79) suggests that making the request more readable will actually > lower the number of
2017 Oct 29
7
Count non-zero values in excluding NA Values
Dear R Staff You can see my data.csv file in the annex. I try to count non-zero values in dataset but I need to exclude NA in this calculation My code is very long (following), How can I write this code more efficiently and shortly? ## [NA_Count] - Find NA values data.na =sapply(data[,3:ncol(data)], function(c) sum(length(which(is.na (c))))) ## [Zero] - Find zero values
2017 Nov 27
1
Scatterplot of many variables against a single variable
You do not appear to have read the Posting Guide mentioned at the bottom if this and every posting on the mailing list. Only a very few attachment types are allowed through the mailing list... and due to the way many email programs fail to identify them properly, even those few types may not make it through. Also, this is a plain text email list... any time you send HTML-formatted email it gets
2017 Oct 29
0
Count non-zero values in excluding NA Values
What was suggested by Eric and Rui works well, but here is a short and may be simpler answer provided your data is similar what Eric posted. It should work for your l data too. aa <- is.na(data)|data==0 nrow(data)-colSums(aa) EK On Sun, Oct 29, 2017 at 6:25 AM, Engin YILMAZ <ispanyolcom at gmail.com> wrote: > Dear R Staff > > You can see my data.csv file in the annex. >
2017 Oct 29
0
Count non-zero values in excluding NA Values
Since i could not see your data, the easiest thing comes to mind is court values excluding NAs, is something like this sum(!is.na(x)) Best of luck--EK On Sun, Oct 29, 2017 at 6:25 AM, Engin YILMAZ <ispanyolcom at gmail.com> wrote: > Dear R Staff > > You can see my data.csv file in the annex. > > I try to count non-zero values in dataset but I need to exclude NA in this >
2017 Oct 29
1
Count non-zero values in excluding NA Values
Dear R Staff This is my file (www.fiscalforecasting.com/data.csv) if you don't download this file, my dataset same as following Year Month A B C D E 2005 July 0 *4* NA NA *1* 2005 July 0 NA NA 0 *9* 2005 July NA *4* 0 *1* 0 2005 July *4* 0 *2* *9* NA I try to count non-zero values which are not NA values for every *column* *Sincerely* *Engin YILMAZ*
2017 Nov 27
1
Scatterplot of many variables against a single variable
> On 27 Nov 2017, at 13:59, Engin YILMAZ <ispanyolcom at gmail.com> 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 link in the email.
2017 Nov 27
0
Scatterplot of many variables against a single variable
Hi Engin, Sadly, your illustration was ambushed on the way to the list. Perhaps you want something like this: # proportion of useful answers to your request pua<-sort(runif(20)) #legibility of your request lor<-sort(runif(20))+runif(20,-0.5,0.5) # is a data set provided? dsp<-sort(runif(20))+runif(20,-0.5,0.5) # generate a linear model for the above pua.lm<-lm(pua~lor+dsp) # get the
2017 Oct 29
0
Count non-zero values in excluding NA Values
Hello, Your attachment didn't came through, R-Help strips off most types of files, including CSV. Anyway, the following will do what I understand of your question. Tested with a fake dataset. set.seed(3026) # make the results reproducible data <- matrix(1:100, ncol = 10) data[sample(100, 15)] <- 0 data[sample(100, 10)] <- NA data <- as.data.frame(data) zero <-
2010 Jan 18
2
sendmail alias
Hi, how are mails forwarded, if I do have the same alias pointing to two different users like this (two entries, two lines): bon.aqua: coke bon.aqua: pepsi Will coke and pepsi get the mail adressed to bon.aqua or will only the first entry get the mail? I know, that "bon.aqua: coke, pepsi" will forward the mails to coke and pepsi, Cheers, G?tz -- G?tz Reinicke IT-Koordinator
2010 Jul 28
2
Nat issue one way audio on IP dial
hi there, i have posted earlier on the list but got no satisfying answer. the problem is not big. I have asterisk server directly connected with internet (79.80.x.x) and clients are behind router. clients/users are registered with asterisk and are using sipura and xlite softphone. Now problem is that when a user calls other by dialing his IP:Port (sip uri), call is connected fine and he can
2020 Oct 21
2
AES spesification
Dear I use dataset , as called "mpg" This is code ggplot(data=mpg)+ geom_point(mapping = aes(x=displ, y=hwy, colour=year)) But I would like to see only "year of 1999" in this relationship between x and y variables How could I change the code in this direction? I found the following code library(dplyr)year_1999 <- filter(mpg, year=="1999")ggplot(year_1999,
2007 Jul 26
1
Lohan the observable
Sorry, that name is a misnomer. However, I was excited to find that Ruby has a built in Observable module and I''m pretty bored, so I apologize in advance.... require ''observer'' # one who is observed class Celebrity include Observable attr_accessor :name attr_reader :is def is=(val) @is = val changed notify_observers(self) end end # one who
2017 Aug 27
2
Fwd: Find maxima of a function
---------- Forwarded message ---------- From: niharika singhal <niharikasinghal1990 at gmail.com> Date: Sun, Aug 27, 2017 at 11:57 AM Subject: Re: Find maxima of a function To: "David Winsemius [via R]" <ml+s789695n4745009h56 at n4.nabble.com>, "Ismail SEZEN [via R]" <ml+s789695n4744993h60 at n4.nabble.com>, Ulrik Stervbo <ulrik.stervbo at gmail.com>
2017 Aug 26
1
Fwd: Find maxima of a function
Hi, Thanks for your mail, and time It is not working for some arguments, when mean value is like >6. case mc0 <- c(0.08844446,0.1744455,0.1379778,0.1209769,0.1573065,0. 1134463,0.2074027) rv <-UnivarMixingDistribution(Norm(486.4255, 53.24133), Norm(664.0713, 3.674773), Norm(669.0484, 4.101381),
2017 Aug 27
1
Fwd: Find maxima of a function
I have not followed the history of this thread, but I am quite flummoxed as to why the OP is rewriting code to estimate parameters from an univariate Gaussian mixture model when alternatives such as EMCluster (which generally appears to handle initialization better than MClust) exist. Or perhaps there is more to it in which case I apologize. But I thought that I would make the OP aware of the