search for: 150

Displaying 20 results from an estimated 3892 matches for "150".

Did you mean: 10
2005 Oct 18
3
Repeating lines in a data frame
Hello, I have a much larger dataset that is similar in form to: year species length count 1998 1 150 1 1998 2 200 1 1998 3 250 2 1999 1 150 3 1999 2 200 4 1999 3 250 5 2000 1 150 1 2000 2 200 1 2000 3 250 1 2001 1 150 2 2001 2 200 3 2001 3 250...
2001 Nov 08
3
Problem with optim (method L-BFGS-B)
Hello, I've just a little problem using the function optim. Here is the function I want to optimize : test_function(x){(exp(-0.06751 + 0.25473*((x[1]-350)/150) + 0.04455*((x[2]-40)/20) + 0.09399*((x[3]-400)/100) - 0.17238*((x[4]-250)/50)- 0.45984*((x[5]-550)/150)-0.39508*((x[1]-350)/150)* ((x[1]-350)/150) - 0.05116*((x[2]-40)/20)* ((x[2]-40)/20) - 0.27735*((x[3]-400)/100)*((x[3]-400)/100) - 0.12902*((x[4]-250)/50)* ((x[4]-250)/50)-1.07812*((x[5]-550)/150...
2006 Jun 25
1
Puzzled with contour()
...[3,] 0.00 40 1.000 [4,] 0.00 50 1.000 [5,] 0.00 60 1.000 [6,] 0.00 70 1.000 [7,] 0.00 80 0.000 [8,] 0.00 90 0.000 [9,] 0.00 100 0.000 [10,] 0.00 110 0.000 [11,] 0.00 120 0.000 [12,] 0.00 130 0.000 [13,] 0.00 140 0.000 [14,] 0.00 150 0.000 [15,] 0.00 160 0.000 [16,] 0.00 170 0.000 [17,] 0.00 180 0.000 [18,] 0.00 190 0.000 [19,] 0.00 200 0.000 [20,] 0.05 20 1.000 [21,] 0.05 30 1.000 [22,] 0.05 40 1.000 [23,] 0.05 50 1.000 [24,] 0.05 60 0.998 [25,] 0.05 70 0.124 [2...
2008 Jun 02
2
Need advise in grab the line number of sorted list in R
Hi, I have a data frame which format is like below:- X Y Z 131 22.2 3.4 4.4 150 20.0 12.2 4.5 etc... And I have sorted the data frame. However, I would like to grab one of these elements in the data frame. Also, i would like to number these rows so that when i grab a particular line let say 150, it is able to return me the position of the row rather than the "150"...
2010 Mar 30
2
Need help to split a given matrix is a "sequential" way
I need to split a given matrix in a sequential order. Let my matrix is : > dat <- cbind(sample(c(100,200), 10, T), sample(c(50,100, 150, 180), 10, > T), sample(seq(20, 200, by=20), 10, T)); dat [,1] [,2] [,3] [1,] 200 100 80 [2,] 100 180 80 [3,] 200 150 180 [4,] 200 50 140 [5,] 100 150 60 [6,] 100 50 60 [7,] 100 100 100 [8,] 200 150 100 [9,] 100 50 120 [10,] 200 50 180 Now I...
2008 Oct 01
1
Please help me to produce smoothed contour plots
...interested in smoothing as the data generation process is stochastic and produces small variations which I'd rather 'smooth' away. I cannot spot what is different about my data from the examples in (akima) which prevents this working. here is an example of my data: > x 0 50 100 150 200 250 300 350 400 450 500 0 50 100 150 200 250 300 350 400 [21] 450 500 0 50 100 150 200 250 300 350 400 450 500 0 50 100 150 200 250 300 [41] 350 400 450 500 0 50 100 150 200 250 300 350 400 450 500 0 50 100 150 200 [61] 250 300 350 400 450 500 0 50 100 150 200 250 300 350 4...
2009 Jan 20
5
Problem with subset() function?
Hi all, Can anyone explain why the following use of the subset() function produces a different outcome than the use of the "[" extractor? The subset() function as used in density(subset(mydf, ht >= 150.0 & wt <= 150.0, select = c(age))) appears to me from documentation to be equivalent to density(mydf[mydf$ht >= 150.0 & mydf$wt <= 150.0, "age"]) (modulo exclusion of NAs) but use of the former yields an error from density.default() (shown below). Is this a bug in...
2006 Feb 17
2
Grouping and Averaging in Table
Dear Rs I have a single table with three columns in the following form: 1 100 150 1 45 32 1 99 100 2 150 33 2 22 87 2 71 31 .... .... 1000 64 32 1 100 150 1 45 32 1 99 100 2 22 89 2 31 44 2 88 11 .... .... 1200 64 32 1 100 150 1 45 32 1 99 100 2 150 33 2 22 87 2 71 31 ... ... 1100 31 34 Totally 1000+1200+1100 rows. Now, I need to group by first column and average then second...
2010 Jan 20
2
Question about many-to-one merge
...hould be a simple problem. I have two datasets to merge. The first one just contains two ID columns and it looks like: FromID ToID 1 2 1 3 2 1 2 3 3 1 3 2 The second one contains a ID column and a variable: ID X 1 100 2 150 3 130 What I want is to merge the two datasets together using the ToID and ID. The final merged dataset should look like: FromID ToID X 1 2 150 1 3 130 2 1 100 2 3 130 3 1 100 3 2 150 The Me...
2006 Jul 01
0
SUMMARY: making contour plots using (x,y,z) data
..., 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.95, 0.95, 0.95, 0.95, 0.95, 0.95, 0.95, 0.95, 0.95, 0.95, 0.95, 0.95, 0.95, 0.95, 0.95, 0.95, 0.95, 0.95, 0.95, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 20, 30, 40,...
2008 Jun 11
3
[LLVMdev] Possible miscompilation?
Hi all, I'm trying to figure out a weird bug I'm seeing. I'm hoping it's something simple in my IR but I can't see anything wrong so I'm hoping someone here can see something. I'm using LLVM to compile Java bytecode into native functions. My code keeps track of the Java local variables in an array of llvm::Value pointers which get phi'd up at various points. The
2006 May 25
6
150 Rails Plugins
The Rails Plugin Directory now has over 150 plugins and RDoc support too: http://www.bencurtis.com/archives/2006/05/150-rails-plugins/ -- Benjamin Curtis http://www.bencurtis.com/ http://www.tesly.com/ -- Collaborative test case management http://www.agilewebdevelopment.com/ -- Resources for the Rails community
2011 Nov 18
3
Permutations
Hi all, why factorial(150) shows the error out of range in 'gammafn'? I have to calculate the number of subset formed by 150 samples taking 10 at a time. How is this possible? best [[alternative HTML version deleted]]
2009 Jul 15
1
negative Somers D from Design package
...ense ? This is with the mayo data so its reproducible but the result with my data is very similar. Many thanks in advance library(survivalROC) library(Design) library(survival) data(mayo) Sm <- Surv(mayo$time,mayo$censor) fm <- cph( Sm ~ mayoscore4 ,mayo,x=T,y=T,surv=T ) validate(fm, B=150,dxy=T) Iteration 1 .... index.orig training test optimism index.corrected n Dxy -0.566027923 -0.566665407 -0.566027923 -0.0006374833 -0.565390440 150 R2 0.325860603 0.327350885 0.325860603 0.0014902826 0.324370320 150 Slope 1.000000000 1.000000000 0.98...
2011 Feb 06
2
Subsampling out of site*abundance matrix
Hello, How can I randomly sample individuals within a sites from a site (row) X species abundance (column) data frame or matrix? As an example, the matrix "abund2" made below. ##### (sorry, Im a newbie and this is the only way I know to get an example on here) abund1 <- c(150, 300, 0, 360, 150, 300, 0, 240, 150, 0, 60, 0, 150, 0, 540, 0, 0, 300, 0, 240, 300, 300, 0, 360, 300, 0, 600, 0) abund2 <- matrix(data=abund1, nrow=4, ncol=7) colnames(abund2) <- c("spA", "spB", "spC", "spD", "spa", "spF&quo...
2005 Nov 17
2
[Rd] Scan data from a .txt file
[Re-directing to R-help, as this is more appropriate there.] I tried copying the snippet of data into the windows clipboard and tried it: > dat <- read.table("clipboard", header=T) > dat Name Weight Height Gender 1 Anne 150 65 F 2 Rob 160 68 M 3 George 180 65 M 4 Greg 205 69 M > str(dat) `data.frame': 4 obs. of 4 variables: $ Name : Factor w/ 4 levels "Anne","George",..: 1 4 2 3 $ Weight: int 150 160 180 205 $ Height: int 65 68 65 69...
2006 Sep 30
1
Simple graphics
Is there any way that I can do something like this: png("file.png", width=200, height=200) polygon(c(50, 50, 150, 150), c(50, 150, 150, 50)) dev.off() and then have a png file with a 100 x 100 pixels rectangle in the middle of it? It seems that when I call "plot", it redefines the image coordinates to some "optimized" value and then I lose any information to draw exactly what I want....
2010 May 07
1
writing string values from a matrix to a file without enclosing quotes
...surrounding the numerals with quotes, the original data is in a matrix formatted paired strings, and written to file using write.table(x,"output filename",col.names=F,row.names=F) thus "77 79" "132 132" "000 000" "179 181" "132 132" "150 150" "179 179" "132 132" "000 000" "179 179" "132 134" "150 152" however I need the output file without the quotes but retaining 000 not reducing it to 0 thus 77 79 132 132 000 000 179 181 132 132 150 150 179 179 132 132 000 000 17...
2012 Dec 19
2
probability of binary data
...ont-size:13.5px">_______________________________________________________________<BR>Get the Free email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br> <font color=#999999>Unlimited Email Storage &#150; POP3 &#150; Calendar &#150; SMS &#150; Translator &#150; Much More!</font></font></span>
2002 Aug 20
2
Reset par(xaxp) in plot
R-Helpers; This seems simple to set graphic parameter, but I tried plot a graph with 10 intervals in x axis with par(xaxp = c(0, 150, 10) but to no avail: par(xaxp =c (0, 150, 10)) plot(age, y18, type="n", ylab="Height (m)", xlab=" age (Yrs)", font = 2) lines(age, y6, lty = 4, lwd = 2) lnes(age, y10, lty = 1, lwd =2) lines(age, y14, lty = 2, lwd =2) lines(age, y18, lty = 3, lwd = 2) abline(...