similar to: colnames of a column

Displaying 20 results from an estimated 1000 matches similar to: "colnames of a column"

2008 Jun 24
3
loop with files
I'm trying to make a loop with many files... > library(dplR) > > files <- system("ls *.rwl", intern=TRUE) > > files [1] "cimfasy.rwl" "rocquce.rwl" > for (i in files) {a <- read.rwl(i,header=0)} There are 70 series There are 21 series > class(a) [1] "data.frame" This loop import all the files rwl in a single data.frame ( a
2008 Jun 27
2
NA value
I'm trying to replace NA with 0 value... I've write a loop, but don't work... Where's the problem? > cimfasy_rwl 1991 0.92 0.72 0.50 1.29 0.54 1.22 1992 2.15 1.28 1.23 2.26 1.22 3.17 1993 1.50 0.87 1.68 1.97 0.83 2.55 1994 0.69 0.00 0.76 1.89 0.60 0.87 1995 1.13 1.04
2008 Jun 25
1
a loop....
I'm trying to make a loopo with some file.... > > library(dplR) > files.rwl <- system("ls *.rwl", intern=TRUE) > files.rwl [1] "cimfasy.rwl" "rocquce.rwl" > for (i in files.rwl) assign(gsub("\\.rwl$", "_rwl", i), read.rwl(i, header=0)) There are 70 series There are 21 series > > cimfasy_rwl 1990 1.55 0.00
2013 Mar 12
5
extract values
Hello all! I have a problem to extract values greater that for example 1820. I try this code: x[x[,1]>1820,]->x1 Please help me! Thank you! The data structure is: structure(c(2.576, 1.728, 3.434, 2.187, 1.928, 1.886, 1.2425, 1.23, 1.075, 1.1785, 1.186, 1.165, 1.732, 1.517, 1.4095, 1.074, 1.618, 1.677, 1.845, 1.594, 1.6655, 1.1605, 1.425, 1.099, 1.007, 1.1795, 1.3855, 1.4065, 1.138, 1.514,
2010 Jan 20
1
sum column by colnames
Hi, I've this dataframes: > data1 1 2 3 4 5 6 5 0.4963017 0 0 0.2481509 1.9852069 0.4963017 10 0.0000000 0 0 0.0000000 0.6317266 0.0000000 15 0.0000000 0 0 0.0000000 0.0000000 0.0000000 20 0.0000000 0 0 3.3955301 0.0000000 0.0000000 25 0.0000000 0 0 0.0000000 0.0000000 0.0000000 30 0.0000000 0 0 0.0000000 0.0000000
2007 Sep 17
3
data frame
Hi everybody, If I've a data frame like this: dataframe a X0 X2 X4 X6 X8 X10 X12 X14 X16 1957 0 0 0 0 0 0 0 0 0 1958 0 0 0 0 0 0 0 0 0 1959 831 0 0 0 0 0 0 0 0 1960 544 282 0 0 0 0 0 0 0 1961 446 365 0 0 0 0 0 0 0 1962 442 473 0 0 0 0 0 0 0 1963 595 468 0 0 0 0 0 0 0 1964
2009 Jun 23
7
first value...
Hi, I've a vector like this: > inc [1] NA NA NA NA NA NA NA [8] NA NA NA NA NA NA NA [15] NA NA NA NA NA NA NA [22] NA NA NA NA NA NA NA [29] NA NA NA NA
2011 Mar 26
3
round number
Hi, > a <- 4 > a*0.2 [1] 0.8 ok!! Is there a method to obtain this: > a*0.2 [1] 0.80 I need to round the number also with the zero. Thanks in advance, Alfredo
2008 Jun 18
4
inverse cumsum
I've a matrix like this: 1985 1.38 1.27 1.84 2.10 0.59 3.47 1986 1.05 1.13 1.21 1.54 0.21 2.14 1987 1.33 1.21 1.77 1.44 0.27 2.85 1988 1.86 1.06 2.33 2.14 0.55 1.40 1989 2.10 0.65 2.74 2.43 1.19 1.45 1990 1.55 0.00 1.59 1.94 0.99 2.14 1991 0.92
2013 Apr 07
2
group data in classes
Hello all! I have a problem to group my data (years) in 10 years classes. For example for year year decade 1598 1590-1600 1599 1590-1600 1600 1590-1600 1601 1600-1610 --- my is like this> [1] 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 [16] 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 [31] 1628 1629 1630 1631 1632 1633
2010 Sep 16
1
plotting time series using ggplots
Hi, I would like to plot a bunch of tree ring width data (time series) using ggplots, but I'm having trouble figuring out how to do it. My data is in a data.frame, with years as rownames and a distinct tree ring series in each column. So, something like this: rwl<-matrix(rnorm(800), nrow = 100) colnames(rwl) <- paste('V', 1:8, sep = '')
2009 Jun 23
4
vector and NA
Hi, I've a vector like this: ------------------------------------------------------ > inc[,5] [1] NA NA NA NA NA NA NA [8] NA NA NA NA NA NA NA [15] NA NA NA NA NA NA NA [22] NA NA NA NA NA NA
2007 Sep 13
2
loop function
Hi, If I have this values: 21 23 14 58 26 .... How can I sum the values by a progression like this: (21) (21 + 23) (21 + 23 + 14) (21 + 23 + 14 + 58) (21 + 23 + 14 + 58 + 26) (21 + 23 + 14 + 58 + 26....) I've try with the function "loop".... Best Wishes, Alfredo [[alternative HTML version deleted]]
2008 Aug 22
2
Combining multiple datasets
Hi, I've tried to figure this out using Intro to R and help(), to no avail - I am new at this. I'm trying to write a script that will read multiple files from a directory and then merge them into a single new data frame. The original data are in a tree-ring specific format, and so I've first used a function (read.rwl) from the dplR package to read each file, translate each into a
2008 Sep 11
2
count value
Hi, I've this data.frame: > dia X1006109F X1006110F X1006111F X1006112F X1006113F X1006114F X1006115F 1 NA NA NA NA NA 45 NA X1006116F X1006117F X1006118F X1006119F X1006120F X1006122F X1006123F 1 45 NA NA NA 40 NA NA X1006124F X1006125F X1006126F X1006128F X1006203F X1006209F X1006210F
2009 Oct 17
2
sum two columns with same value
Hi, I've two dataframe: > snag_totale AREA snag_ha 1 2 1.628128 2 3 10.274249 3 4 2.778503 4 5 73.764307 5 7 12.015985 > log_totale AREA log_ha 1 1 22.29846 2 2 17.16889 3 3 48.80377 4 4 144.18996 5 5 70.30962 6 6 61.81850 7 7 13.24876 > How can I obtain a new data.frame, by the sum of value "snag_ha" +
2011 Jul 07
3
coefficients lm of data.frame
Hi, I've a data frame like this: > as.data.frame(cbind(rnorm(1:12),rnorm(1:12))) V1 V2 1 -1.30849402 -0.52094136 2 0.96157302 0.76217871 3 -0.44223351 -1.72630871 4 -0.10432438 -1.04732942 5 -1.38748914 0.95877311 6 -0.63965975 0.65494811 7 -0.24058318 0.19496830 8 -0.11172988 1.01680655 9 0.08065333 0.22168589 10 0.25196536 0.84619914 11
2020 Feb 10
3
atomic ops are optimized with incorrect semantics .
Hi All, With the "https://gcc.godbolt.org/z/yBYTrd" case . the atomic is converted to non atomic ops for x86 like from xchg dword ptr [100], eax to mov dword ptr [100], 1 the pass is responsible for this tranformation was instCombine i.e InstCombiner::visitAtomicRMWInst which converts the IR like %0 = atomicrmw xchg i32* inttoptr (i64 100 to i32*), i32 1 monotonic to store
2007 Sep 14
6
replace NA value with 0
Hi, how can I replace NA value with 0: 1991 217 119 103 109 137 202 283 240 146 NA 1992 270 174 149 144 166 239 278 237 275 NA 1993 146 111 104 89 98 131 153 148 175 NA 1994 177 123 146 124 121 200 266 191 240 106 1995 145 98 95 89 95 130 183 161 164 129 1996 145 98 89 90 93 138 158 131 161 161 1991 217 119 103 109 137 202 283 240 146 0 1992 270 174 149 144 166 239 278 237
2009 Nov 10
1
aggregate data.frame
Hi, I've two data.frame: ind_comp and dati_area > ind_comp INDEX indice 1 1 0.3081856 2 2 0.1368007 3 3 0.1290952 4 4 0.2905484 5 5 0.2686706 6 6 0.1122784 7 7 0.4493264 8 8 0.1932665 9 9 0.1982783 10 11 0.3724666 > dati_area X_COORD Y_COORD DBH AREA ID ind_comp 1 0.0000000 0.0000000 70.0 1 1 0 2