search for: datan

Displaying 14 results from an estimated 14 matches for "datan".

Did you mean: data
2005 Jul 28
2
problem with an IF statement?
Can somebody please take a look at this and tell me whats going wrong? It seems to be parsing wronly around the 'if' statement and gives me a directory listing. Thanks in advance Tom N.B. datan is an invented dataset xvals<-c(1,0.4,0.2) datan<-data.frame(s1=c(3,4,5),s2=c(5,5,5),s3=c(21,55,34),s4=c(5,3,2)) datan$sint<-NA datan$sgrad<-NA for(icount in 1:dim(datan)[1]) { yvals<-c(datan[icount,4],datan[icount,3],datan[icount,2]) if((is.na(yvals[1]) + is.na(yvals[2]) + is.n...
2012 Sep 24
3
boxplot of different colors
Hello, I am making a boxplot of 13 boxes. I tried to color the box using 13 colors but failed. Only red and brown were displayed. Green, blue, and grey disappeared. Please kindly advise modification after checking the code below. Thank you in advance. Elaine R code # data input dataN <-read.csv("H:/a_mig_distance_B_NB/R_data/Mig_bird_586_20120925.csv",header=T, row.names=1) dim(dataN) dataN[1,] str(dataN) # graph par(mai=c(1,1.03,0.4,0.4)) obs.group<-dataN$Diet_B par(new=T) boxplot(GE_distance~Diet_B, data=dataN,xlab="Diet...
2013 Jan 12
1
panel failure in xyplot
Hello I ran the code below but it said: no object "'panel.xyplot.intermediate.hh'" Please kindly advise how to modify the code. thank you. (It works with panel.bwplot.intermediate.hh) Elaine code library(HH) # data input dataN <-read.csv("H:/R_data/Mig_bird_586.csv",header=T, row.names=1) dim(dataN) dataN[1,] str(dataN) diet.code <- c("Herbivore", "Omnivore", "Carnivore") Diet.colors <- c("forestgreen", "darkblue","red2")...
2012 Sep 28
2
changing outlier shapes of boxplots using lattice
...ng Richard's code, the display was almost perfect except the outlier shape. Based on the following code, the outliers are vertical lines. However, I want the outliers to be empty circles. Please kindly help how to modify the code to change the outlier shapes. Thank you. code package (lattice) dataN <- data.frame(GE_distance=rnorm(260), Diet_B=factor(rep(1:13, each=20))) Diet.colors <- c("forestgreen", "darkgreen","chocolate1","darkorange2", "sienna2","red2","firebrick3","sa...
2013 May 05
1
slope coefficient of a quadratic regression bootstrap
...you. Elaine code require(boot) function.fit2 <- function(data){ #data <- data[indices,] # select obs. in bootstrap sample fit2 <-lm(logDIS~logBMN+I(logBMN^2)) coefficients(fit2) # return coefficient vector } boot.fit2 <- boot(dataN, function.fit2, 1000) error > fit2.boot <- boot(dataN, fun.fit2, 1000) Error in statistic(data, original, ...) : unused argument (original) [[alternative HTML version deleted]]
2013 Jan 12
1
add categorical labels in plot
Hello I want to draw a plot using the code below. Further, I want to add labels (White, Yellow, Red) to x-axis. Please kindly advise how to add the categorical labels, by modifying the code. Thank you. Elaine Code dataN <-read.csv("H:/skin_color.csv",header=T, row.names=1) dim(dataN) dataN[1,] str(dataN) obs.group<-dataN$skin_color levels(dataN$skin_color) <- skin.code skin.code <- c("White", "Yellow", "Red") # graph pa...
2013 Jan 12
0
two-group comparison in boxplot
...00 the fourth boxplot: sex =2, body weight51-100 the fifth boxplot: sex =1, body weight >101 the sixth boxplot: sex =2, body weight >101) Please kindly advise how to modify the code below for the above purpose. Thank you. Elaine Code library(HH) # data input 1 (all data) dataN<-read.csv("H:/body_status.csv",header=T, row.names=1) dataN$sex <-factor(dataN$sex) dim(dataN) dataN[1,] str(dataN) sex.colors <- c("darkblue","red2") sex.code <- c("Boy", "Girl") levels(dataN$sex) <-...
2012 Sep 25
0
boxplot of multi box color
...g range of the birds. I checked the previous r-help and found a possible solution. However, it did not work by showing "error in ncol(Diet_B)," Diet_B not found. Please kindly help with modification and thank you. Also, if anything is unclear, please let me know. code # data input dataN <-read.csv("H:/Mig_bird_586_20120925.csv",header=T, row.names=1) dataN$Diet_B <-factor(dataN$Diet_B) # graph par(mai=c(1,1.03,0.4,0.4)) boxplot(GE_distance~Diet_B, data=dataN, col = rep(seq(ncol(Diet_B)) + 1, each = 1)) [[alternative HTML version deleted]]
2013 Jan 12
1
color in xyplot
...in the same group show the same color. Please kindly advise how to modify it. Thank you. code library (lattice) diet.code <- c("Herbivore", "Omnivore", "Carnivore") Diet.colors <- c("forestgreen", "darkblue","red2") levels(dataN$Diet) <- diet.code # graph par(mai=c(1.03,1.03,0.4,0.4)) par(new=T) xyplot(GE_distance~Diet, data=dataN, xlab=list("Diet of Breeding Ground", cex = 1.4), ylab=list("Migration Distance",cex = 1.4), xaxt="n", yaxt="n",type...
2019 Mar 28
2
NFSv4: Using fsid=0 but *not* exporting the root filesystem
...e and how? E.g Filesystem: /exports/data1 /exports/data2 /exports/data3 /etc/exports: /exports *(ro,no_subtree_check,fsid=0) /exports/data1 host1(rw) /exports/data2 host1(rw) /exports/data3 host2(rw) host1 and host2 can mount fileserver:/ and access any of the dataN directories at least read-only. That is unwanted. I'd like /exports/data1 and /exports/data2 to be exclusively accessible by host1 and /exports/data3 by host2. But I'd still like to be able to mount e.f. as fileserver:/data1 instead of fileserver:/exports/data1. I've search arou...
2009 Nov 12
2
Question about simulation design...
Help R list servers, I have 500 external data sets for a simulation study that I would like to bring into R to analyze. They have the names data1.dat, data2.dat, ..., dataN.dat Is there a way to automatize the bringing in of these data sets in R using the read.table function within a looping cycle? For example... for (j in 1:N){ data_"j" = read.table("data"j".dat, header=F) executable code . . . } bring in the next data set. SAS uses a...
2019 Mar 29
0
NFSv4: Using fsid=0 but *not* exporting the root filesystem
...exports/data2 > ? /exports/data3 > > /etc/exports: > ? /exports???????? *(ro,no_subtree_check,fsid=0) > ? /exports/data1?? host1(rw) > ? /exports/data2?? host1(rw) > ? /exports/data3?? host2(rw) > > > host1 and host2 can mount fileserver:/ and access any of the dataN > directories at least read-only.? That is unwanted.? I'd like > /exports/data1 and /exports/data2 to be exclusively accessible by host1 > and /exports/data3 by host2.? But I'd still like to be able to mount > e.f. as fileserver:/data1 instead of fileserver:/exports/data1. >...
2006 Mar 24
2
Basic Auth in WEBrick
...) authenticator = HTTPAuth::BasicAuth.new( :UserDb => htpasswd :Realm => realm ) server.mount_proc(/htpasswd_auth) {|req resp| authenticator.authenticate(req resp) resp.body = "You are authenticated to see the super secret datan" } } Do I replace the script/server file with something like this? If there an actual example of working with rails, not just WEBrick as a standalone server, someone can point me to? --ejw Eric Woodward Email: ejw@statewood.com
2012 Mar 20
13
[PATCH 0 of 3 v2] PV-GRUB: add support for ext4 and btrfs
Hi, The following patches add support for ext4 and btrfs to PV-GRUB. These patches are taken nearly verbatim from those provided by Fedora and Gentoo. We''ve been using these patches for the PV-GRUB images available in EC2 for some time now with no problems. Changes from v1: - Makefile has been changed to check the exit code from patch - The btrfs patch has been rebased to apply