Displaying 20 results from an estimated 700 matches similar to: "Cambiar el formato de datos"
2019 Feb 19
2
Cambiar el formato de datos
> gather(pobla, key = year, value = totpop, year60:year63)
Country year totpop
1 Afghanistan year60 8996351
2 Albania year60 1608800
3 Algeria year60 11124888
4 Andorra year60 13411
Gracias Carlos
Antonio
On Tue, 19 Feb 2019 at 12:54, Carlos Ortega <cof en qualityexcellence.es>
wrote:
> Sí, tienes varias formas.
>
> Mira la función
2019 Feb 19
2
Cambiar el formato de datos
Después del "gather()" puedes hacer un "arrange()" que es una ordenación. Y
dentro de "arrange()" le indicas la variable por la que ordenas (no hacen
falta comillas)...
Lo ordenará alfabéticamente.
Saludos,
Carlos Ortega
www.qualityexcellence.es
El mar., 19 feb. 2019 a las 13:47, Antonio Rodriguez Andres (<
antoniorodriguezandres70 en gmail.com>) escribió:
2011 Aug 04
1
Running a column loop through the Moran.I function.
Dear R users,
I have two data frames that consist of statistical information for most
countries around the world. One dataframe consists of the latitude and
longitude ("coord.csv") of each country, while the other consists of 100's
of different attributes ("countryattri.csv") for each country (like, GDP,
Population, etc.). The data is organized with a header and then
2009 Mar 18
1
lm function (PR#13608)
Full_Name: Michael Aaron Karsh
Version: 2.8.0
OS: Windows XP
Submission from: (NULL) (75.61.109.172)
I tried using the lm function to regress the third column listed below on the
second column listed below. It gave me an error message. My code is below.
> HDISWLSdata=read.table("RHDISWLS.txt")
> HDISWLSdata
V1 V2 V3
1 DENMARK
2013 May 11
1
(no subject)
Hello,
I am attempting to use the "classInt" package in conjunction with
"rworldmap" package in R to construct a chloropleth. I want to use the
fixedBreaks argument to specify given breaks.
My data look like this:
> head(Maji)
Country waterused CC
1 Afghanistan 36 AFG
2 Albania 4 ALB
3 Algeria
2010 Sep 13
1
Create a time-series from cross-sectional data that has each year as a separate column
Hi,
I have a dataset from ILO, originally in csv-format, that I have read into
R. It is cross-sectional time-series data, so I have a bunch of variables
and dummy variables that I need to extract data from for the entire time
period. However, the years are separated by columns instead of rows, as is
usually the case in R. This is what it looks like:
> str(laborstafinMFBA)
2011 Jun 16
1
Merging rows in a dataframe
Hi R Help list
I'm looking to visualise US foreign aid 1946-2009 and I have the dataset for this. The trouble is it's a bit too complex and I need to simply it
I want to merge all of the rows with the same country together and add up the individual totals to make one total figure per country per year
Below is an example of the kind of data. The real dataset has 2447 rows and covers 63
2016 Dec 31
2
Java para bigdata
Si,
Bueno en realidad, estamos en un curso de bigdata y estan haciendo mucha scosas con Java, pero yo intento pasarlo a Python tood, ya uqe me parece un lenguaje mucho mas simple y más parecido a R
Y si, lo que quiero principalmente es aplicar machine learning sobre conjuntos de datos enormes.
Alguna recomendación?
________________________________
De: Carlos Ortega <cof en
2016 Dec 30
2
Java para bigdata
Aunque es un poco offtopic, creeis necesario aprender java para temas de bigdata o con python es suficiente
Gracias
Jesús
[[alternative HTML version deleted]]
2023 Oct 15
2
Create new data frame with conditional sums
Under the hood, sapply() is also a loop (at the interpreted level). As
is lapply(), etc.
-- Bert
On Sun, Oct 15, 2023 at 2:34?AM Jason Stout, M.D. <jason.stout at duke.edu> wrote:
>
> That's very helpful and instructive, thank you!
>
> Jason Stout, MD, MHS
> Box 102359-DUMC
> Durham, NC 27710
> FAX 919-681-7494
> ________________________________
> From: John
2023 Oct 14
1
Create new data frame with conditional sums
That's very helpful and instructive, thank you!
Jason Stout, MD, MHS
Box 102359-DUMC
Durham, NC 27710
FAX 919-681-7494
________________________________
From: John Fox <jfox at mcmaster.ca>
Sent: Saturday, October 14, 2023 10:13 AM
To: Jason Stout, M.D. <jason.stout at duke.edu>
Cc: r-help at r-project.org <r-help at r-project.org>
Subject: Re: [R] Create new data frame with
2023 Oct 14
2
Create new data frame with conditional sums
Well, here's one way to do it:
(dat is your example data frame)
Cutoff <- seq(0, .15, .01)
Pop <- with(dat, sapply(Cutoff, \(p)sum(Totpop[Pct >= p])))
I think there must be a more efficient way to do it with cumsum(), though.
Cheers,
Bert
On Sat, Oct 14, 2023 at 12:53?AM Jason Stout, M.D. <jason.stout at duke.edu> wrote:
>
> This seems like it should be simple but I
2018 May 13
0
Dataverse (reading files with .tab and .7z suffixes)
Ilio Fornasero writes:
> Yet, I am at this point.
>
>
>
>
> ## 01. Finding the dataverse server and making a search
> Sys.setenv("DATAVERSE_SERVER" =3D "dataverse.harvard.edu")
> dataverse_search(".Hunger")
>
>
> ## 02. Loading the dataset (in this example, I have chosen the word ".Hunge=
> r" to get
> # one list and
2011 May 29
1
Hello!
Hi, I'm a student studing for Math. & Infor. Ing. in Tirana,Albania and a have a final project in R to finish in a week, so I badly need your help...
The topic of the project is "Hermite Interpolation" and a I have allready done a script that finds the approximation in a certan point x, H(x) ~f(x) but i want to find the value of his derivative H'(x)~f'(x) as well and to
2023 Oct 13
1
Create new data frame with conditional sums
This seems like it should be simple but I can't get it to work properly. I'm starting with a data frame like this:
Tract Pct Totpop
1 0.05 4000
2 0.03 3500
3 0.01 4500
4 0.12 4100
5 0.21 3900
6 0.04 4250
7 0.07 5100
8 0.09
2023 Oct 16
1
Create new data frame with conditional sums
Dear Jason,
The code could look something like:
dummyData = data.frame(Tract=seq(1, 10, by=1),
?? ?Pct = c(0.05,0.03,0.01,0.12,0.21,0.04,0.07,0.09,0.06,0.03),
?? ?Totpop = c(4000,3500,4500,4100,3900,4250,5100,4700,4950,4800))
# Define the cutoffs
# - allow for duplicate entries;
by = 0.03; # by = 0.01;
cutoffs <- seq(0, 0.20, by = by)
# Create a new column with cutoffs
dummyData$Cutoff
2007 Sep 18
1
htb on Gigabit Interfaces
Hi every body
I have a linux server with Intel(R) Xeon(TM) CPU 3.20GHz , and 2 Gigabit
of RAM , kernel version 2.6.22.6 , and 2 Intel 82541PI Gigabit Ethernet
controllers
In simple situation i would like to limit bandwidth for 2 customers 1) (
to 34 Mb/s ) and 2) 68 Mb/s .
My conf is as below
/////////////////////////////////////////////////////
#IFACE FACONG THE CUSTOMERS
/sbin/tc
2023 Oct 16
1
Create new data frame with conditional sums
If one makes the reasonable assumption that Pct is much larger than
Cutoff, sorting Cutoff is the expensive part e.g O(nlog2(n) for
Quicksort (n = length Cutoff). I believe looping is O(n^2). Jeff's
approach using findInterval may be faster. Of course implementation
details matter.
-- Bert
On Mon, Oct 16, 2023 at 4:41?AM Leonard Mada <leo.mada at syonic.eu> wrote:
>
> Dear
2004 Oct 06
3
read.delim problem with trailing spaces
I'm trying to read a comma delimited dataset that uses '.' for NA. I
found that if the last field on a line was a missing '.'
it was not read as NA, but just a '.', and the life variable was made a
factor. The data looks like this,
income,imr,region,oilexprt,imr80,gnp80,life
Afghanistan,75,400.0,4,0,185.0,.,37.5
Algeria,400,86.3,2,1,20.5,1920,50.7
2007 Mar 26
1
Handling Multiple Select Lists
Hi All,
After much searching and head scratching I post you this!
I can''t seem to find a generic way to handle multiple select data. The
function I use to receive form values will only pass the first selected
value from a multiple select. I have pasted part of the form and the
function below.
Thanks for any pointers,
Vince
// Example selectbox
<select