similar to: _: how to replace values in x by means in subgroups created in ...(not loops)

Displaying 20 results from an estimated 100 matches similar to: "_: how to replace values in x by means in subgroups created in ...(not loops)"

2011 Aug 15
1
ggplot in a function confusion!
Whats going on here? df<-data.frame(x=1:10,y=1:10) ggplot()+geom_point(data=df,aes(x=x,y=y)) ## this is the normal usage right? ggplot()+geom_point(data=df,aes(x=df[,1],y=df[,2])) ## but I can also feed it column indices ggplot()+geom_point(aes(x=df[,'x'],y=df[,'y'])) ## or column names. ## but if i wrap it in a function... plot.func.one<-function(dff,x.var,y.var){
2009 Nov 25
0
Possible bug in "unsplit" (PR#14084)
Dear R-bug-people I have encountered a problem with "unsplit", which I believe may be caused by a bug in the function. However, unexpericend with bug-reports I apologise if this is barely a user problem rather than a problem within R. The problem occurs if an object is split by several grouping factors with levels not occuring in the data, and using drop = TRUE. This may appear as
2011 Jun 07
1
variable selection in linear regression
Hello With due respect, have a nice time. I would like to ask some command in R. It is regarding variable selection in linear regression. In R, there is one rebuild function called "step" which selecting variables according to AIC. let say i have data [y, x1,x2,x3,x4] we start with y~b0 i compute the partial F test and choose the variable with maximum partial F to enter the
2000 Mar 13
0
listing shares
I don't know what I have changed, NT does not list the shares anymore!! I can access them by directly connecting to \\SERVER\share but cannot browse them!! Win98 does just fine! Which option is the problem?? Here's a snipped of my config: [global] keep alive = 30 log file = /var/log/smbd.log lock directory = /var/lock/samba bind interfaces only = yes interfaces = eth0 interfaces =
2008 Mar 13
3
Splitting a set of vectors in a list
I have a set of character vectors of uneven length that I have stored in a list. I can easily enough get any column of them using lapply but what I want is to be able to create a matrix of them. Other than some kind of brute force looping approach I have drawn a blank. Would somebody please suggest something? Thanks Example. mylist <- list(aa=c("cat","peach" ),
2009 May 13
1
Overlaying two plots
Hi useR's, I want to overlay an image plot over a world map and I can do it, but just not the way I need to do it. Here is the code I am using (with data file attached) to create my baseline map: library(sp) load("TM_WORLD_BORDERS_SIMPL-0.2.RData") par(bty="l") plot(wrld_simpl, axes = TRUE, ylim = c(-90, 90), xlim=c(-180, 180), asp=1.5) lim <- par("usr")
2002 Jun 26
1
w2k sp2 + ntconfig.pol
On Wednesday 26 June 2002 08:55, you wrote: > Hi, > > I'm using win2k + sp2 and the policies are still being applied. The > Ntconfig.POL file is in the netlogon directory with root.root -rwxr-xr-x > (755). > > I hope this helps What exact version of samba are you running? Did you join the domain *before* or *after* you installed sp2? Could you send me the netlogon
2000 Mar 10
0
can't browse PDC
We've set up Samba as PDC and for some reasons some users can't browse the for the shares anymore! (Worked fine for more than 2 months!) "windows alert: \\KURN\ not available, access denied" Any automatic reconnected net volumes work fine. There's nothing strange in the log file (except "call_nt_transact_ioctl: Currently not implemented" but that was there before)
2008 Apr 01
4
NEW: Sociolects in R
The R translation teams have done a great job in making R usable for people who do not have English as their mother tongue. However, even within English speaking countries, there are groups which have trouble with the language, and it may be valuable to support the Sociolects of these groups too. Thanks to a generous contribution from Lars Polifo, these features will be made available in an
2020 Feb 27
0
Samba AD - Different IP than the existing one assigned
Hi, Thanks for helping. Answers in line : Hi, I want to use samba as AD. everything seemed to be ok so far with the install and the config. STATUS=daemon 'smbd' finished starting up and ready to serve connections Feb 27 10:34:03 ip-1XX winbindd[22083]: [2020/02/27 10:34:03.002858, 0] ../lib/util/become_daemon.c:124(daemon_ready) Feb 27 10:34:03 ip-1XX winbindd[22083]:
2011 Nov 04
4
How to delete only those rows in a dataframe in which all records are missing
Hi, Imagine I have the following data frame: > a <- c(1,NA,3) > b <- c(2,NA,NA) > c <- data.frame(cbind(a,b)) > c a b 1 1 2 2 NA NA 3 3 NA I want to delete the second row. If I use na.omit, that would also affect the third row. I tried to use a loop and an ifelse clause with is.na to get R identify that row in which all records are missing, as opposed to the first
2012 Oct 04
1
Ops.factor(point1, point2) : - not meaningful for factors
Hi, can anyone help me in this problem :(. I am a total beginner in R software. It took me 2 days just to look into this problem. Due to this problem. I cant do looping. i want to find the distance between x and DSi > DSi i Si 1 1 (5, 20) 2 2 (20, 2) 3 3 (25, 32) 4 4 (8, 39) 5 5 (10, 17) 6 6 (35, 20) 7 7 (38, 10) > str (DSi) 'data.frame': 7 obs. of 2 variables: $ i
2006 Nov 05
3
struggling to plot subgroups
Hi Folks, I have data that looks like this: freq gender xBar 1000 m 2.32 1000 f 3.22 2000 m 4.32 2000 f 4.53 3000 m 3.21 3000 f 3.44 4000 m 4.11 4000 f 3.99 I want to plot two lines (with symbols) for the two groups "m" and "f". I have tried the following: plot(xBar[gender=="m"]~freq[gender=="f"]) followed by
2017 Aug 24
1
rmutil parameters for Pareto distribution
In https://en.wikipedia.org/wiki/Pareto_distribution, it is clear what the parameters are for the pareto distribution: *xmin *the scale parameter and *a* the shape parameter. I am using rmutil to generate random deviates from a pareto distribution. It says in the documentation that the probabilty density of the pareto distribution The Pareto distribution has density f(y) = s (1 + y/(m
2007 Aug 15
1
Polynomial fitting
Hi everybody! I'm looking some way to do in R a polynomial fit, say like polyfit function of Octave/MATLAB. For who don't know, c = polyfit(x,y,m) finds the coefficients of a polynomial p(x) of degree m that fits the data, p(x[i]) to y[i], in a least squares sense. The result c is a vector of length m+1 containing the polynomial coefficients in descending powers: p(x) = c[1]*x^n +
2020 Feb 27
9
Samba AD - Different IP than the existing one assigned
Hi, I want to use samba as AD. everything seemed to be ok so far with the install and the config. STATUS=daemon 'smbd' finished starting up and ready to serve connections Feb 27 10:34:03 ip-1XX winbindd[22083]: [2020/02/27 10:34:03.002858, 0] ../lib/util/become_daemon.c:124(daemon_ready) Feb 27 10:34:03 ip-1XX winbindd[22083]: STATUS=daemon 'winbindd' finished starting up and
2003 Aug 01
0
FW: winbind on Solaris 2.5.1 not working.
-----Original Message----- From: Clark Mr Philip Sent: Friday, August 01, 2003 11:15 AM To: 'Jeremy Allison' Subject: RE: [Samba] winbind on Solaris 2.5.1 not working. Sure but its rather large and the funny thing is that it runs when it is trussed ( not correctly mind you) but not without it. the truss switches I use are aefo and as I said its large. The IP's and Hostnames are in
2008 Jun 30
4
Rebuild of kernel 2.6.9-67.0.20.EL failure
Hello list. I'm trying to rebuild the 2.6.9.67.0.20.EL kernel, but it fails even without modifications. How did I try it? Created a (non-root) build environment (not a mock ) Installed the kernel.scr.rpm and did a rpmbuild -ba --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log The build failed at the end: Processing files: kernel-xenU-devel-2.6.9-67.0.20.EL Checking
2002 Jun 25
1
policies do not get applied with w2k sp2
we are using samba 2.2.3a-6 for debian (woody) and found that our w2k machines do not apply the ntconfig.pol when sp2 is installed. (the sp1 machines do) Is there a way around this? -- Torsten
2000 Feb 07
3
modification time
When I copy an old file to a share the motification time is not changed. Ok, the file has not been modified but since it is new to this share I like to change it's time to the copy time! There MUST be an option to do this!But I haven't found it yet :( Can anyone help? -- Torsten