similar to: Fwd: from "table" to "dataframe"

Displaying 20 results from an estimated 6000 matches similar to: "Fwd: from "table" to "dataframe""

2006 Dec 05
1
from "table" to "dataframe"
Hi there, I have a two-entrance dataframe, and I would like generate a new dataframe with its frequency. I tryed this site<-rep(c("s1","s2","s3"),20) species<-rep(c("a","b","a","c","d"),12) df<-data.frame(cbind(site,species)) df2<-table(df) But when I convert df2 to data.frame I miss the
2006 Dec 07
0
FW: test of spatial dependence?? - ask a geographer (was ask an ecologist)?
No, you do not necessarily need the XY coordinates. You can also use polygon (field, in your case) adjacency information. See Rogerson, Peter A. 2001. _Statistical methods for geography_. Thousand Oaks: Sage. You might also look at GeoDA, a free and soon-to-be open source spatial analysis package. For your application, it might be easier to use than R. Go to https://www.geoda.uiuc.edu/.
2006 Dec 26
1
Colored Dendrogram
Hi all, I am a real novice to R. :) I am struggling with a problem for generating colored dendrogram. I have searched the R list and complied/collected a R code which can generated a colored dendrogram based on the rainbow color and 4x4 similarity matrix (say matrix:m). In this dendrogram, each leaf is colored differently. But, I do not want the leaf colored on a random basis. I want to assign
2008 Jan 11
2
clipping a large image on R
Dear all, I have a so large image (43,000 x 18,000 pixels) and I need clip this image with a smallest one (1000x1000 pixels). I can read the second image using rgdal package. But the first image can´t be read on my system because if memory limitation (I have about 2GB availabe). So I would like hear from you if anyone have some suggestin in this regards. I have also ArcGis 8.6 ans Erdas 8.3
2007 Nov 23
2
updating matrix from a dataframe
Um texto embutido e sem conjunto de caracteres especificado associado... Nome: n?o dispon?vel Url: https://stat.ethz.ch/pipermail/r-help/attachments/20071123/d7912656/attachment.pl
2006 Dec 10
4
sample "n" random positions from a matrix
Hi there, I have a binary matrix (dim 100x100) filled with values 0 and 1. I need select a record "n" positions of that matrix when values are 1. How can I do that? Thanks for all, Miltinho Brazil --------------------------------- [[alternative HTML version deleted]]
2006 Sep 17
2
Excluding columns from dataframe and selecting row records
Dear R-friends, I have to simple questions. First I would like to exclude some columns from a dataframe and after I need select rows that satisfy some conditions. My data frame looks like Region Species Bodysize Weigth Age Africa Sp1 10.2 20 2 Africa Sp2 12.2 12 2 Africa Sp3 15.3 18 3 Africa Sp4 11.5 40 4 Brazil Sp1 10.2 40 3 Brazil Sp2 22.2 32 2 Brazil Sp3 12.3
2008 Jan 04
1
redirect plot device automatically
Dear all, Every time that I need to generate I plot output as figure I use something like png("myoutput.png") plot(rnorm(100)*1.0,col=4) points(rnorm(100)*0.5,col=2,pch=0) dev.off() But now I need to generate a lot of outputs and it could not be done in a for looping where I can change the names. So I would like to know if is there a way of I automatically redirect the output from my
2008 Jan 06
1
Confidence Inteval for regression curve.
Dear all, I have a dataset which I need to estimate the regression model and plot the estimated curve two other curves with low and high confidence interval (CI=95%). How can I do that? x<-1:100 y<-x^0.2+rnorm(100,0.1,0.1) mod<-glm(y~log(x)) plot(y~x) lines(predict(mod)~x,col=2) Kind regards, miltinho Brazil para armazenamento! [[alternative HTML version deleted]]
2011 May 31
0
filling in a dataframe with another dataframe
Hello All, I have two dataframes and I wish to insert the values of one dataframe into another (let's call them DF1 and DF2). DF1 looks like this: col1.....col2 a...........1 b...........2 c...........3 d...........4 e...........5 f............6 g...........7 where col1 (which is just the first column of the dataframe) is a list of characters and col2 is the numeric value associated with
2006 Nov 02
2
Individual Based Model and/or Cellular automata
Um texto embutido e sem conjunto de caracteres especificado associado... Nome: n?o dispon?vel Url: https://stat.ethz.ch/pipermail/r-help/attachments/20061101/4218da11/attachment.pl
2006 Jan 02
1
"7:9, 12:14" in dataframe to c(7:9, 12:14)
I want to do something like df[df$b %in% df2[i, 2], ] where df$b is a numeric vector and df2[i, 2] is a factor with levels like "7:9, 12:14". For example: a <- c(paste("A", 1:10, sep = ""), paste("B", 1:10, sep = "")) b <- 1:20 df <- as.data.frame(cbind(a, b)) df$b <- as.numeric(levels(df$b))[as.integer(df$b)] f <-
2010 Jul 07
1
xls.getshlib() error in xlsReadWrite package under W7
Dear all, I installed xlsReadWrite package under Windows 7, and got error when trying to run xls.getshlib(). Please, see the errors below: > require(xlsReadWrite) Loading required package: xlsReadWrite xlsReadWrite version (cran shlib) Copyright (C) 2010 Hans-Peter Suter, Treetron, Switzerland. !! Your installation contains the cran placeholder shlib (dll/so). Please get the regular shlib
2006 Dec 06
2
require(simecol) error
Hi there, I´m trying to use "simecol" package but I got the error showed below. I´m runnig R version 2.4.0 (2006-10-03). Kind regards, miltinho Brazil --- > require(simecol) Loading required package: simecol Error in loadNamespace(package, c(which.lib.loc, lib.loc), keep.source = keep.source) : in 'simecol' methods specified for export, but
2007 May 08
3
plotting a point graph with data in X-axis
Um texto embutido e sem conjunto de caracteres especificado associado... Nome: n?o dispon?vel Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070508/1c7def0a/attachment.pl
2006 Nov 03
3
identify extremes positions of values into matrix
Um texto embutido e sem conjunto de caracteres especificado associado... Nome: n?o dispon?vel Url: https://stat.ethz.ch/pipermail/r-help/attachments/20061103/39e6883b/attachment.pl
2007 Feb 11
2
deleting row when any col is.na
Um texto embutido e sem conjunto de caracteres especificado associado... Nome: n?o dispon?vel Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070211/e93b6988/attachment.pl
2016 Jun 23
2
Asignar a un dataframe un id de otro dataframe en función de intervalos con fechas
Hola a todxs, No encuentro la manera de hacer algo que aparentemente parece muy sencillo: Tengo dos dataframe, en el primero tengo una serie de códigos con hora de inicio y hora de fin y en el segundo otros códigos asociados a una hora; Lo que necesito es crear una nueva variable en el segundo data frame que indique a qué intervalo del primer data frame (df1$id) pertenece cada nivel del segundo
2007 Jun 20
2
Creating directory under Windows R session
Um texto embutido e sem conjunto de caracteres especificado associado... Nome: n?o dispon?vel Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070620/7c279140/attachment.pl
2007 Dec 16
2
reading data on code script.
Um texto embutido e sem conjunto de caracteres especificado associado... Nome: n?o dispon?vel Url: https://stat.ethz.ch/pipermail/r-help/attachments/20071216/5eda447c/attachment.pl