search for: dff

Displaying 19 results from an estimated 19 matches for "dff".

Did you mean: df
2011 Aug 15
1
ggplot in a function confusion!
...=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){ print(ggplot() + geom_point(aes(x=dff[,x.var],y=dff[,y.var]))) } plot.func.two<-function(dff,x.var,y.var){ print(ggplot() + geom_point(data=dff,aes(x=dff[,x.var],y=dff[,y.var]))) } plot.func.three<-function(dff,x.var,y.var){ print(ggplot() + geom_point(data=dff,aes...
2011 Jul 28
0
_: how to replace values in x by means in subgroups created in ...(not loops)
...0 1 0 0 0 1 1 1 # Value expected: #x_m # 1.5 1.5 1.5 3.0 5.0 5.0 5.0 7.0 8.0 9.0 #------------------------------------------------------- # author: me # replace_x_by_locallyMean_x_4_0s_in_y.f(x,y) #------------------------------------------------------- #initialisation Dff<-NULL index_Dff.start_0<-NULL index_Dff.stop_0<-NULL x<-NULL y<-NULL replace_x_by_locallyMean_x_4_0s_in_y.f<-NULL replace_x_by_locallyMean_x_4_0s_in_y.f<-function(x=Df$x, y=Df$y){ Dff<-as.data.frame(cbind(as.vector(x),as.vector(y)))...
2009 Nov 25
0
Possible bug in "unsplit" (PR#14084)
...(Bokm?l)_Norway.1252 [3] LC_MONETARY=Norwegian (Bokm?l)_Norway.1252 LC_NUMERIC=C [5] LC_TIME=Norwegian (Bokm?l)_Norway.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.10.0 > ## a reproducable example: dff <- data.frame(gr1=factor(c(1,1,1,1,1,2,2,2,2,2,2), levels=c(1,2,3,4)), gr2=factor(c(1,2,1,2,1,2,1,2,1,2,3), levels=c(1,2,3,4)), yy=rnorm(11)) # note that the two groups "gr1" and "gr2" have defined levels which not occur in the data. dff2 <- split(dff, list(dff$gr1, df...
2011 Jun 07
1
variable selection in linear regression
...e with maximum partial F to enter the model, let say x4 with max value of partial F=58.02377. therefore, our next model is y~b0+b4x4 my questions... 1.how should i write so that x4 will be added to the next step? 2. the formula for partial F test is F*=(SSE(reduced model)-SSE(full model)/dfR-dfF) / (SSE(full model)/dfF) which can be simply as F*=MSR(xi | x1,x2,...,xi-1,xi+1) / MSE(x1,x2,...,xi-1,xi,xi+1) If i would like to write my formula by simplified one, how can i write it for every xi (not in the model) that need to be selected with conditionally depend on other x's (in the mode...
2008 Mar 13
3
Splitting a set of vectors in a list
...k. Would somebody please suggest something? Thanks Example. mylist <- list(aa=c("cat","peach" ), bb=c("dog", "apple", "iron"), cc = c("rabbit", "orange", "zinc", "silk")) myfun <- function(dff) dff[1] vect1 <- unlist(lapply(mylist, myfun)) Looking for the perfect gift? Give the gift of Flickr!
2000 Mar 13
0
listing shares
...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 = 172.16.1.2/255.255.0.0 allow hosts = 172.16. workgroup = dff security = user server string = Linux PDC Samba %v preferred master = yes domain logons = yes guest account = samba #in /etc/htpasswd domain master = yes logon path = \\%L\Profiles\%U logon drive = P: unix realname = yes null passwords = yes map to guest = Bad User encrypt passwords = yes printin...
2009 May 13
1
Overlaying two plots
...uare region and then overlay the world map again. When I use the following code, the image plot takes up the whole plot screen and is not within the square region and thus when I overlay the world map, the coordinates will be off. df <- as.matrix(read.table("kz_time1.txt", header=F)) dff <- apply(df, 2, rev) image(t(dff), xlab="", ylab="", axes=FALSE) par(new=TRUE) plot(wrld_simpl, axes = TRUE, ylim = c(-90, 90), xlim=c(-180, 180), asp = 1.5, xlab="Longitude", ylab="Latitude") abline(v=-180, h=90, col="red") abline(v=180, h=-90...
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
2008 Apr 01
4
NEW: Sociolects in R
...nt "like" might actually be intended to mean likelihood). Similarly, for se_KC_SE.UTF8 (KC for "kitchen") we have alternate spellings of arguments like "data": t.test(ixtra ~ gruoop, deta = sleep) Velch Tvu Semple-a t-test deta: ixtra by gruoop t = -1.8608, dff = 17.776, p-felooe-a = 0.0794 elterneteefe-a hypuzeesees: trooe-a deefffference-a in meuns is nut iqooel tu 0 95 percent cunffeedence-a interfel: -3.3654832 0.2054832 semple-a isteemetes: meun in gruoop 1 meun in gruoop 2 0.75 2.33 Canadian English poses particular problem...
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
2000 Mar 10
0
can't browse PDC
...ave changed! Here's my global section: [global] #time server = yes keep alive = 30 log file = /var/log/smbd.log lock directory = /var/lock/samba #syslog only = yes #deadtime = 1 bind interfaces only = yes interfaces = eth0 interfaces = 172.16.1.2/255.255.0.0 allow hosts = 172.16. workgroup = dff security = user #netbios name = PDCSAMBA server string = Linux PDC Samba %v preferred master = yes domain logons = yes guest account = samba #lm announce = no domain master = yes logon path = \\%L\Profiles\%U logon drive = P: ; logon script = login.bat #unix password sync = yes unix realname = yes...
2002 Jun 26
1
w2k sp2 + ntconfig.pol
...comment = "Netlogon" path = /PDC/netlogon ; write list = @ntadmin browseable = yes locking = no writable = yes public = no case sensitive = no case preserve = yes short preserve case = no default case = yes This is our policy file: -rwxr--r-- 1 mmelas dff 16384 Jun 25 12:47 ntconfig.pol Owned by a user, different name, different rights - but it works with w2k sp1 :-/ Could you check if you have the following registry key on your workstations: HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Policies/System/DisableNT4Policy I&...
2020 Feb 27
0
Samba AD - Different IP than the existing one assigned
...frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 br-eebd35f33249: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500 inet 172.18.0.1 netmask 255.255.0.0 broadcast 172.18.255.255 inet6 fe80::42:dff:fed5:dd97 prefixlen 64 scopeid 0x20<link> ether 02:42:0d:d5:dd:97 txqueuelen 0 (Ethernet) RX packets 5577 bytes 3892905 (3.8 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1731 bytes 172505 (172.5 KB) TX errors 0 dropped 0 overru...
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
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
2003 Aug 01
0
FW: winbind on Solaris 2.5.1 not working.
..._ s o c k e t _".., 15) = 15 550: write(3, " ( 8 4 5", 4) = 4 550: write(3, " )\n", 2) = 2 550: getuid() = 0 [0] 550: write(3, " C o n n e c t i n g".., 43) = 43 550: fcntl(7, F_GETFL, 0x00000000) = 130 550: sigprocmask(SIG_BLOCK, 0xEFFFDF50, 0xEFFFDFF4) = 0 550: putmsg(7, 0xEFFFE004, 0x00000000, 0) = 0 550: fcntl(7, F_SETFL, 0x00000002) = 0 550: getmsg(7, 0xEFFFE004, 0x00000000, 0xEFFFDEFC) Err#146 ECONNREFUSED 550: sigprocmask(SIG_SETMASK, 0xEFFFDFF4, 0x00000000) = 0 550: time() = 1059760324 550: getuid() = 0 [0] 550: write(3, &quot...
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