Dear all,
there was indeed a misplaced parenthesis, so the last line runs as:
.Names = c("row", "stimulation", "positivity", "group", "copy")),
row.names = c(NA, -120L), class = "data.frame")
with two )) at the end of .Names.
problem solved,
thank you
Luigi
On Thu, Mar 13, 2014 at 7:29 PM,
And I misplaced the closing parenthesis in my reponse - it goes before
the .Names attribute as well.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Sat, May 10, 2014 at 11:36 AM, William Dunlap wrote:
> You made the same error as the first time - a misplaced parenthesis.
> Make the last 2 lines
You made the same error as the first time - a misplaced parenthesis.
Make the last 2 lines
.Names = c("row", "stimulation", "positivity", "group", "copy")),
row.names=c(NA, 120L), class="data.frame")
instead of
.Names = c("row", "stimulation", "positivity", "group", "copy"),
row.names =
Hi,
---
2767.493803,4796.33016,12292.93705,3864.657567,9380.673835,14886.44683,8457.88646,26050.47191))),#
.Names = c("row", "stimulation", "positivity", "group", "copy"),
row.names = c(NA, -120L), class = "data.frame")
str(my.data)
'data.fram
Hello,
I have tried to apply this approach -- which worked for this example
-- to a larger dataset. Although I have not received error messages,
the variable I have set (my.data) is empty.
Do you have any tip about this?
Many thanks
Luigi
# code::
my.data<-structure(list(
column_1 = 1:120,
col
Hi,
Try:
my.data <- structure(list(column_1 = 1:32,
column_2 = structure(c(1, 2, 3, 4, 5, 6, 7, 8,
1, 2, 3, 4, 5, 6, 7, 8,
1, 2, 3, 4, 5, 6, 7, 8,
1, 2, 3, 4, 5, 6, 7, 8), .Label = c("Unstimulated", "ESAT6", "CFP10",
"Rv3615c", "Rv2654", "Rv3879",
"Rv3873", "PHA"), class = "factor"),
column_3= s
Hello,
You're misplacing one close parenthesis. See the commented lines below.
structure(list(
column_1 = 1:32,
column_2 = structure(c(1, 2, 3, 4, 5, 6, 7, 8,
1, 2, 3, 4, 5, 6, 7, 8,
1, 2, 3, 4, 5, 6, 7, 8,
1, 2, 3, 4, 5, 6, 7, 8),
.Label =
c("Unstimulated", "ESAT6", "CFP10", "Rv3615c", "Rv2654
> I have tried to create a dataframe using the structure() function,
Why do you want to do this?
> but it did not really work.
Use str() or dput() to compare this to a data.frame made in the usual
way. You have .Names and class being arguments to list() instead of
to structure() and you didn't su
8 matches
Mail list logo