Displaying 13 results from an estimated 13 matches for "lannajin".
2010 May 04
2
R for web browser
Hi Everyone,
Does anyone know of any projects for running an interactive R session within
a web browser?
I'm looking for something similar to the one on the Ruby website
(http://tryruby.org), except for R.
Thanks for your responses in advance!
Lanna
-----
Lanna Jin
lannajin at gmail.com
510-898-8525
--
View this message in context: http://r.789695.n4.nabble.com/R-for-web-browser-tp2125571p2125571.html
Sent from the R help mailing list archive at Nabble.com.
2010 Mar 10
2
function to create multiple matrices
...encountering issues individually indexing the tables and converting
them into matrices in one fell swoop.
r1997<-as.matrix(tableT[,,"1997"]) #How I would do it individually; but I
can I make matrices for each year as a function?
Thanks in advance for your suggestions!
--
Lanna Jin
lannajin@gmail.com
510-898-8525
[[alternative HTML version deleted]]
2009 Nov 06
1
using xyplot to plot frequencies
...frame$Year)
the plot is wrong, probably because the dataframe has unnecessary repeats of
values.
I also tried converting all2 into a ftable (also tried a matrix) and naming
the columns and rows and evoking them in the xyplot. But this has also
turned disasterous.
Thanks in advance!
--
Lanna Jin
lannajin@gmail.com
510-898-8525
[[alternative HTML version deleted]]
2010 May 04
7
How to replace all <NA> values in a data.frame with another ( not 0) value
I need to replace <NA> occurrences in multiple columns in a data.frame
with "000/000"
how do I achieve this?
Thanks
Nevil Amos
2010 May 03
8
Delete rows with duplicate field...
as a r noob i am having another problem:
i have a big dataframe where each row corresponds to one entry and each
column is a field...
for instance, i have the column ID and time and many more...
Id like to get a dataframe where all IDs are just included once (some users
with that ID might have several entries but Id like to kepp only one)..
when i use unique I only get a list of the levels (or
2010 Mar 16
1
nested looping functions and dataframes
...PIPE_7
I have searched through the R-help archives for hints, which have not been
successful in answering my question. As a new user to R and programming
languages, I truly appreciate your help and thank you for your patience.
Thanks in advance for your response,
Lanna Jin
-----
Lanna Jin
lannajin at gmail.com
510-898-8525
--
View this message in context: http://n4.nabble.com/nested-looping-functions-and-dataframes-tp1595166p1595166.html
Sent from the R help mailing list archive at Nabble.com.
2012 Mar 29
1
Retrieving matrix column and row names by index value
Hi all,
So let's say I have a matrix, mdat and I only know the index number. How do
I retrieve the column and row names?
For example,
> mdat <- matrix(c(1,2,3, 11,12,13), nrow = 2, ncol=3, byrow=TRUE,
dimnames = list(c("row1", "row2"),
c("C.1", "C.2", "C.3")))
> mdat[4]
[1] 12
>
2010 Feb 18
1
Graphics Question
...differently (in the second
image the individual plots are half the height of in the first image).
How can I fix this? It would be nice to create a graphic with all of the
plots stacked on top of each other with the same axis dimensions and
ranges.
Thanks for your help in advance!
--
Lanna Jin
lannajin@gmail.com
510-898-8525
[[alternative HTML version deleted]]
2010 Apr 30
3
short question about data frame manipulation
Dear group,
I am losing my mind with a simple question. Sorry if obvious, but I maybe
start to be confused after days and days of reading documentations.
Df :
df <-
structure(list(a = 1:3, b = 4:6, c = structure(c(1L, 1L, 1L), class =
"factor", .Label = "w")), .Names = c("a",
"b", "c"), row.names = c(NA, -3L), class =
2011 Nov 07
2
adjusting levelplot color scale to data
Hi guys,
I have a matrix with values varying from approximately -0.7 to 0.33 that I
want to create a heatmap/levelplot with.
When I execute the levelplot function for my matrix, I end up getting colors
that are adjusted to the max and min rather than around 0. In other words,
ideally I would like to have a color ramp that goes from red (negative
number), to white (0), to blue (positive);
2009 Nov 05
3
performing operations on a dataframe
Hey all,
I feel like the solution to this problem should be relatively simple, but
for some reason I can't find answers or come up with my own solution.
Given the dataframe:
(SpA and SpB not important, want to look at distribution of cooccurance for
each year)
Year SpA SpB Coocc
2000 0
2000 2
2000 1
2001 8
2001 2
2001 0
2001 0
2002 1
2002 2
How can I apply different functions to
2010 May 05
0
R-help Digest, Vol 87, Issue 5
...option N?
--
View this message in context: http://r.789695.n4.nabble.com/Show-number-at-each-bar-in-barchart-tp2125438p2125438.html
Sent from the R help mailing list archive at Nabble.com.
------------------------------
Message: 16
Date: Tue, 4 May 2010 06:02:29 -0700 (PDT)
From: Lanna Jin <lannajin at gmail.com>
To: r-help at r-project.org
Subject: Re: [R] How to replace all <NA> values in a data.frame with
another ( not 0) value
Message-ID: <1272978149379-2125464.post at n4.nabble.com>
Content-Type: text/plain; charset=us-ascii
Try: "x[which(is.na(x)),] <- 000/000&q...
2009 Oct 26
1
zeros keep dropping
Hello All!
I am trying to plot the frequency of species coocurrance.
If given a data set similar like this...(V1="species A", V2="species B",
V3="frequency of cooccurance")
> data
V1 V2 V3
1 A B 0
2 A C 2
3 A D 5
4 B C 0
5 B D 1
6 C D 0
> data1<-as.data.frame(lapply(data,function(x)(rep(x,data$V3))))
> as.data.frame(data1[-1])
>