unAsIs: Getting rid of 'AsIs' class attribute

View source: R/DiverseFunksjoner.R

unAsIsR Documentation

Getting rid of 'AsIs' class attribute

Description

Getting rid of 'AsIs' class attribute

Usage

unAsIs(X)

Arguments

X

Details

Notice that I take care to preserve any other class attributes that the vector might have.

Value

X without 'AsIs'

Note

The function is taken from http://stackoverflow.com/questions/12865218/getting-rid-of-asis-class-attribute

Author(s)

Verena Haunschmid

Examples

class(I(TRUE))
class(unAsIs(I(TRUE)))
class(data.frame(x=I(matrix(1:12,3,4)))$x)
class(unAsIs(data.frame(x=I(matrix(1:12,3,4)))$x))

statisticsnorway/Kostra documentation built on Nov. 2, 2024, 6:40 p.m.