Displaying 16 results from an estimated 16 matches for "e8c156".
Did you mean:
8156
2012 Jun 07
3
conditional statement to replace values in dataframe with NA
...is where I get stuck
#The end dataframe will look something like:
? x y ?fac
NA NA ? B
NA NA ? A
1 2 ? C
1 3 ? C
1 2 ? C
1 3 ? A
#Is there a better way to do this where I do not need to subset
perhaps using lapply?
Thanks,
Daisy
--
Daisy Englert Duursma
Department of Biological Sciences
Room E8C156
Macquarie University, North Ryde, NSW 2109
Australia
Tel +61 2 9850 9256
2010 Aug 25
4
degree C symbol in a function
...degree~C),cex=1)
This worked great and resulted in the symbol for degree.
In the function, I have changed it so:
text(1,1,paste(b_unit),cex=1)
and
b_unit<-expression(~degree~C)
This now inserts ~degree~C instead of the symbol.
Any advice?
Thanks,
Daisy
--
Daisy Englert Duursma
Room E8C156
Dept. Biological Sciences
Macquarie University? NSW? 2109
Australia
2011 Jan 27
2
identifying when one element of a row has a positive number
...t;,"GLM","CTA","NA","NA")
The end result should look like
df2<-(cbind(df1,one_presence,one_absence))
I am sure I can do this with a loop or maybe grep but I am out of ideas.
Any help would be appreciated.
Cheers,
Daisy
--
Daisy Englert Duursma
Room E8C156
Dept. Biological Sciences
Macquarie University? NSW? 2109
Australia
2010 Oct 26
4
divide column in a dataframe based on a character
...p_a group_b
1 1 C a aa bb
I know for a vector I can:
x1 <- c("a_b","b_c","c_d")
do.call("rbind",strsplit(x1, "_"))
but I am not sure how this relates to my data.frame
Thanks,
Daisy
--
Daisy Englert Duursma
Room E8C156
Dept. Biological Sciences
Macquarie University? NSW? 2109
Australia
2013 Jul 23
2
downloading web content
...= opts, .encoding = .encoding) :
embedded nul in string:
and
a<-httpPOST("
http://biocache.ala.org.au/ws/occurrences/download?q=Banksia+ericifolia")
Error: Internal Server Error
Any help would be appreciated.
Daisy
--
Daisy Englert Duursma
Department of Biological Sciences
Room E8C156
Macquarie University, North Ryde, NSW 2109
Australia
[[alternative HTML version deleted]]
2010 May 24
2
excluding on element from a list
...d "proj.current". This is the 31st file in a folder.
Currently I use the command:
tdirs <- list.files(pattern="proj.")[-31]
However I would like to exclude it based on its name and not the position.
Any advice would be useful.
Thanks,
Daisy
Daisy Englert Duursma
Room E8C156
Dept. Biological Sciences
Macquarie University NSW 2109
Australia
2010 May 18
1
issues with R Library on a Server
...internal error -3 in R_decompress1
Error: package/namespace load failed for 'nnet'
My questions are:
Why are the packages downloading to the above location?
What is the next step(s) I should take to setting up the server correctly.
Thanks,
Daisy
--
Daisy Englert Duursma
Room E8C156
Dept. Biological Sciences
Macquarie University NSW 2109
Australia
Tel +61 2 9850 9256
10A Carrington Rd
Hornsby, NSW 2077
Mobile: 0421858456
2010 Sep 30
1
Unix batch to different nodes
...run takes 18 hours
At this point I am confused what should be written in Unix and then at
what point should I call R. I have read an abundance of things but I
feel like I am missing something essential. Or perhaps I have read all
the wrong things.
Thanks,
Daisy
--
Daisy Englert Duursma
Room E8C156
Dept. Biological Sciences
Macquarie University? NSW? 2109
Australia
2011 Jul 31
2
Legend for 2 plots on same screen
Hello,
I have two plots on the same screen. I use the command par(mfrow=c(1,2)) in
order to do this. When I try to make a legend for both plots, it only puts
the legend in the plot on the right side. If I would like a legend that is
outside of both of the plots, how would I do this?
Thanks
[[alternative HTML version deleted]]
2010 Oct 26
2
discerning plot dots using colors
Dear List,
I am using the command plot to present the relationship
between bird richness (Y axis) and elevation (X axis).
However, I would like to observe
the distributions of bird richness in different administrative areas (A, B,
C, …., G) in this plot.
For example, the dots in area A might fall in the upper right part of the
plot, while those in area B might appear in the middle of
2010 Apr 19
2
selecting rows based on number that occurs after letter
Hello,
I am trying to cycle through a csv and make some summary statistics.
I need to select rows based on the number in the row name that comes
after the letter 'y'. For example, ? BA1y1 would equal 1, ?C3A2r3y1
would equal 1 and ?MA3r3y1r3 would equal 1.
I currently have my code ?cycling through by the 5th character but my
rows have variable length and the y can occur in several
2011 Apr 18
4
Deleting the last value of a vector
Hey guys,
I've search a few threads about deleting a value from a vector, but no one
has addressed this question so far.
I want to delete the last value from a string of values
I have:
r = [ 1, 2, 3, 4, 5 ], and i want to make r2 = to [ 1, 2, 3, 4]
So that r2 is just like r, except that it missing the final value.
Thanks,
--
View this message in context:
2011 Jun 29
2
Indexing to Insert values from a dataframe into a matrix
Hello,
I think this is a simple problem but I am not coming up with a simple
solution. I think it just an indexing problem.
I can easily replace values in a matrix from a dataframe when the
dataframe has row and column numbers. In the example below I use row
and column names and I can not get it to work
#make a matrix where rows and columns are the lat and long for a
bounding box of Australia
2010 May 24
1
library location and error messages when loading packages
...:/PROGRA~1/R/R-211~1.0/library" )
******Unfortunately this is not where the updated packages went, the
updated package went to "C:\\RLIBRARY" . I have messed something up
and I do not know how to fix it.
Any advice would be welcome.
Thanks,
Daisy
--
Daisy Englert Duursma
Room E8C156
Dept. Biological Sciences
Macquarie University NSW 2109
Australia
2012 Apr 05
2
random sample from list
...needs to
stay as a list due to memory issues
#Here is how I have tried to sample but it is not sampling from the right
part of the list
bg<- z_nonna[sample(1:length(z_nonna), 5000, replace=FALSE)]
Thanks for the help,
Daisy
--
Daisy Englert Duursma
Department of Biological Sciences
Room E8C156
Macquarie University, North Ryde, NSW 2109
Australia
Tel +61 2 9850 9256
[[alternative HTML version deleted]]
2011 Feb 07
1
multiple imputation manually
Hi,
I want to impute the missing values in my data set multiple times, and then
combine the results (like multiple imputation, but manually) to get a mean
of the parameter(s) from the multiple imputations. Does anyone know how to
do this?
I have the following script:
y1 <- rnorm(20,0,3)
y2 <- rnorm(20,3,3)
y3 <- rnorm(20,3,3)
y4 <- rnorm(20,6,3)
y <- c(y1,y2,y3,y4)
x1 <-