Displaying 20 results from an estimated 110 matches similar to: "merging two data frame with colomns of different length"
2011 Jan 04
2
Print plot to pdf, jpg or any other format when using scatter3d error
Hi,
I have been trying to output my graphs to a file (jpeg, pdf, ps, it
doesnt matter) but i cant seem to be able to get it to output. I tried a
few things but none of them worked and am lost as what to do now. I am
using the scatter3d function, and it prints out the graphs on tot he
screen without any problems, but when it comes to writing them to a file
i cant make it work. Is there any
2009 Feb 19
1
modifying legend in scatterplot matrix R
Hello R users,
I have some troubles to modify the "per default" legend in the
scatterplot.matrix using the car package. Here is my code:
--------------------------------------------------------------------
scatterplot.matrix(~ a + b + c,
groups=treatment,
by.groups=F,
data=newfile3,
smooth=T,
pch=c(16,4),
cex=1.3,
2013 Jan 27
3
Package: VennDiagram. Error in draw.pairwise.venn Impossible: cross section area too large
Dear list,
When I use VennDiagram package, I got a error as follow:
venn.plot <- draw.pairwise.venn(
area1 = 3186,
area2 = 325,
cross.area = 5880);
Error in draw.pairwise.venn(area1 = 3186, area2 = 325, cross.area = 588) :
Impossible: cross section area too large.
Does anyone have suggestion?
Thank you.
2011 Mar 20
2
R as a non-functional language
I'm reading Torgo (2010) *Data Mining with
R*<http://www.liaad.up.pt/~ltorgo/DataMiningWithR/code.html>in
preparation for a class I'll be teaching next quarter. Here's an
example
that is very non-functional.
> pH <- c(4.5,7,7.3,8.2,6.3)
> names(pH) <- c('area1','area2','mud','dam','middle')
> pH
area1 area2 mud dam
2017 Nov 09
3
Calculating frequencies of multiple values in 200 colomns
Hi All
I have a dataset of 200 columns and 1000 rows , there are 3 repeated values under each column (7,8,10). I wanted to calculate the frequency of each value under each column and then apply the function maf () given that the frequency of each value is known. I can do the analysis step by step like this :-
> Values
A B C ... 200
1 7 10 7
2
2011 Jan 19
3
question about result of loglinear analysis
Hi all:
Here's a question about result of loglinear analysis.
There're 2 factors:area and nation.The raw data is in the attachment.
I fit the saturated model of loglinear with the command:
glm_sat<-glm(fre~area*nation, family=poisson, data=data_Analysis)
After that,I extract the coefficients:
result_sat<-summary(glm_sat)
result_coe<-result_sat$coefficients
I find that all the
2003 May 21
1
help on spatial data
Hi,
I have a dataset with x and y coordinates and in each point I have an
identity of point, in some cases I can have more then one identity by point.
My dataset is something like this:
> x <- rep(c(1:4),4)
> y <- rep(c(1:4),c(4,4,4,4))
> area1 <- sample(factor(rep(c("a","b","c","d"),4)))
> area2 <-
2010 Nov 23
2
Help with grouped barplot
Given the data structure below, how can I create a bar plot for the values of disc for each area grouped by year?
bar <-structure(list(year = c(2003, 2003, 2003, 2003, 2003, 2003, 2003,
2007, 2007, 2007, 2007, 2007, 2007, 2007), area = structure(c(6L,
4L, 1L, 2L, 3L, 5L, 7L, 6L, 4L, 1L, 2L, 3L, 5L, 7L), .Label = c("AK",
"ID", "MT", "NW",
2017 Nov 10
0
Calculating frequencies of multiple values in 200 colomns
Hi,
To clarify the default behavior that Boris is referencing below, note the definition of the 'bin' argument to the tabulate() function:
bin: a numeric vector ***(of positive integers)***, or a factor. Long vectors are supported.
I added the asterisks for emphasis.
This is also noted in the examples used for the function in ?tabulate at the bottom of the help page.
The second
2017 Nov 10
0
Calculating frequencies of multiple values in 200 colomns
Thank you for your effort Bert..,
I knew what is the problem now, the values (1,2,3) were only an example. The values I have are 0 , 1, 2 . Tabulate () function seem to ignore calculating the frequency of 0 values and this is my exact problem as the frequency of 0 values should also be calculated for the maf to be calculated correctly.
________________________________
From: Bert Gunter
2015 Jul 27
4
Como modificar valores en un data frame
Estimad en s, querĂa realizar una consulta
Dado un data frame llamado aves, como puedo sustiuir las variables area,
dist y distm por sus logaritmos en base10 y volver a crear un data frame?
Muchas gracias
Saludos
Susana
[[alternative HTML version deleted]]
2017 Nov 10
2
Calculating frequencies of multiple values in 200 colomns
|> x <- sample(0:2, 10, replace = TRUE)
|> x
[1] 1 0 2 1 0 2 2 0 2 1
|> tabulate(x)
[1] 3 4
|> table(x)
x
0 1 2
3 3 4
B.
> On Nov 10, 2017, at 4:32 AM, Allaisone 1 <allaisone1 at hotmail.com> wrote:
>
>
>
> Thank you for your effort Bert..,
>
>
> I knew what is the problem now, the values (1,2,3) were only an example. The values I have are
2017 Nov 09
2
Calculating frequencies of multiple values in 200 colomns
Always reply to the list. I am not a free, private consultant!
"For example, if I have the values : 1 , 2 , 3 in each column, applying
Tabulate () would calculate the frequency of 1 and 2 without 3"
Huh??
> x <- sample(1:3,10,TRUE)
> x
[1] 1 3 1 1 1 3 2 3 2 1
> tabulate(x)
[1] 5 2 3
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people
2009 May 14
1
Supplying NA or Zeros in dataframe for missing factor combinations
Hi there,
I am not getting anywhere near a solution, so here is my question. I
have searched the archives and didn't find a solution, but maybe my
search didn't use the right words. So here it is:
I have a dataframe with the following structure
factor1 factor2 value
In the (rather large) dataset I have to work on, there are some factor
combinations missing, e.g.
factor1 <-
2011 Jan 31
4
Select rows with distinct values in a column and other conditions
My data frame looks like:
SightingID PA1 PA2 PlotID InOverlap Area1 2001 1 -99 392 Y 0.22 2002 1 -99 388 Y 0.253 2008 1 NA 104 N 0.344 2010 1 NA 71 N 0.185 2012 1 NA 61 N 0.166 2013 1 NA 61 N 0.227 2014 1 NA 62
2012 May 11
1
Overlapping area script
Dear All
I would really appreciate some help with a script which a colleague wrote
for me (attached), but I am having problems running (and have not been able
to contact my colleague).
The script is designed to compare the area of suitable habitat in binary
projections of a large number of species current and future distributions,
and create an excel file detailing the total area suitable in the
2011 Apr 01
3
programming: telling a function where to look for the entered variables
Hi there,
Could someone help me with the following programming problem..?
I have written a function that works for my intended purpose, but it
is quite closely tied to a particular dataframe and the names of the
variables in this dataframe. However, I'd like to use the same
function for different dataframes and variables. My problem is that
I'm not quite sure how to tell my function in
2003 Apr 23
0
MySQL
Dear laurent,
> But there are lots of commands I found in R docs which are "not found",
> such as getTable. Deprecated (I successfully used dbListTables) or do I
> simply miss a package ?
>From RMySQL\NEWS:
* added (almost) trivial convenience RS-DBI functions getTable(),
assignTable(), existsTable(), and removeTable(). They all mimic the
corresponding R/S get(),
2009 Apr 22
2
Exporting objects plotted with plot3d() - rgl package
Dear all,
Can anybody tell me how to export a 3d figure made with the plot3d
function? I'm careless about whether it's still interactive or not in
another format, as long I can get it out of R.
Thanks!
Alejandro Gonz?lez
Departamento de Biodiversidad y Conservaci?n
Real Jard?n Bot?nico
Consejo Superior de Investigaciones Cient?ficas
Claudio Moyano, 1
28014 Madrid, Spain
Tel +0034
2009 Apr 23
0
Problem to get a simple Analysis of Variance table with lmer()
Dear R users,
Is someone know how to get a simple analysis of variance table using other
random distribution than normal (ex: Poisson or Binomial)? When I try, I
recieved this message: (See my R code below)
--------------------- R response ----------------------------
Erreur dans anova(fit.poisson) :
single argument anova for GLMMs not yet implemented
OR
Erreur dans anova(fit.binomial) :