similar to: creating a new column assigning values of other columns

Displaying 20 results from an estimated 200 matches similar to: "creating a new column assigning values of other columns"

2012 Apr 30
1
Subtract days to dates in POSIXct format
Hello, I'm having problems working with date values in POSIXct format. Here is what I got (eg.lig attached): x <- read.table("eg.txt", sep = ',', col.names=c("ok","time","secs","lig")) # it gives time as factor z <- cbind(x,colsplit(x$time, split="\\s", names=c("date", "clock")))
2013 Jun 10
1
modify and append new rows to a data.frame using ddply
Hi, I have a data.frame that contains a variable act which records the duration (in seconds) of two states (wet-dry) for several individuals (identified by Ring) over a period of time. Since I want to work with daytime (i.e. from sunrise till sunset) and night time (i.e. from sunset till next sunrise), I have to split act from time[i] till sunset and from sunset until time[i+1], and from time[k]
2013 Jun 08
0
modify and append new rows in a dataframe
My data frame shows changes on the variable act which records the consecutive duration (in seconds) of two states (wet-dry) over a few days for several?individuals (identified by Ring). Since I want to work with daytime (i.e. from dawn till dusk) and night time (i.e. from dusk till next dawn), I have to split act in two: from time[i] till dusk and from dusk until time[i+1], and from time[k] till
2012 Sep 27
4
Colsplit, removing parts of a string
Hi, I am using colsplit (package = reshape) to split all strings in a column according to the same patterns. Here an example: library(reshape2) df1 <- data.frame(x=c("str1_name2", "str3_name5")) df2 <- data.frame(df1, colsplit(df1$x, pattern = "_", names=c("str","name"))) This is nearly what I want but I want to remove the words
2012 Apr 27
3
kiteChart to show real values with scalebar
Dear R-users I hope someone could help me on this problem. I want to create a multiple kiteChart showing the real values with a scalebar on each indicating the scale . Here are some sample data to show what I want to achieve. Y <- read.table(textConnection("Sample1 Sample2 60 20 150 50 300
2008 Jun 13
1
help with colsplit (reshape)
Dear list, I'm trying to figure out how to use the reshape package to reshape data from a "wide" format to a "long" format. I have data like this pid <- c(1:10) predA <- c(-1,-2,-1,-2,-1,-2,-1,-2,-1,-2) predB.1 <- c(0,0,0,1,1,0,0,0,1,1) predB.2 <- c(2,2,3,3,3,2,2,3,3,3) predC.1 <- c(10,10,10,10,10,11,11,11,11,11) predC.2 <-
2006 Nov 27
7
3 prototype/scriptaculous effects in order on one <div>
What I am trying to do is fade out the content in a certain <div> load new content while its black then fade in the new content but im lost. I need it to go like this... Effect.Fade,Ajax.Update,Effect.Appear but everytime I try to do it it just trys to do all of them at once, how do I go about making the effects wait on the previous one before it starts?
2013 Feb 12
1
Max value of each 2 rows in dataframe
Hello, I would like to ask you for help. I have quite a big dataframe (119 313 rows), this is a part of it: "jul" "ind" "time" "secs" "geo" "act" "lig" "date.x" "clock" "h" "m" "s" "d" "mo" "y" "dtime" "land" "date.y"
2018 Oct 31
2
nt status buffer too small
all result :) # ls -l /home/       --> on DC svad01 drwr-xr-x  4  root  root 4096 oct.  30 15:57 home drwr-xr-x  4  root  root 4096 oct.  30 15:57 profiles drwrwxr-x  4  root  root 4096 oct.  30 15:57 public drwr-xr-x  4  root  root 4096 oct.  30 15:57 services /etc/samba/smb.conf [global]   netbios name = svad01   realm = SITE.SOCIETE.LOCAL   workgroup = SITE   dns forwarder =
2013 Jun 04
2
[PATCH 1/2] acpi/processor: remove bm_rld_set of acpi_processor_flags
bm_rld_set seems obsolete now Signed-off-by: liguang <lig.fnst at cn.fujitsu.com> --- include/acpi/processor.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/include/acpi/processor.h b/include/acpi/processor.h index ea69367..cfec509 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h @@ -188,7 +188,6 @@ struct acpi_processor_flags { u8
2013 Jun 04
2
[PATCH 1/2] acpi/processor: remove bm_rld_set of acpi_processor_flags
bm_rld_set seems obsolete now Signed-off-by: liguang <lig.fnst at cn.fujitsu.com> --- include/acpi/processor.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/include/acpi/processor.h b/include/acpi/processor.h index ea69367..cfec509 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h @@ -188,7 +188,6 @@ struct acpi_processor_flags { u8
2013 Jun 04
2
[PATCH 1/2] acpi/processor: remove bm_rld_set of acpi_processor_flags
bm_rld_set seems obsolete now Signed-off-by: liguang <lig.fnst at cn.fujitsu.com> --- include/acpi/processor.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/include/acpi/processor.h b/include/acpi/processor.h index ea69367..cfec509 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h @@ -188,7 +188,6 @@ struct acpi_processor_flags { u8
2006 Jul 05
10
Google/Netflix Like Tooltips
I need to have a toolip-like object which has dynamic content in it. I plan on using scriptaculous with an ajax call to retrieve the content, but I would like to make the popup/tooltip/balloon text look as nice as possible. Does anyone have any examples or anything useful to create a popup like the ones that Google and Netflix have? I''d like to have one which must be
2012 Jun 08
2
Consulta sobre GLM-log linear
Estimados amigos, Estoy familiarizándome con los modelos lineales generalizados en R. Estoy interesado en realizar un análisis lig linear y me gustaría saber cuáles son o como extraer los valores correspondientes al chi cuadrado en el análisis para cada grupo y para las interacciones. Desde ya muchas gracias y disculpas si la pregunta es muy básica, adjunto los comandos que estoy utilizando. Si
2012 Jun 08
2
Consulta sobre GLM-log linear
Estimados amigos, Estoy familiarizándome con los modelos lineales generalizados en R. Estoy interesado en realizar un análisis lig linear y me gustaría saber cuáles son o como extraer los valores correspondientes al chi cuadrado en el análisis para cada grupo y para las interacciones. Desde ya muchas gracias y disculpas si la pregunta es muy básica, adjunto los comandos que estoy utilizando. Si
2009 Jul 20
2
data frame from list of lists with unequal lengths
Hello, I have a dataset with multiple entries in one field separated by "/" characters. (The true dataset has long names, 20-odd variables, and hundreds of observations.) v1 v2 1 A L 2 A/B M 3 C N 4 D/E/F O 5 A P 6 C L What I would like is to have a dataset that looks like this instead: > my.df v1 v2 1 A L 2 A M 3 B M 4 C N 5 D O 6 E O
2012 Jun 08
2
Consulta GLM
Estimados amigos, Estoy familiarizándome con los modelos lineales generalizados en R. Estoy interesado en realizar un análisis lig linear y me gustaría saber cuáles son o como extraer los valores correspondientes al chi cuadrado en el análisis para cada grupo y para las interacciones. Desde ya muchas gracias y disculpas si la pregunta es muy básica, adjunto los comandos que estoy utilizando. Si
2011 Oct 25
2
extract data for specific levels factor
Dear all, I'm trying to analyze data with the following structure: ind cat tx age 40.2 por fol peq vh 35 41.9 por fol med vh 35 68.9 por fol preov vh 35 71.5 por fol peq ser 37 67.5 por fol med ser 37 76.9 por fol preov ser 37 78.7 por fol peq otr 37 78.3 por fol med otr 37 82.1 por fol
2012 Mar 18
2
Importing files
Hello, I'm trying to import into R files that contain data downloaded from logger devices as files with the following formats: .act .lig .trj .trn These files are essentially text files but use both tabs and commas as separators. I've tried the function scan: 1) scan("filename.act", what=character(0)) returns only two columns from the original 5 2) scan("copia.act",
2015 Apr 23
2
cálculo de distancias
¡Hola! Estoy tratando de hacer una matriz que contenga los valores de distancias entre distintos elementos (con sus respectivas coordenadas x e y), pero salta un error, y no sé como corregirlo. ¿alguna idea? muchas gracias! saludos!! Priscila -- Dra. Priscila Ana Powell Instituto de Ecología Regional Facultad de Ciencias Naturales e Instituto Miguel Lillo Universidad Nacional de Tucumán